← VULNERABILITIES

CVE-2026-103025

bep/imagemeta: Unbounded memory allocation decoding PNG `zTXt` "Raw profile type iptc" chunks

High · 8.7Fix available
CVSS
8.7
EPSS
0.56% (p48)
Published
2026-11-19
Age
15d old
Modified
2026-11-20
Product
bep imagemeta
Aliases
GHSA-7hvw-3c2q-45qg

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Description

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.

Fixed in

0.17.3

Affected packages

EcosystemPackageRangeFixed
Gogithub.com/bep/imagemeta< 0.17.30.17.3
Gogithub.com/bep/imagemeta>=0, <0.17.30.17.3

Sources

  • NVD · first seen 15d ago · NVD terms of use
  • OSV · first seen 14d ago · CC-BY 4.0
  • GitHub Advisory Database · first seen 14d ago · CC-BY 4.0
  • CVE List · first seen 15d ago · CVE Terms of Use

References

JSON