CVE-2026-103025
A crafted PNG can make `imagemeta.Decode` allocate memory far in excess of the input file's size, leading to memory exhaustion. Two separate paths in the `zTXt` "Raw profile type iptc" branch are affected: the declared chunk length drives an allocation directly, and the embedded zlib stream is decompressed without an output bound. A 42-byte file allocated 256 MB, and a 127 KB file allocated 460 MB. ### Impact Denial of service by memory exhaustion against any application that decodes untrusted PNG images with this library. The decompression bomb is the more reliable vector, since it produces genuinely resident memory; the effect of the oversized `make` depends on the platform's overcommit behavior and any configured `GOMEMLIMIT` or cgroup limit. ### Patches Fixed in v0.17.3. ### Workarounds Reject or bound PNG input size before calling `Decode`, or clear `IPTC` from `Options.Sources` if IPTC metadata is not required. ### Credits Reported by Arpit Jain ([@arpitjain099](https://github.com/arpitjain099)).
Properties
- Severity
- high
- Summary
- bep/imagemeta: Unbounded memory allocation decoding PNG `zTXt` "Raw profile type iptc" chunks
- Nvd fetched at
- 2026-11-22T12:30:49.958423+00:00
- Epss score
- 0.0056
- Cvss severity
- HIGH
- Cvss score
- 8.7
- Retrieved at
- 2026-11-22T12:32:25+00:00
- Ghsa published
- 2026-11-20T00:20:52Z
- Source url
- https://github.com/advisories/GHSA-7hvw-3c2q-45qg
- Ghsa updated
- 2026-11-20T00:20:53Z
- Ghsa id
- GHSA-7hvw-3c2q-45qg
- Last source
- FIRST EPSS
- Score
- 8.7
- Cvss version
- 4.0
- Cve id
- CVE-2026-103025
- Cvss vector
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- First seen by Signal
- 2026-11-19T23:31:53+00:00
- Name
- CVE-2026-103025
- Is ghsa only
- false
- Vector
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Related Entities (4)
HAS_WEAKNESS (2)
AFFECTS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph