bep/imagemeta に、PNGのzTXtチャンク処理で大量のメモリを確保される脆弱性
Summary
細工されたPNGファイルをimagemeta.Decodeで読み込むと、メモリを使い切られてサービス妨害(DoS)が起きるおそれがあります。影響を受けるのは0.17.3より前のbep/imagemetaで、0.17.3で修正されています。信頼できない画像を読み込む処理がある場合は、速やかに0.17.3以降へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
細工されたPNGファイルをimagemeta.Decodeで読み込むと、メモリを使い切られてサービス妨害(DoS)が起きるおそれがあります。影響を受けるのは0.17.3より前のbep/imagemetaで、0.17.3で修正されています。信頼できない画像を読み込む処理がある場合は、速やかに0.17.3以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| bepimagemeta | — | Not listed |
| Gogithub.com/bep/imagemeta |
< 0.17.3→ 0.17.3 |
0.17.3 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-103025 golang-github-bep-imagemeta Fix available
- Ubuntu UBUNTU-CVE-2026-103025 golang-github-bep-imagemeta No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- web github.com
- web github.com