Vulnerabilities in pkg:golang/github.com/bep/imagemeta
PACKAGECVE-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.
pkg:golang/github.com/bep/imagemeta
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
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.
Upgrade github.com/bep/imagemeta to 0.11.0
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
CVE-2025-32025 Affected Github.com/bep/imagemeta Versions
1 component(s)| 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?
Which Github.com/bep/imagemeta versions are affected?
What version fixes CVE-2025-32025?
Is github.com/bep/imagemeta affected?
What CWE is associated with CVE-2025-32025?
How can I check Go dependencies for CVE-2025-32025?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}