Bep imagemeta
bep/imagemeta: Unbounded memory allocation decoding PNG `zTXt` "Raw profile type iptc" chunks
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 0.17.3
Fixed in 0.17.3
Mitigation
Upgrade imagemeta to 0.17.3 or later.
References
- Vendor advisory github.com/bep/imagemeta/security/advisories/G…
- Patch github.com/bep/imagemeta/pull/69
- Patch github.com/bep/imagemeta/commit/2289fdf83fcd23…
1 more
- Release notes github.com/bep/imagemeta/releases/tag/v0.17.3
Timeline
Days relative to CVE publicationFirst public PoC 8 h after publication; not in CISA KEV. First PoC: googlesky/CVE-2026-103025 (created 20 Nov 2026, found by us: 20 Nov 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| googlesky/CVE-2026-103025 | 20 Nov 2026 +8 h | 20 Nov 2026 | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.