GHSA-8FC3-XMHG-C8H5
Panics and aborts when reading crafted 7z archives
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-8FC3-XMHG-C8H5 divulgada · CVSS 4 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
`sevenz-rust2` can panic or abort the process when it reads a crafted 7z archive. This can
happen when the archive is opened and when its entries are decoded. An attacker who can supply
an archive to a program that uses this crate can crash that program.
- Crate: `sevenz-rust2`
- Affected versions: all versions up to and including 0.24.1
- Patched version: 0.24.2
Impact
A program that reads untrusted 7z archives with `sevenz-rust2` can crash on a crafted archive.
All functions that open an archive or decode its entries are affected. This includes the
extraction functions of the `util` feature and the WASM `decompress` function.
Issues
The advisory covers four groups of issues.
- Inconsistent header structure. The crate accepted archive headers whose parts did not
- Unbounded coder graphs. The crate accepted compression blocks with very long chains of
- Memory allocation from header values. The crate allocated memory for counts and sizes
- Platform-specific panics. The WASM `decompress` function panicked when an archive
The patched version rejects such archives with an error. It returns an error when an
allocation for header data fails, and it leaves file times unset when the platform cannot hold
them.
Mitigation
Update `sevenz-rust2` to 0.24.2 or later.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
crates.iosevenz-rust2 |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/hasenbanck/sevenz-rust2/security/advisories/GHSA-8fc3-xmhg-c8h5Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
