RUSTSEC-2023-0004

Source
https://rustsec.org/advisories/RUSTSEC-2023-0004
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2023-0004.json
Aliases
Published
2023-01-09T12:00:00Z
Modified
2023-11-08T04:11:39.404864Z
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.

References

Affected packages

crates.io / bzip2

Package

Name
bzip2

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.4.4

Ecosystem specific

{
    "affects": {
        "os": [],
        "functions": [],
        "arch": []
    }
}

Database specific

{
    "cvss": null,
    "informational": null,
    "categories": [
        "denial-of-service"
    ]
}