CVE-2025-32025 bep/imagemeta allows a potentially large memory allocation in PNG and WebP parsing
MediumCVSS 6.9
EPSS 0.18%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Debian
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| bep github.com/bep/imagemeta(Go) | < 0.11.0 | 0.11.0 | Fixed |
| bep github.com/bep/imagemeta | = < v0.11.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| bep github.com/bep/imagemeta(Go) | < 0.11.0 | 0.11.0 |
| bep github.com/bep/imagemeta | = < v0.11.0 | No fix listed |
References
- https://github.com/bep/imagemeta/security/advisories/GHSA-fmhh-rw3h-785m vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/bep/imagemeta/commit/ee0de9b029f4e82106729f69559f27c9a404229d patch
- github.com product
- github.com
- Debian Security Tracker CVE-2025-32025 vendor-advisory