2026-03-02 19:40CVE-2026-27631GitHub_M
PUBLISHED5.2CWE-248

Exiv2: Uncaught exception - cannot create std::vector larger than max_size()

Exiv2 is a C++ library and a command-line utility to read, write, delete and modify Exif, IPTC, XMP and ICC image metadata. Prior to version 0.28.8, an uncaught exception was found in Exiv2. The vulnerability is in the preview component, which is only triggered when running Exiv2 with an extra command line argument, like -pp. Due to an integer overflow, the code attempts to create a huge std::vector, which causes Exiv2 to crash with an uncaught exception. This issue has been patched in version 0.28.8.

Problem type

Affected products

Exiv2

exiv2

< 0.28.8 - AFFECTED

References

JSON source

https://cveawg.mitre.org/api/cve/CVE-2026-27631
Click to expand
{
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "cveMetadata": {
    "cveId": "CVE-2026-27631",
    "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
    "assignerShortName": "GitHub_M",
    "dateUpdated": "2026-03-02T20:28:01.516Z",
    "dateReserved": "2026-02-20T22:02:30.028Z",
    "datePublished": "2026-03-02T19:40:45.351Z",
    "state": "PUBLISHED"
  },
  "containers": {
    "cna": {
      "providerMetadata": {
        "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "shortName": "GitHub_M",
        "dateUpdated": "2026-03-02T19:40:45.351Z"
      },
      "title": "Exiv2: Uncaught exception - cannot create std::vector larger than max_size()",
      "descriptions": [
        {
          "lang": "en",
          "value": "Exiv2 is a C++ library and a command-line utility to read, write, delete and modify Exif, IPTC, XMP and ICC image metadata. Prior to version 0.28.8, an uncaught exception was found in Exiv2. The vulnerability is in the preview component, which is only triggered when running Exiv2 with an extra command line argument, like -pp. Due to an integer overflow, the code attempts to create a huge std::vector, which causes Exiv2 to crash with an uncaught exception. This issue has been patched in version 0.28.8."
        }
      ],
      "affected": [
        {
          "vendor": "Exiv2",
          "product": "exiv2",
          "versions": [
            {
              "version": "< 0.28.8",
              "status": "affected"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "lang": "en",
              "description": "CWE-248: Uncaught Exception",
              "cweId": "CWE-248",
              "type": "CWE"
            }
          ]
        }
      ],
      "references": [
        {
          "url": "https://github.com/Exiv2/exiv2/security/advisories/GHSA-p2pw-7935-c73j",
          "name": "https://github.com/Exiv2/exiv2/security/advisories/GHSA-p2pw-7935-c73j",
          "tags": [
            "x_refsource_CONFIRM"
          ]
        },
        {
          "url": "https://github.com/Exiv2/exiv2/issues/3513",
          "name": "https://github.com/Exiv2/exiv2/issues/3513",
          "tags": [
            "x_refsource_MISC"
          ]
        },
        {
          "url": "https://github.com/Exiv2/exiv2/pull/3514",
          "name": "https://github.com/Exiv2/exiv2/pull/3514",
          "tags": [
            "x_refsource_MISC"
          ]
        },
        {
          "url": "https://github.com/Exiv2/exiv2/commit/659db316eef745899a778a1e0b760a971d1b69df",
          "name": "https://github.com/Exiv2/exiv2/commit/659db316eef745899a778a1e0b760a971d1b69df",
          "tags": [
            "x_refsource_MISC"
          ]
        }
      ],
      "metrics": [
        {}
      ]
    },
    "adp": [
      {
        "providerMetadata": {
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP",
          "dateUpdated": "2026-03-02T20:28:01.516Z"
        },
        "title": "CISA ADP Vulnrichment",
        "metrics": [
          {}
        ]
      }
    ]
  }
}