CVE-2026-103025: bep/imagemeta: Unbounded memory allocation decoding PNG `zTXt` "Raw profile type iptc" chunks
Published 2026-11-20 · Updated 2026-11-23 · Also known as GHSA-7hvw-3c2q-45qg, GO-2026-7009
Summary
A vulnerability in bep/imagemeta allows a crafted PNG file to trigger unbounded memory allocation and decompression bombs during chunk parsing. Engineering and security teams using affected versions should update immediately.
Who is affected
Applications that process untrusted PNG images using the github.com/bep/imagemeta library are vulnerable to denial of service via memory exhaustion. Both direct allocation via chunk length and unbounded zlib decompression can cause massive memory consumption from very small input files.
Exploitability
The vulnerability is remotely exploitable over the network without requiring authentication, privileges, or user interaction under a low attack complexity. The EPSS score is 0.006 with a 0.475 percentile, and it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation
- Upgrade the github.com/bep/imagemeta package to version 0.17.3 or later.
- Reject or bound PNG input size before calling Decode, or clear IPTC from Options.Sources if IPTC metadata is not required.
How to check your project
- Check Go dependency files (such as go.mod) for github.com/bep/imagemeta versions prior to 0.17.3.
Automated analysis of the published advisory data, generated 2026-11-23. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Go | github.com/bep/imagemeta |
>= 0, < 0.17.3 | 0.17.3 | go get github.com/bep/[email protected] |
CVSS 4.0 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
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Attack requirements | None |
| Privileges required | None |
| User interaction | None |
| Confidentiality (vulnerable system) | None |
| Integrity (vulnerable system) | None |
| Availability (vulnerable system) | High |
| Confidentiality (subsequent systems) | None |
| Integrity (subsequent systems) | None |
| Availability (subsequent systems) | None |
Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.
FAQ
What causes the vulnerability in bep/imagemeta?
The flaw is triggered by PNG zTXt 'Raw profile type iptc' chunks, where the declared chunk length drives an allocation directly and the embedded zlib stream is decompressed without an output bound.
Which package version fixes the issue?
Version 0.17.3 of github.com/bep/imagemeta contains the fix for this vulnerability.
Is there a workaround if updating is not immediately possible?
Yes, you can reject or bound PNG input size before calling Decode, or clear IPTC from Options.Sources if IPTC metadata is not required.
Original advisory description
References
- WEB https://github.com/bep/imagemeta/security/advisories/GHSA-7hvw-3c2q-45qg
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-103025
- WEB https://github.com/bep/imagemeta/pull/69
- WEB https://github.com/bep/imagemeta/commit/2289fdf83fcd238d86f72e65c588da687c998437
- PACKAGE https://github.com/bep/imagemeta
- WEB https://github.com/bep/imagemeta/releases/tag/v0.17.3
Source records: GHSA-7hvw-3c2q-45qg, GO-2026-7009 (OSV.dev) · EPSS by FIRST, 2026-11-27.