GitHub Advisoryadvisory · Go

GHSA-fmhh-rw3h-785m bep/imagemeta allows a potentially large memory allocation in PNG and WebP parsing

MEDIUM Published 2025-04-09 Modified 2025-04-09 Official page ↗
Aliases
CVE-2025-32025
Ecosystem
Go
Packages
github.com/bep/imagemeta
Severity
Moderate
CVSS 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weaknesses
CWE-770
Reviewed
2025-04-09

Affected packages

• Go github.com/bep/imagemeta: < 0.11.0 → fixed in 0.11.0

Description

Impact 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. Patches `v0.11.0` added a 10 MB upper limit.

Related

Alias · CVE (1)

  • CVE-2025-32025 bep/imagemeta is a Go library for reading EXIF, IPTC and XMP image meta data from JPEG, TIFF, PNG, and WebP files. vulnerability

Weakness · CWE (1)

  • CWE-770 Allocation of Resources Without Limits or Throttling weakness

References