Vulnerabilities in pkg:golang/github.com/bep/imagemeta
PACKAGECVE-2026-103025 is a HIGH unbounded memory allocation decoding png vulnerability (CWE-409: Improper Handling of Highly Compressed Data (Data Amplification)) affecting bep/imagemeta libraries in the Go ecosystem. The issue involves unbounded memory allocation decoding png `ztxt` "raw profile type iptc" chunks. Remediation is available by upgrading affected packages to version 0.17.3.
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-7hvw-3c2q-45qg | CVE-2026-103025 | HIGH | bep/imagemeta: Unbounded memory allocation decoding PNG `zTXt` "Raw profile type iptc" chunks |
| 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-2026-103025 at a Glance
How to Fix CVE-2026-103025
To remediate this vulnerability, upgrade all affected 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.17.3
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-2026-103025, inspect your project dependencies for bep/imagemeta:
inspect dependencies for github.com/bep/imagemeta
Analyze the terminal output to locate any version of 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.17.3), 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-409: Improper Handling of Highly Compressed Data (Data Amplification), where the product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output. In 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-2026-103025 Affected bep/imagemeta Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/bep/imagemeta
|
Go |
< 0.17.3
|
0.17.3
|
References
Frequently Asked Questions
What is CVE-2026-103025?
Which bep/imagemeta versions are affected?
What version fixes CVE-2026-103025?
Is github.com/bep/imagemeta affected?
What CWE is associated with CVE-2026-103025?
How can I check Go dependencies for CVE-2026-103025?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7hvw-3c2q-45qg",
"modified" : "2026-11-20T00:20:52Z",
"published" : "2026-11-20T00:20:52Z",
"aliases" : [ "CVE-2026-103025" ],
"summary" : "bep/imagemeta: Unbounded memory allocation decoding PNG `zTXt` \"Raw profile type iptc\" chunks",
"details" : "A crafted PNG can make `imagemeta.Decode` allocate memory far in excess of the input file's size, leading to memory exhaustion. Two separate paths in the `zTXt` \"Raw profile type iptc\" branch are affected: the declared chunk length drives an allocation directly, and the embedded zlib stream is decompressed without an output bound. A 42-byte file allocated 256 MB, and a 127 KB file allocated 460 MB.\n\n### Impact\n\nDenial of service by memory exhaustion against any application that decodes untrusted PNG images with this library. The decompression bomb is the more reliable vector, since it produces genuinely resident memory; the effect of the oversized `make` depends on the platform's overcommit behavior and any configured `GOMEMLIMIT` or cgroup limit.\n\n### Patches\n\nFixed in v0.17.3. \n\n### Workarounds\n\nReject or bound PNG input size before calling `Decode`, or clear `IPTC` from `Options.Sources` if IPTC metadata is not required.\n\n### Credits\n\nReported by Arpit Jain ([@arpitjain099](https://github.com/arpitjain099)).",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/bep/imagemeta"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.17.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/bep/imagemeta/security/advisories/GHSA-7hvw-3c2q-45qg"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-103025"
}, {
"type" : "WEB",
"url" : "https://github.com/bep/imagemeta/pull/69"
}, {
"type" : "WEB",
"url" : "https://github.com/bep/imagemeta/commit/2289fdf83fcd238d86f72e65c588da687c998437"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/bep/imagemeta"
}, {
"type" : "WEB",
"url" : "https://github.com/bep/imagemeta/releases/tag/v0.17.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-409", "CWE-789" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-11-20T00:20:52Z",
"nvd_published_at" : "2026-11-19T20:17:12Z"
}
}