Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-103025: high-severity vulnerability (CVSS 8.7) in bep imagemeta.
What happened
Original description from the source: bep/imagemeta is a Go library for reading EXIF, IPTC and XMP image meta data from JPEG, TIFF, PNG, and WebP files. Prior to 0.17.3, imagemeta.Decode could exhaust memory when parsing PNG zTXt chunks whose keyword is "Raw profile type iptc": the declared chunk length can drive an allocation far larger than the input file, and the embedded zlib stream is decompressed without an output limit. The advisory reports a 42-byte input causing a 256 MB allocation and a 127 KB input inflating to 460 MB. The oversized-allocation path's memory effect depends on platform overcommit and configured GOMEMLIMIT or cgroup limits, while the decompression path reliably creates resident memory. Applications that decode untrusted PNGs with IPTC metadata processing can therefore suffer denial of service through memory exhaustion. This issue is fixed in 0.17.3.
Why it matters
High severity, CVSS 8.7.
Affected products and versions
github.com/bep/imagemeta < 0.17.3 (fixed in 0.17.3); bep imagemeta < 0.17.3
| Product | Versions | Fixed in |
|---|---|---|
| github.com/bep/imagemeta | < 0.17.3 | 0.17.3 |
| bep imagemeta | < 0.17.3 | — |
Action recommended by the source
Upgrade to a fixed version: 0.17.3.
Fixed in: 0.17.3
Sources and references
- https://github.com/advisories/GHSA-7hvw-3c2q-45qg — GHSA
- https://github.com/bep/imagemeta/security/advisories/GHSA-7hvw-3c2q-45qg — GHSA
- https://nvd.nist.gov/vuln/detail/CVE-2026-103025 — GHSA
- https://github.com/bep/imagemeta/pull/69 — GHSA
- https://github.com/bep/imagemeta/commit/2289fdf83fcd238d86f72e65c588da687c998437 — GHSA
- https://github.com/bep/imagemeta/releases/tag/v0.17.3 — GHSA
- https://github.com/bep/imagemeta — OSV
Weaknesses (CWE): CWE-409, CWE-789
Relevant change history
Published
Preliminary advisory published.