Skip to content
OpenAdvisories
Medium · 6.9 CVE-2025-32025 EUVD-2025-10405GHSA-fmhh-rw3h-785mGO-2025-3599

bep/imagemeta allows a potentially large memory allocation in PNG and WebP parsing

Published Apr 8, 2025 · Updated Apr 8, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
bep imagemeta < v0.11.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250409T170536-1.1 openSUSE-SU-2025:14982-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/bep/imagemeta < 0.11.0 0.11.0 GHSA-fmhh-rw3h-785m

Advisories 1

References