CVE-2025-32024 bep/imagemeta allows excessively large EXIF data structures

Medium 6.9 Published Updated

Attackers can cause denial of service by providing malicious images with excessively large EXIF structures to applications using the vulnerable Go 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-32024?

CVE-2025-32024 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 EXIF data format allows for defining excessively large data structures in relatively small payloads. Before v0.10.0, If you didn't trust the input images, this could be abused to construct denial-of-service attacks. v0.10.0 added LimitNumTags (default 5000) and LimitTagSize (default 10000) options.

Weakness: CWE-770

Which versions are affected by CVE-2025-32024?

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

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

How do I fix CVE-2025-32024?

Upgrade github.com/bep/imagemeta to 0.10.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-32024 being exploited?

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

Sources

Also known as GHSA-q7rw-w4cq-2j6w, GO-2025-3598.

Is CVE-2025-32024 in your software?

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

Check your SBOMs for free