VulnWatch by ve1ve2
high 8.7 EPSS 0.56%

GHSA-7hvw-3c2q-45qg / CVE-2026-103025: bep/imagemeta: Unbounded memory allocation decoding PNG `zTXt` "Raw profile type iptc" chunks

Source:
GitHub Security Advisories
Published:
Fetched:
Updated:
Affects:
github.com/bep/imagemeta

https://github.com/advisories/GHSA-7hvw-3c2q-45qg ↗

ghsagoCWE-409CWE-789

bep/imagemeta: Unbounded memory allocation decoding PNG `zTXt` "Raw profile type iptc" chunks 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)). Affected packages: go:github.com/bep/imagemeta Patched: github.com/bep/imagemeta 0.17.3

Linked vulnerabilities (2)

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

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

CWE: CWE-409, CWE-789Aliases: CVE-2026-103025
CVE-2026-103025 high 8.7 EPSS 0.56% (p47) NVDCVE.orgGHSA
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

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

CWE: CWE-409, CWE-789Aliases: GHSA-7hvw-3c2q-45qgNVD: Received

Also reported by (1)