Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. bzip2
  4. ›
  5. CVE-2023-22895

CVE-2023-22895: bzip2 allows attackers to cause a denial of service via a large file that triggers an integer overflow

January 10, 2023 (updated January 13, 2023)

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.

References

  • crates.io/crates/bzip2/versions
  • github.com/advisories/GHSA-96jv-r488-c2rj
  • github.com/alexcrichton/bzip2-rs
  • github.com/alexcrichton/bzip2-rs/commit/90c9c182cd5a5ebc75810aebd89b347a7bdf590b
  • github.com/alexcrichton/bzip2-rs/pull/86
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MI5SVRSGKBWB2JGDLDVIFY5ZQVDZP6I7
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SQK57GGXJX3AH7KF6S7S3N7JC5QOYUQ7
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UUK2JO25PPA6XBREKJRBLRCD22LKIOLO
  • nvd.nist.gov/vuln/detail/CVE-2023-22895
  • rustsec.org/advisories/RUSTSEC-2023-0004.html

Code Behaviors & Features

Detect and mitigate CVE-2023-22895 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.4.4

Fixed versions

  • 0.4.4

Solution

Upgrade to version 0.4.4 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-190: Integer Overflow or Wraparound

Source file

cargo/bzip2/CVE-2023-22895.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:58 +0000.