Advisory

RUSTSEC-2023-0004

Also known as: CVE-2023-22895, GHSA-96jv-r488-c2rj

Summary

bzip2 Denial of Service (DoS)

Details

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.

Severity

Not rated by the source.

Dates

Published
2023-01-09 12:00 UTC
Modified
2023-11-08 04:11 UTC

Affected packages and fixes

bzip2

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.4.4 (semver)

Fixed versions

0.4.4

Fix

  • Fixed version 0.4.4
    cargo update -p bzip2 --precise 0.4.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences