Vulnerability · Published Apr 8, 2025 · Assigned by GitHub_M

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

Medium 6.9

In plain English

A medium-severity resource allocation without limits in imagemeta from bep. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 8% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.9Medium
Exploit odds (30 days)0.2%top 91.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/bep/imagemeta0.11.0GHSA-fmhh-rw3h-785m
Gogithub.com/bep/imagemeta0.11.0GO-2025-3599

Affected products (as reported)

VendorProductVersions
bep imagemeta < v0.11.0

Weakness: CWE-770 · Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

References