CVE-2025-32025 bep/imagemeta allows a potentially large memory allocation in PNG and WebP parsing

Medium 6.9 Published Updated

Attackers can cause denial of service via large memory allocation in PNG and WebP parsing by providing malicious image files to the imagemeta library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-32025?

CVE-2025-32025 is a medium-severity denial of service vulnerability in bep imagemeta, published on 8 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

bep/imagemeta is a Go library for reading EXIF, IPTC and XMP image meta data from JPEG, TIFF, PNG, and WebP files. The buffer created for parsing metadata for PNG and WebP images was only bounded by their input data type, which could lead to potentially large memory allocation, and unreasonably high for image metadata. Before v0.11.0, If you didn't trust the input images, this could be abused to construct denial-of-service attacks. v0.11.0 added a 10 MB upper limit.

Weakness: CWE-770

Which versions are affected by CVE-2025-32025?

3 open source packages ship an affected version, including github.com/bep/imagemeta.

PackageAffectedFixed in
github.com/bep/imagemeta GoAll versions0.11.0
github.com/bep/imagemeta GoAll versions0.11.0
github.com/bep/imagemeta GoAll versions0.11.0

How do I fix CVE-2025-32025?

Upgrade github.com/bep/imagemeta to 0.11.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-32025 being exploited?

There is no known exploitation of CVE-2025-32025 in the wild and no public exploit code.

Sources

Also known as GHSA-fmhh-rw3h-785m, GO-2025-3599.

Is CVE-2025-32025 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free