RUSTSEC-2023-0053

See a problem?
Source
https://rustsec.org/advisories/RUSTSEC-2023-0053
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2023-0053.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2023-0053
Aliases
Related
Published
2023-08-22T12:00:00Z
Modified
2023-11-08T04:19:00.286305Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
rustls-webpki: CPU denial of service in certificate path building
Details

When this crate is given a pathological certificate chain to validate, it will spend CPU time exponential with the number of candidate certificates at each step of path building.

Both TLS clients and TLS servers that accept client certificate are affected.

We now give each path building operation a budget of 100 signature verifications.

The original webpki crate is also affected.

This was previously reported in the original crate https://github.com/briansmith/webpki/issues/69 and re-reported to us recently by Luke Malinowski.

References

Affected packages

crates.io / rustls-webpki

Package

Name
rustls-webpki
View open source insights on deps.dev
Purl
pkg:cargo/rustls-webpki

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.100.2
Introduced
0.101.0
Fixed
0.101.4

Ecosystem specific

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

Database specific

{
    "cvss": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
    "informational": null,
    "categories": [
        "denial-of-service"
    ]
}