Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/bep/imagemeta
  4. ›
  5. CVE-2025-32025

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

April 9, 2025

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.

References

  • github.com/advisories/GHSA-fmhh-rw3h-785m
  • github.com/bep/imagemeta
  • github.com/bep/imagemeta/commit/ee0de9b029f4e82106729f69559f27c9a404229d
  • github.com/bep/imagemeta/security/advisories/GHSA-fmhh-rw3h-785m
  • nvd.nist.gov/vuln/detail/CVE-2025-32025

Code Behaviors & Features

Detect and mitigate CVE-2025-32025 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.11.0

Fixed versions

  • 0.11.0

Solution

Upgrade to version 0.11.0 or above.

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

go/github.com/bep/imagemeta/CVE-2025-32025.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:29 +0000.