{"id":"UBUNTU-CVE-2023-22895","details":"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.","modified":"2026-05-20T16:13:28.222821845Z","published":"2023-01-10T01:15:00Z","upstream":["CVE-2023-22895"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-22895"},{"type":"REPORT","url":"https://github.com/alexcrichton/bzip2-rs/pull/86"},{"type":"REPORT","url":"https://github.com/alexcrichton/bzip2-rs/commit/90c9c182cd5a5ebc75810aebd89b347a7bdf590b"},{"type":"REPORT","url":"https://crates.io/crates/bzip2/versions"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-22895"}],"affected":[{"package":{"name":"rust-bzip2","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/rust-bzip2?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.3.3-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-bzip2+futures-dev","binary_version":"0.3.3-1"},{"binary_name":"librust-bzip2+tokio-dev","binary_version":"0.3.3-1"},{"binary_name":"librust-bzip2+tokio-io-dev","binary_version":"0.3.3-1"},{"binary_name":"librust-bzip2-dev","binary_version":"0.3.3-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22895.json"}},{"package":{"name":"rust-bzip2","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/rust-bzip2?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.1-1","0.4.1-2"],"ecosystem_specific":{"binaries":[{"binary_version":"0.4.1-2","binary_name":"librust-bzip2-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22895.json"}},{"package":{"name":"rust-bzip2","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/rust-bzip2?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.4-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.4.4-1","binary_name":"librust-bzip2-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22895.json"}},{"package":{"name":"rust-bzip2","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/rust-bzip2?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-bzip2-dev","binary_version":"0.4.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22895.json"}},{"package":{"name":"rust-bzip2","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/rust-bzip2?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.4.4-1","0.6.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-bzip2-dev","binary_version":"0.6.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-22895.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}