CVE-2025-32025: bep/imagemeta allows a potentially large memory allocation in PNG and WebP parsing
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.
Published Apr 9, 2025
Affected packages
github.com/bep/imagemeta
- Ecosystem
- Go
- Affected
- < 0.11.0
- Fixed in
- 0.11.0
- Check
go list -m github.com/bep/imagemeta
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to jupenur.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
