Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-29463

Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. An out-of-bounds read was found in Exiv2 versions v0.27.3 and earlier. The out-of-bounds read is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to cause a denial of service by crashing Exiv2, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `insert`. The bug is fixed in version v0.27.4.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-29463
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:42 UTC · Revision 1

Source evidence

CVE-2021-29463

core-osv · Original source

Published 30 Apr 2021, 19:15 UTC

Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. An out-of-bounds read was found in Exiv2 versions v0.27.3 and earlier. The out-of-bounds read is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to cause a denial of service by crashing Exiv2, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `insert`. The bug is fixed in version v0.27.4.

osv:CVE-2021-29463
Complete source record
{
  "id": "ea7a18d434974f013efc7c614c135c5f2662c14950ca145a70c2ff7e4a0200ba",
  "url": "https://osv.dev/vulnerability/CVE-2021-29463",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-29463",
    "summary": "Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. An out-of-bounds read was found in Exiv2 versions v0.27.3 and earlier. The out-of-bounds read is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to cause a denial of service by crashing Exiv2, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `insert`. The bug is fixed in version v0.27.4.",
    "evidence": "osv:CVE-2021-29463",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-29463",
      "aliases": [
        "CVE-2021-29463",
        "GHSA-5p8g-9xf3-gfrr"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/exiv2/exiv2",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "15098f4ef50cc721ad0018218acab2ff06e60beb"
                },
                {
                  "fixed": "783b3a6ff15ed6f82a8f8e6c8a6f3b84a9b04d4b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:exiv2:exiv2:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.27.4"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "783b3a6ff15ed6f82a8f8e6c8a6f3b84a9b04d4b"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.27.4-RC3",
            "v0.27.4-RC2",
            "v0.27.4-RC1",
            "v0.27.3",
            "v0.27.3-RC2",
            "v0.27.3-RC1",
            "v0.27.2",
            "v0.27.2-RC3",
            "v0.27.2-RC2",
            "v0.27.2-RC1",
            "0.27-RC2",
            "v0.27.1",
            "0.27.1",
            "v0.27.1-RC1",
            "v0.27.0",
            "0.27",
            "0.27-RC3",
            "v0.27-RC1",
            "v0.26",
            "v0.25",
            "v0.24",
            "v0.23.1",
            "v0.23",
            "v0.22",
            "v0.21.1",
            "v0.21",
            "v0.20",
            "v0.19",
            "v0.18.2",
            "v0.18.1",
            "v0.18",
            "v0.18-pre2",
            "v0.18-pre1",
            "v0.17.1",
            "v0.17",
            "v0.16",
            "v0.16-pre1",
            "v0.15",
            "v0.14",
            "v0.13",
            "v0.12",
            "v0.11",
            "v0.10",
            "v0.9.1",
            "v0.9",
            "v0.8",
            "v0.7",
            "v0.6.2",
            "v0.6.1",
            "v0.6",
            "v0.5",
            "v0.4",
            "v0.3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-29463.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-29463-08d0ca72",
                "digest": {
                  "length": 7548,
                  "function_hash": "223643837117933804987609948669302438420"
                },
                "source": "https://github.com/exiv2/exiv2/commit/783b3a6ff15ed6f82a8f8e6c8a6f3b84a9b04d4b",
                "target": {
                  "file": "src/webpimage.cpp",
                  "function": "WebPImage::doWriteMetadata"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-29463-f849007d",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "7827025138797508834138130699066967241",
                    "216308105682172181380393584038653048033",
                    "323304213447893081150715345888233338457",
                    "104660721388191420934773106664931087481",
                    "262091287018931642287632743387172176084",
                    "290263876459453058918459990376239029747",
                    "186442625716322177118572024583930181787",
                    "53902137927858733484388088725450664343",
                    "254454406875658296157751774189378598022",
                    "242395147006639959046402482925417324180",
                    "189194959839771973751536753443584582090",
                    "329604593333119770383163607511694732030",
                    "224984185480787256299943015170254034108",
                    "267775804631609628356911750454590780684",
                    "231785833037217415572533486872386079662",
                    "310996131563196470161883111441202225129",
                    "281327048176579665524752750991650508920",
                    "233014553047668589020384563655971500061",
                    "310904050559403401338672583988028976401",
                    "25491149424183067108148025227365230554",
                    "282011702105484784367405909852058405493",
                    "14571072377374042029680689067106023860",
                    "72253978486498210191291345211927352452",
                    "49601008165055348820090476224478741438",
                    "26400932878528317587730628636844746717",
                    "311422610579077412384617611336323262327",
                    "58403992083966329966137018305131613504",
                    "82022127482869185476442768162295738911",
                    "249742937278810899447269881071261700414",
                    "97966956619561821141481669745006946338",
                    "24157165066796358774011961793655217218",
                    "130169479202915172577343873566785585944",
                    "217090824795938771584646572860620081243",
                    "35361939605206182518909911910086761608",
                    "245675855369080237411764600633030002792",
                    "281203032687021303331466957103599205034",
                    "280292358071569002995846818892534108663",
                    "290982302392200776882910034434660692714",
                    "220977712923803270455186331647900873361",
                    "225150781479465362217466614243387917228",
                    "17869878351655099588526059598042719053",
                    "120134026286219232254707937503824906206",
                    "13984518089606488535832666361342246754",
                    "95874020403624481419452309182796051284",
                    "322398025912573281909893551649462160278",
                    "76923743968194318084251053489662708307",
                    "80634689638051838007686360929887038697",
                    "55956160437694590601628137328182614581",
                    "229647271055391049025624426906632971028",
                    "170005285849685505370479963395771628868"
                  ]
                },
                "source": "https://github.com/exiv2/exiv2/commit/783b3a6ff15ed6f82a8f8e6c8a6f3b84a9b04d4b",
                "target": {
                  "file": "src/webpimage.cpp"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:20:30Z"
          }
        }
      ],
      "modified": "2026-10-20T14:20:30.148907549Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K3HKXR6JOVKMBE4HY4FDXNVZGNCQG6T3/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NDMZTVQAZSMLPTDVDYLBHAAF7I5QXVYQ/",
        "https://github.com/Exiv2/exiv2/security/advisories/GHSA-5p8g-9xf3-gfrr",
        "https://security.gentoo.org/glsa/202312-06",
        "https://github.com/Exiv2/exiv2/commit/783b3a6ff15ed6f82a8f8e6c8a6f3b84a9b04d4b"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "33"
                  },
                  {
                    "last_affected": "33"
                  },
                  {
                    "introduced": "34"
                  },
                  {
                    "last_affected": "34"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-29463",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 388810,
  "published_at": "2021-04-30T19:15:07.143+00:00"
}