{"vuln_id":"CVE-2026-103025","aliases":["GHSA-7hvw-3c2q-45qg"],"description":"bep/imagemeta: Unbounded memory allocation decoding PNG `zTXt` \"Raw profile type iptc\" chunks","published_at":"2026-11-19T20:17:12.320000Z","modified_at":"2026-11-20T00:30:07.162931Z","first_seen_at":"2026-11-21T19:15:19.296922Z","severity":"high","severity_source":"nvd","cvss_score":8.7,"cvss_vector":"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/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","cwe":["CWE-409","CWE-789"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.0056,"epss_percentile":0.47484,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-103025"},"matched_alias":null,"items":[{"id":10964,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-7hvw-3c2q-45qg: bep/imagemeta: Unbounded memory allocation decoding PNG `zTXt` \"Raw profile type iptc\" chunks","summary":"bep/imagemeta: Unbounded memory allocation decoding PNG `zTXt` \"Raw profile type iptc\" chunks\n\nA 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)).\n\nAffected: Go:github.com/bep/imagemeta\n\nFixed in: 0.17.3\n\nReferences:\nhttps://github.com/bep/imagemeta/security/advisories/GHSA-7hvw-3c2q-45qg\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-103025\nhttps://github.com/bep/imagemeta/pull/69\nhttps://github.com/bep/imagemeta/commit/2289fdf83fcd238d86f72e65c588da687c998437\nhttps://github.com/bep/imagemeta\nhttps://github.com/bep/imagemeta/releases/tag/v0.17.3","url":"https://osv.dev/vulnerability/GHSA-7hvw-3c2q-45qg","published_at":"2026-11-20T00:20:52Z","updated_at":"2026-11-20T00:30:07.162931Z","fetched_at":"2026-11-21T19:15:55.946334Z","severity":"high","cvss_score":8.7,"epss":0.0056,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"github.com/bep/imagemeta","vuln_id":"CVE-2026-103025","vuln_ids":["CVE-2026-103025","GHSA-7HVW-3C2Q-45QG"],"tags":["osv","go","fix-available"],"cluster_id":2064,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10964","html":"https://vulnwatch.ve1ve2.com/item/10964"}},{"id":2321,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-7hvw-3c2q-45qg / CVE-2026-103025: bep/imagemeta: Unbounded memory allocation decoding PNG `zTXt` \"Raw profile type iptc\" chunks","summary":"bep/imagemeta: Unbounded memory allocation decoding PNG `zTXt` \"Raw profile type iptc\" chunks\n\nA 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)).\n\nAffected packages: go:github.com/bep/imagemeta\nPatched: github.com/bep/imagemeta 0.17.3","url":"https://github.com/advisories/GHSA-7hvw-3c2q-45qg","published_at":"2026-11-20T00:20:52Z","updated_at":"2026-11-20T00:20:53Z","fetched_at":"2026-11-21T19:15:18.416748Z","severity":"high","cvss_score":8.7,"epss":0.0056,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"github.com/bep/imagemeta","vuln_id":"CVE-2026-103025","vuln_ids":["CVE-2026-103025","GHSA-7HVW-3C2Q-45QG"],"tags":["ghsa","go","CWE-409","CWE-789"],"cluster_id":2064,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2321","html":"https://vulnwatch.ve1ve2.com/item/2321"}},{"id":9095,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-103025: bep/imagemeta is a Go library for reading EXIF, IPTC and XMP image meta data from JPEG, TIFF, PNG, and WebP files. Prior to 0.17.3, imagemeta.Decode could exha…","summary":"bep/imagemeta is a Go library for reading EXIF, IPTC and XMP image meta data from JPEG, TIFF, PNG, and WebP files. Prior to 0.17.3, imagemeta.Decode could exhaust memory when parsing PNG zTXt chunks whose keyword is \"Raw profile type iptc\": the declared chunk length can drive an allocation far larger than the input file, and the embedded zlib stream is decompressed without an output limit. The advisory reports a 42-byte input causing a 256 MB allocation and a 127 KB input inflating to 460 MB. The oversized-allocation path's memory effect depends on platform overcommit and configured GOMEMLIMIT or cgroup limits, while the decompression path reliably creates resident memory. Applications that decode untrusted PNGs with IPTC metadata processing can therefore suffer denial of service through memory exhaustion. This issue is fixed in 0.17.3.\n\nReferences:\nhttps://github.com/bep/imagemeta/commit/2289fdf83fcd238d86f72e65c588da687c998437\nhttps://github.com/bep/imagemeta/pull/69\nhttps://github.com/bep/imagemeta/releases/tag/v0.17.3\nhttps://github.com/bep/imagemeta/security/advisories/GHSA-7hvw-3c2q-45qg","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-103025","published_at":"2026-11-19T20:17:12.320000Z","updated_at":"2026-11-19T21:17:40.777000Z","fetched_at":"2026-11-21T19:15:31.484737Z","severity":"high","cvss_score":8.7,"epss":0.0056,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-103025","vuln_ids":["CVE-2026-103025","GHSA-7HVW-3C2Q-45QG"],"tags":["CWE-409","CWE-789"],"cluster_id":2065,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/9095","html":"https://vulnwatch.ve1ve2.com/item/9095"}}]}