← Vulnerabilities

HighAdvisoryGoGitHub

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

Affected

PackageAffected versionsFixed in
go:github.com/bep/imagemeta< 0.17.30.17.3

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 imag…

Read on GitHub Advisory Database

On 11/20/2026, 09:20 AM, GitHub Advisory Database published "bep/imagemeta: Unbounded memory allocation decoding PNG `zTXt` "Raw profile type iptc" chunks" (type: Advisory). Severity is "High" (high). Related technologies: Go, GitHub. CVE: CVE-2026-103025.