7.5high
rustls-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-0053
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.
We now give each path building operation a budget of 100 signature verifications.
The original webpki crate is also affected, see GHSA-8qv2-5vq6-g2g7.
This was previously reported in the original crate https://github.com/briansmith/webpki/issues/69 and re-reported to us recently.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| rustls-webpki (crates.io) | before 0.100.2, from 0.101.0 before 0.101.4, from 0.0.0-0 before 0.100.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.
We now give each path building operation a budget of 100 signature verifications.
The original webpki crate is also affected, see GHSA-8qv2-5vq6-g2g7.
This was previously reported in the original crate https://github.com/briansmith/webpki/issues/69 and re-reported to us recently.
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.
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
Related
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-fh2r-99q2-6mmg changed 2026-09-10 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2023-0053 changed 2026-02-04 | CC0-1.0 |