CVE-2023-22895
HIGH 7.5CVSS 3.1bzip2 allows attackers to cause a denial of service via a large file that triggers an integer overflow
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.
- Published
- 10 Jan 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-190
- Also known as
- GHSA-96jv-r488-c2rjRUSTSEC-2023-0004
- Sources
- NVDJSONOSV GHSA-96jv-r488-c2rjJSONOSV RUSTSEC-2023-0004JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | bzip2_project | bzip2cpe:2.3:a:bzip2_project:bzip2:*:*:*:*:*:rust:*:* |
< 0.4.4 | 0.4.4 |
| OSV | crates.io | bzip2 | < 0.4.4 | 0.4.4 |
| OSV | crates.io | bzip2 | >= 0.0.0-0, < 0.4.4 | 0.4.4 |
References
- https://crates.io/crates/bzip2/versions · Patch, Third Party Advisory, WEB
- https://github.com/alexcrichton/bzip2-rs/pull/86 · Exploit, Patch, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MI5SVRSGKBWB2JGDLDVIFY5ZQVDZP6I7/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SQK57GGXJX3AH7KF6S7S3N7JC5QOYUQ7/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UUK2JO25PPA6XBREKJRBLRCD22LKIOLO/
- https://nvd.nist.gov/vuln/detail/CVE-2023-22895 · ADVISORY
- https://github.com/alexcrichton/bzip2-rs/commit/90c9c182cd5a5ebc75810aebd89b347a7bdf590b · WEB
- https://github.com/alexcrichton/bzip2-rs · PACKAGE
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MI5SVRSGKBWB2JGDLDVIFY5ZQVDZP6I7 · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SQK57GGXJX3AH7KF6S7S3N7JC5QOYUQ7 · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UUK2JO25PPA6XBREKJRBLRCD22LKIOLO · WEB
- https://rustsec.org/advisories/RUSTSEC-2023-0004.html · WEB, ADVISORY
- https://crates.io/crates/bzip2 · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 10 Jan 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 9 Jan 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Jan 2023)