HIGH · CVSS 4.0 EPSS 0.6% · 40th percentile CWE-409CWE-789

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

How to check your project

Automated analysis of the published advisory data, generated 2026-11-23. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
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 vectorNetwork
Attack complexityLow
Attack requirementsNone
Privileges requiredNone
User interactionNone
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
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)).

References

Source records: GHSA-7hvw-3c2q-45qg, GO-2026-7009 (OSV.dev) · EPSS by FIRST, 2026-11-27.