Vulnerabilities in pkg:golang/github.com/bep/imagemeta

PACKAGE
Advisory Identifier: GHSA-fmhh-rw3h-785m
Advisory Summary

CVE-2025-32025 is a MODERATE bep/imagemeta allows a potentially large vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Github.com/bep/imagemeta libraries in the Go ecosystem. The issue involves bep/imagemeta allows a potentially large memory allocation in png and webp parsing. Remediation is available by upgrading affected packages to version 0.11.0.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/bep/imagemeta

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/bep/imagemeta. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-fmhh-rw3h-785m CVE-2025-32025 MODERATE bep/imagemeta allows a potentially large memory allocation in PNG and WebP parsing
GHSA-q7rw-w4cq-2j6w CVE-2025-32024 MODERATE bep/imagemeta allows excessively large EXIF data structures

CVE-2025-32025 at a Glance

CVE Identifier CVE-2025-32025
GHSA Identifier GHSA-fmhh-rw3h-785m
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Github.com/bep/imagemeta
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2025-32025

To remediate this vulnerability, upgrade all affected Github.com/bep/imagemeta dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/bep/imagemeta fixed: 0.11.0
Upgrade github.com/bep/imagemeta to 0.11.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/bep/imagemeta

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-32025, inspect your project dependencies for Github.com/bep/imagemeta:

inspect dependencies for github.com/bep/imagemeta

Analyze the terminal output to locate any version of Github.com/bep/imagemeta in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.11.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Github.com/bep/imagemeta, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

CVE-2025-32025 Affected Github.com/bep/imagemeta Versions

1 component(s)
Fixed Versions:
0.11.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/bep/imagemeta
Go
< 0.11.0
0.11.0

References

Frequently Asked Questions

What is CVE-2025-32025?
CVE-2025-32025 is a security vulnerability in Github.com/bep/imagemeta involving bep/imagemeta allows a potentially large memory allocation in PNG and WebP parsing under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Github.com/bep/imagemeta versions are affected?
Affected versions include releases prior to 0.11.0 across affected packages: github.com/bep/imagemeta.
What version fixes CVE-2025-32025?
Upgrading to 0.11.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/bep/imagemeta affected?
Yes, github.com/bep/imagemeta is affected in releases prior to 0.11.0. Upgrade your dependency to 0.11.0 or later.
What CWE is associated with CVE-2025-32025?
CVE-2025-32025 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check Go dependencies for CVE-2025-32025?
Run the dependency tree command: 'inspect dependencies for github.com/bep/imagemeta'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-fmhh-rw3h-785m",
  "modified" : "2025-04-09T12:57:56Z",
  "published" : "2025-04-09T12:57:56Z",
  "aliases" : [ "CVE-2025-32025" ],
  "summary" : "bep/imagemeta allows a potentially large memory allocation in PNG and WebP parsing",
  "details" : "### Impact\n\nThe 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.\n\n### Patches\n\n`v0.11.0` added a 10 MB upper limit.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/bep/imagemeta"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.11.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/bep/imagemeta/security/advisories/GHSA-fmhh-rw3h-785m"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-32025"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bep/imagemeta/commit/ee0de9b029f4e82106729f69559f27c9a404229d"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/bep/imagemeta"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-09T12:57:56Z",
    "nvd_published_at" : "2025-04-08T16:15:27Z"
  }
}