GHSA-7HVW-3C2Q-45QG
bep/imagemeta: Unbounded memory allocation decoding PNG `zTXt` "Raw profile type iptc" chunks
Texto original en inglés · Ver en español
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche v0.17.3 | github.com/bep/imagemeta · -118 d desde divulgación | |
| Monitoreo | Detectada | Ingresó al índice | |
| Divulgación | Publicada | GHSA-7HVW-3C2Q-45QG divulgada | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Fuente: GitHub Security Advisories | Registro visto por primera vez en GitHub Security Advisories | |
| Monitoreo | Fuente: OSV | Registro visto por primera vez en OSV | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
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.
Impact
Denial 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.
Patches
Fixed in v0.17.3.
Workarounds
Reject or bound PNG input size before calling `Decode`, or clear `IPTC` from `Options.Sources` if IPTC metadata is not required.
Credits
Reported by Arpit Jain (@arpitjain099 https://github.com/arpitjain099).
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
gogithub.com/bep/imagemeta |
Corregida | v0.17.3 | -118 d | v1.1.1 no afectada |
0.17.3v0.17.3Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://nvd.nist.gov/vuln/detail/CVE-2026-103025https://github.com/bep/imagemeta/security/advisories/GHSA-7hvw-3c2q-45qghttps://github.com/bep/imagemeta/pull/69https://github.com/bep/imagemeta/commit/2289fdf83fcd238d86f72e65c588da687c998437https://github.com/bep/imagemetahttps://github.com/bep/imagemeta/releases/tag/v0.17.3Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
