Skip to content

Potentially large memory allocation in PNG and WebP parsing

Moderate
bep published GHSA-fmhh-rw3h-785m Apr 8, 2025

Package

gomod github.com/bep/imagemeta (Go)

Affected versions

< v0.11.0

Patched versions

v0.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.

Severity

Moderate

CVE ID

CVE-2025-32025

Weaknesses

No CWEs

Credits