CVE-2023-22895 json
bzip2 allows attackers to cause a denial of service via a large file that triggers an integer overflow
published 2023-01-09 3 y ago modified 2026-06-17 4 mo ago also GHSA-96jv-r488-c2rj , RUSTSEC-2023-0004 , EUVD-2023-0424
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 69%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io bzip2 0.4.4
- bzip2_project bzip2 0.4.4
- rust-bzip2 Debian 14, Debian 13, Debian 12 0.4.4-1
debian advisories DEBIAN-CVE-2023-22895
- python-cramjam openSUSE Tumbleweed 2.9.1-1.3
- rage-encryption openSUSE Tumbleweed 0.9.0+0-4.1
- wasm-pack openSUSE Tumbleweed 0.10.3~0-2.1
opensuse advisories openSUSE-SU-2025:15094-1openSUSE-SU-2024:12610-1openSUSE-SU-2024:12616-1
- github.com/alexcrichton/bzip2-rs@90c9c18 commit
- github.com/alexcrichton/bzip2-rs#86 pull request
- crates.io/crates/bzip2/versions advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-22895 updated cvss 3.3
rust: The bzip2 crate before 0.4.4 for Rust allow attackers to cause a denial of service
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 19 mo ago
Exploit prediction
1.25% chance of exploitation in the next 30 days, higher than 69% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/alexcrichton/bzip2-rs/pull/86 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | bzip2 | <0.4.4 >=0.0.0-0, <0.4.4 |
0.4.4 |
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
References
-
github.com
/alexcrichton/bzip2-rs/pull/86
web, exploit, patch, third-party-advisory
-
crates.io
/crates/bzip2/versions
web, patch, third-party-advisory
-
github.com
/alexcrichton/bzip2-rs/commit/90c9c182cd5a5ebc75810aebd89b347a7bdf590b
web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/MI5SVRSGKBWB2JGDLDVIFY5ZQVDZP6I7/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/SQK57GGXJX3AH7KF6S7S3N7JC5QOYUQ7/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/UUK2JO25PPA6XBREKJRBLRCD22LKIOLO/
vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-22895
advisory
-
github.com
/alexcrichton/bzip2-rs
package
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/MI5SVRSGKBWB2JGDLDVIFY5ZQVDZP6I7
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/SQK57GGXJX3AH7KF6S7S3N7JC5QOYUQ7
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/UUK2JO25PPA6XBREKJRBLRCD22LKIOLO
web
-
rustsec.org
/advisories/RUSTSEC-2023-0004.html
web, advisory
-
crates.io
/crates/bzip2
package
Sources
- CVE List CVE-2023-22895
- GitHub Advisory GHSA-96jv-r488-c2rj
- NVD CVE-2023-22895
- OSV RUSTSEC-2023-0004
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.