CVE-2026-103025github.com/bep/imagemeta Improper Handling of Highly Compressed Data (Data Amplification)
NVD
Vulnerability Summary
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)).
### 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)).
CVSS v4.0 Base Metrics — Score 8.7
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NAttack VectorNetwork
Attack ComplexityLow
Attack RequirementsNone
Privileges RequiredNone
User InteractionNone
Confidentiality (Vulnerable System)None
Integrity (Vulnerable System)None
Availability (Vulnerable System)High
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Affected & Patched Versions
- github.com/bep/imagemeta < 0.17.3
No patched version published yet
Until a fix ships, reduce exposure:
- Restrict access to the affected service or interface to trusted networks.
- Disable the affected feature if you do not need it.
- Watch the vendor advisory for a firmware or software update.
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run github.com/bep/imagemeta and which version.
- No patched version is listed yet. Limit access to the affected service to trusted networks, and disable the feature if you can.
- Subscribe to the vendor advisory so you learn when a fix ships.
Timeline
- Nov 19, 2026Published
- Nov 20, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new github.com/bep/imagemeta CVEsYou are reading CVE-2026-103025. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Vendor Advisoryhttps://github.com/bep/imagemeta/security/advisories/GHSA-7hvw-3c2q-45qg
- CVE Recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-103025
- Patchhttps://github.com/bep/imagemeta/pull/69
- Patchhttps://github.com/bep/imagemeta/commit/2289fdf83fcd238d86f72e65c588da687c998437
- Referencehttps://github.com/bep/imagemeta/releases/tag/v0.17.3
- Referencehttps://github.com/advisories/GHSA-7hvw-3c2q-45qg
Data last checked: Nov 20, 2026 02:00 UTC