Skip to content
Heist/ feed
Back to feed
High

ExifReader: DoS via Crafted HEIC/AVIF iloc Box - Memory Exhaustion

Type: advisorySources: OSV

ExifReader is a JavaScript Exif information parser. Prior to 4.41.1, ExifReader parses attacker-controlled HEIC or AVIF ISO-BMFF files in getItems() within src/image-header-iso-bmff-iloc.js and trusts iloc itemCount and extentCount values while allocating an extent object for every nested-loop iteration. When offsetSize, lengthSize, baseOffsetSize, and indexSize are zero, the extent fields consume no input bytes and the buffer offset does not advance, but the parser can still allocate up to itemCount multiplied by extentCount objects without an allocation budget. A small malicious iloc box can therefore cause hundreds of megabytes of heap growth or exhaust system memory, terminating a Node.js process and denying service to web, desktop, or mobile applications that parse untrusted images. The zero field widths are valid ISO-BMFF values indicating absent fields, so the vulnerable parser must bound work rather than relying on offset advancement. The issue is fixed in version 4.41.1.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-85715
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 16:39 UTC · Revision 1

Source evidence

ExifReader: DoS via Crafted HEIC/AVIF iloc Box - Memory Exhaustion

core-osv · Original source

Published 17 Sept 2026, 15:33 UTC

ExifReader is a JavaScript Exif information parser. Prior to 4.41.1, ExifReader parses attacker-controlled HEIC or AVIF ISO-BMFF files in getItems() within src/image-header-iso-bmff-iloc.js and trusts iloc itemCount and extentCount values while allocating an extent object for every nested-loop iteration. When offsetSize, lengthSize, baseOffsetSize, and indexSize are zero, the extent fields consume no input bytes and the buffer offset does not advance, but the parser can still allocate up to itemCount multiplied by extentCount objects without an allocation budget. A small malicious iloc box can therefore cause hundreds of megabytes of heap growth or exhaust system memory, terminating a Node.js process and denying service to web, desktop, or mobile applications that parse untrusted images. The zero field widths are valid ISO-BMFF values indicating absent fields, so the vulnerable parser must bound work rather than relying on offset advancement. The issue is fixed in version 4.41.1.

osv:CVE-2026-85715
Complete source record
{
  "id": "2099c16de98f66f8bc88264ec5178db30558a89467fd00e04b0a1b71d5824b9c",
  "url": "https://osv.dev/vulnerability/CVE-2026-85715",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ExifReader: DoS via Crafted HEIC/AVIF iloc Box - Memory Exhaustion",
    "summary": "ExifReader is a JavaScript Exif information parser. Prior to 4.41.1, ExifReader parses attacker-controlled HEIC or AVIF ISO-BMFF files in getItems() within src/image-header-iso-bmff-iloc.js and trusts iloc itemCount and extentCount values while allocating an extent object for every nested-loop iteration. When offsetSize, lengthSize, baseOffsetSize, and indexSize are zero, the extent fields consume no input bytes and the buffer offset does not advance, but the parser can still allocate up to itemCount multiplied by extentCount objects without an allocation budget. A small malicious iloc box can therefore cause hundreds of megabytes of heap growth or exhaust system memory, terminating a Node.js process and denying service to web, desktop, or mobile applications that parse untrusted images. The zero field widths are valid ISO-BMFF values indicating absent fields, so the vulnerable parser must bound work rather than relying on offset advancement. The issue is fixed in version 4.41.1.",
    "evidence": "osv:CVE-2026-85715",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-85715",
      "aliases": [
        "CVE-2026-85715",
        "GHSA-pj96-35fp-cfcc"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mattiasw/exifreader",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "20dfd6ec542fb4cb0933b512a02a92997828374c"
                },
                {
                  "fixed": "17b901cd192d2c90d7f9f347bd3073b28b482699"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.41.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "17b901cd192d2c90d7f9f347bd3073b28b482699"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "20dfd6ec542fb4cb0933b512a02a92997828374c"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v4.41.1"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v4.41.0",
            "v4.40.5",
            "v4.40.4",
            "v4.40.3",
            "v4.40.2",
            "v4.40.1",
            "v4.40.0",
            "v4.39.1",
            "v4.39.0",
            "v4.38.1",
            "v4.38.0",
            "v4.37.1",
            "v4.37.0",
            "v4.36.2",
            "v4.36.1",
            "v4.36.0",
            "v4.35.0",
            "v4.34.0",
            "v4.33.1",
            "v4.33.0",
            "v4.32.0",
            "v4.31.2",
            "v4.31.1",
            "v4.31.0",
            "v4.30.1",
            "v4.30.0",
            "v4.29.0",
            "v4.28.1",
            "v4.28.0",
            "v4.27.0",
            "v4.26.2",
            "v4.26.1",
            "v4.26.0",
            "v4.25.0",
            "v4.24.0",
            "v4.23.7",
            "v4.23.6",
            "v4.23.5",
            "v4.23.4",
            "v4.23.3",
            "v4.23.2",
            "v4.23.1",
            "v4.23.0",
            "v4.22.1",
            "v4.22.0",
            "v4.21.1",
            "v4.21.0",
            "v4.20.0",
            "v4.19.1",
            "v4.19.0",
            "v4.18.0",
            "v4.16.0",
            "v4.15.0",
            "v4.14.1",
            "v4.14.0",
            "4.14.0",
            "4.13.2",
            "4.13.1",
            "v4.13.0",
            "4.13.0",
            "4.12.1",
            "v4.12.0",
            "4.12.0",
            "v4.11.1",
            "4.11.1",
            "v4.11.0",
            "4.11.0",
            "v4.10.0",
            "4.10.0",
            "v4.9.2",
            "4.9.2",
            "v4.9.1",
            "4.9.1",
            "v4.9.0",
            "4.9.0",
            "v4.8.1",
            "4.8.1",
            "v4.8.0",
            "4.8.0",
            "v4.7.0",
            "4.7.0",
            "v4.6.0",
            "4.6.0",
            "v4.5.1",
            "4.5.1",
            "v4.5.0",
            "4.5.0",
            "v4.4.0",
            "4.4.0",
            "v4.3.1",
            "4.3.1",
            "v4.3.0",
            "4.3.0",
            "v4.2.0",
            "4.2.0",
            "v4.1.1",
            "4.1.1",
            "v4.1.0",
            "4.1.0",
            "v4.0.0",
            "4.0.0",
            "v3.16.0",
            "3.16.0",
            "v3.15.0",
            "3.15.0",
            "v3.14.1",
            "3.14.1",
            "v3.14.0",
            "3.14.0",
            "v3.13.0",
            "3.13.0",
            "v3.12.6",
            "3.12.6",
            "v3.12.5",
            "3.12.5",
            "v3.12.4",
            "3.12.4",
            "v3.12.3",
            "3.12.3",
            "v3.12.2",
            "3.12.2",
            "3.12.1",
            "v3.12.0",
            "3.12.0",
            "v3.11.2",
            "3.11.2",
            "v3.11.1",
            "3.11.1",
            "v3.11.0",
            "3.11.0",
            "v3.10.0",
            "3.10.0",
            "v3.9.0",
            "3.9.0",
            "v3.8.0",
            "3.8.0",
            "v3.7.0",
            "3.7.0",
            "v3.6.1",
            "3.6.1",
            "3.6.0",
            "3.4.0",
            "3.3.0",
            "3.2.0",
            "3.1.0",
            "3.0.0",
            "2.13.1",
            "2.13.0",
            "2.12.0",
            "2.11.0",
            "2.10.0",
            "2.9.0",
            "2.8.5",
            "2.8.4",
            "2.8.3",
            "2.8.2",
            "2.8.1",
            "2.7.0",
            "2.6.0",
            "2.5.0",
            "2.4.0",
            "2.3.0",
            "2.2.0",
            "2.1.2",
            "2.1.1",
            "2.1.0",
            "2.0.2",
            "v1.1.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-85715.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.595375208Z",
      "provider": "osv",
      "references": [
        "https://github.com/mattiasw/ExifReader/releases/tag/v4.41.1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85715.json",
        "https://github.com/mattiasw/ExifReader/security/advisories/GHSA-pj96-35fp-cfcc",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-85715",
        "https://github.com/mattiasw/ExifReader/commit/17b901cd192d2c90d7f9f347bd3073b28b482699"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-789",
          "CWE-835"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85715.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-85715",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504811,
  "published_at": "2026-09-17T15:33:02.213+00:00"
}