GHSA-5732-R375-V936
Excessive CPU use in EXIF/RAW IFD decoding due to uncounted tags and SubIFD fan-out
Texto original en inglés · Ver en español
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche v1.1.0 | github.com/bep/imagemeta · -24 d desde divulgación | |
| Divulgación | Publicada | GHSA-5732-R375-V936 divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
The `LimitNumTags` cap (added in v0.10.0 for CVE-2025-32024) did not bound the work done while decoding EXIF IFDs.
Details
- Tags skipped for exceeding `LimitTagSize` (or for having an oversized count) and IFD pointer tags were never counted.
- A SubIFDs tag can list thousands of offsets, all pointing to the same IFD, and each offset decodes that IFD again.
- The RAW decoders (DNG, CR2, NEF, ARW, PEF) had the same unbounded SubIFD fan-out in the image dimension scan done when `CONFIG` is requested.
Proof of concept
A crafted TIFF/RAW file under 1 MB could make `Decode` spend tens of seconds of CPU per call with default options. Memory use stayed flat and no error was returned. Any service that decodes metadata from untrusted images is affected.
Impact
Users of this library who decodes untrusted TIFF/RAW.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
gogithub.com/bep/imagemeta |
Corregida | v1.1.0 | -24 d | v1.1.1 no afectada |
1.1.0v1.1.0Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/bep/imagemeta/security/advisories/GHSA-5732-r375-v936Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
