Skip to content
DayZeroHub
High Not yet writtenCVSS 8.7GHSA-7hvw-3c2q-45qgCVE-2026-103025GO-2026-7009

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

bep imagemeta

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-103025: high-severity vulnerability (CVSS 8.7) in bep imagemeta.

What happened

Original description from the source: bep/imagemeta is a Go library for reading EXIF, IPTC and XMP image meta data from JPEG, TIFF, PNG, and WebP files. Prior to 0.17.3, imagemeta.Decode could exhaust memory when parsing PNG zTXt chunks whose keyword is "Raw profile type iptc": the declared chunk length can drive an allocation far larger than the input file, and the embedded zlib stream is decompressed without an output limit. The advisory reports a 42-byte input causing a 256 MB allocation and a 127 KB input inflating to 460 MB. The oversized-allocation path's memory effect depends on platform overcommit and configured GOMEMLIMIT or cgroup limits, while the decompression path reliably creates resident memory. Applications that decode untrusted PNGs with IPTC metadata processing can therefore suffer denial of service through memory exhaustion. This issue is fixed in 0.17.3.

Why it matters

High severity, CVSS 8.7.

Affected products and versions

github.com/bep/imagemeta < 0.17.3 (fixed in 0.17.3); bep imagemeta < 0.17.3

ProductVersionsFixed in
github.com/bep/imagemeta< 0.17.30.17.3
bep imagemeta< 0.17.3—

Action recommended by the source

Upgrade to a fixed version: 0.17.3.

Fixed in: 0.17.3

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-409, CWE-789

Relevant change history

  1. Published

    Preliminary advisory published.