CVE-2026-8814
mediumPriorität · verfolgen · 0EPSS 0.005 · 42. PerzentilEUUSEPSS · bewertet 2026-10-22
Versions of the package exifreader before 4.39.0 are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) due to decompressing PNG zTXt metadata without enforcing a built-in maximum decompressed output size. When asynchronous parsing is enabled, a crafted PNG file containing a highly compressed zTXt chunk can cause ExifReader to materialize a disproportionately large Comment value in memory.
cvss
Technischer Schweregrad, 0–10. Eine Zeile je Quelle.
Basiswert 0–10 · höher = schwerwiegender · Vektor überfahren zum Auflösen⚠ Quellen uneinig · low–medium · 2.7–6.9
SSVC
Eine Handlungsentscheidung — aus Ausnutzung und Auswirkung.
schwächen
Die CWE-Schwächeklassen, zu denen dies gehört.
betroffene Produkte (2)
Betroffene Produkte und Versionsbereiche.
Advisories (1)
Hersteller- und Ökosystem-Meldungen dazu.
- GHSA-rr89-w3h9-m66jExifReader is vulnerable to denial of service via unbounded decompression of image metadata2026-05-29ghsa · osvUS
### Impact Versions of ExifReader from 4.20.0 through 4.38.1 do not bound the size of decompressed metadata blocks. When a caller invokes the asynchronous API (e.g. `ExifReader.load(file)` or `ExifReader.load(buffer, {async: true})`) on an attacker-supplied image, a small compressed chunk in the file can expand to hundreds of megabytes of memory, consuming heap and CPU until the process slows down or runs out of memory. The affected paths share a single decompression utility, so the issue is reachable through any compressed metadata block the library handles asynchronously, including: - PNG `zTXt`, compressed `iTXt`, and `iCCP` chunks (deflate) - JPEG XL Brotli-compressed Exif and XMP blocks A typical proof of concept produced roughly 1000× expansion (for example, ~32 KB of compressed input expanded to ~32 MB of output, ~130 KB to ~128 MB). Both the npm package and the `dist/` bundle published from this repository (consumed by Bower and other users of the prebuilt artifact) are affected. ### Patches Fixed in **4.39.0**. The decompression utility now reads the decompressed stream incrementally and aborts as soon as the running total would exceed a configurable limit. The default cap is **128 MiB** per metadata block, which is well above any realistic legitimate value. When a block exceeds the cap, that block is skipped (a warning is emitted via `console.warn`) and the remaining tags are returned as usual. The cap is configurable via the new `maxDecompressedSize` field on the `decompress` option, in bytes: ```javascript const tags = await ExifReader.load(file, { async: true, decompress: { maxDecompressedSize: 16 * 1024 * 1024 // 16 MiB } }); ``` The same cap applies to results returned by user-supplied custom `brotli`/`deflate` functions. ### Workarounds - If upgrading is not possible, avoid invoking the asynchronous API on untrusted inputs. The synchronous code path skips compressed metadata blocks entirely and is not affected. Alternatively, pre-validate input files by source or size before passing them to ExifReader. ### Resources - Patch: https://github.com/mattiasw/ExifReader/commit/5f116128adc19f674902f8bf582bfe7dd0a36375 - README — "Limiting decompressed metadata size": https://github.com/mattiasw/ExifReader/blob/main/README.md#limiting-decompressed-metadata-size
auch bekannt als (3)
Weitere Namen und Kennungen dieser Entität.
quellen
Welche Quellen diesen Datensatz belegen und wann.
Referenzen (10)
Externe Belege — Patches, Meldungen, Analysen.
- https://gist.github.com/yuki-matsuhashi/cad1a45d936062438b4ab24613c34c55cnnvd
- https://github.com/mattiasw/ExifReader/commit/5f116128adc19f674902f8bf582bfe7dd0a36375cnnvd
- https://github.com/mattiasw/ExifReader/releasesPatchcnnvd
- https://security.snyk.io/vuln/SNYK-JS-EXIFREADER-16689340cnnvd
- https://gist.github.com/yuki-matsuhashi/cad1a45d936062438b4ab24613c34c55enisa_euvd
- https://github.com/mattiasw/ExifReader/commit/5f116128adc19f674902f8bf582bfe7dd0a36375enisa_euvd
- https://security.snyk.io/vuln/SNYK-JS-EXIFREADER-16689340enisa_euvd
- https://gist.github.com/yuki-matsuhashi/cad1a45d936062438b4ab24613c34c55nvd
Angreifer nutzen Schwachstellen wie diese gegen im Internet exponierte Dienste aus. Sehen Sie mit einem kostenlosen Passiv-Scan, was exponiert ist.
Kostenloser Scan