7.5high
bzip2 allows attackers to cause a denial of service via a large file that triggers an integer overflow
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.34% (higher than 72% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-96jv-r488-c2rjRUSTSEC-2023-0004
Description
The bzip2 crate before 0.4.4 for Rust allow attackers to cause a denial of service via a large file that triggers an integer overflow in mem.rs. NOTE: this is unrelated to the https://crates.io/crates/bzip2-rs product.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| bzip2 (crates.io) | before 0.4.4, from 0.0.0-0 before 0.4.4 | GitHub Advisory Database, RustSec Advisory Database |
| bzip2_project bzip2 | before 0.4.4 | NVD |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
The bzip2 crate before 0.4.4 for Rust allow attackers to cause a denial of service via a large file that triggers an integer overflow in mem.rs. NOTE: this is unrelated to the https://crates.io/crates/bzip2-rs product.
GitHub Advisory Database
The bzip2 crate before 0.4.4 for Rust allow attackers to cause a denial of service via a large file that triggers an integer overflow in mem.rs. NOTE: this is unrelated to the https://crates.io/crates/bzip2-rs product.
RustSec Advisory Database
Working with specific payloads can cause a Denial of Service (DoS) vector.
Both Decompress and Compress implementations can enter into infinite loops
given specific payloads entered that trigger it.
The issue is described in great detail in the bzip2 repository issue.
Thanks to bjrjk for finding and providing the patch for the issue and the maintainer responsibly responding to release a fix quickly.
Users who use the crate with untrusted data should update the bzip2 to 0.4.4.
NVD (es)
bzip2 crate anterior a 0.4.4 para Rust permite a los atacantes provocar una denegación de servicio a través de un archivo grande que desencadena un desbordamiento de enteros en mem.rs. NOTA: esto no está relacionado con el producto https://crates.io/crates/bzip2-rs.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-22895 changed 2025-04-07 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-96jv-r488-c2rj changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2023-0004 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2023-22895 changed 2026-06-17 | Public domain |