CVE-2026-103025bep/imagemeta: Unbounded memory allocation decoding PNG `zTXt` "Raw profile type iptc"…
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.
What to do
Fixed builds are available from Debian, Go: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | golang-github-bep-imagemeta | Fix pending | UBUNTU-CVE-2026-103025 | |
| Ubuntu 26.04 | golang-github-bep-imagemeta | Under investigation | UBUNTU-CVE-2026-103025 | |
| Debian 14 | golang-github-bep-imagemeta | Fixed | 1.0.1+dfsg-1 | DEBIAN-CVE-2026-103025 |
| Go library | github.com/bep/imagemeta | Fixed | 0.17.3 | GHSA-7hvw-3c2q-45qg |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- bep imagemeta: affected: < 0.17.3
References
- https://github.com/bep/imagemeta/security/advisories/GHSA-7hvw-3c2q-45qg
- https://github.com/bep/imagemeta/pull/69
- https://github.com/bep/imagemeta/commit/2289fdf83fcd238d86f72e65c588da687c998437
- https://github.com/bep/imagemeta/releases/tag/v0.17.3
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.