7.5high
webpki: CPU denial of service in certificate path building
- Severity
- 7.5high CVSS:3.0 by GitHub
- Published
- Last changed
- Also known as
- RUSTSEC-2023-0052
Description
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.
This was previously reported in https://github.com/briansmith/webpki/issues/69.
rustls-webpki is a fork of this crate which contains a fix for this issue and is actively maintained.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| webpki (crates.io) | before 0.22.2, from 0.0.0-0 before 0.22.2 | GitHub Advisory Database, RustSec Advisory Database |
All scores
| GitHub | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| RustSec Advisory Database | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
GitHub Advisory Database
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.
This was previously reported in https://github.com/briansmith/webpki/issues/69.
rustls-webpki is a fork of this crate which contains a fix for this issue and is actively maintained.
RustSec Advisory Database
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.
This was previously reported in https://github.com/briansmith/webpki/issues/69 and re-reported recently by Luke Malinowski.
webpki 0.22.1 included a partial fix and webpki 0.22.2 added further fixes.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-8qv2-5vq6-g2g7 changed 2026-09-10 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2023-0052 changed 2026-02-04 | CC0-1.0 |