# GHSA-8qv2-5vq6-g2g7: webpki: CPU denial of service in certificate path building

- Severity: High 7.5 (CVSS:3.0, scored by GitHub) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-08-22T12:00:00.000Z
- Modified: 2026-09-10T03:50:02.806Z
- Also known as: RUSTSEC-2023-0052
- Related: CVE-2018-16875
- Weaknesses: CWE-400

## 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.

(As written by GitHub Advisory Database.)

## Affected

- webpki (crates.io): before 0.22.2; from 0.0.0-0 before 0.22.2

## Every score

- GitHub: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- RustSec Advisory Database: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/briansmith/webpki/issues/69> (web)
- <https://github.com/briansmith/webpki/issues/69#issuecomment-1699894848> (web)
- <https://github.com/briansmith/webpki/commit/30a108e0802fd09585e0d071013f24b8272d139b> (web)
- <https://github.com/briansmith/webpki> (package)
- <https://github.com/crypto-com/sgx-vendor> (web)
- <https://rustsec.org/advisories/RUSTSEC-2023-0052.html> (advisory, web)
- <https://crates.io/crates/webpki> (package)

## Sources

- GitHub Advisory Database: [GHSA-8qv2-5vq6-g2g7](https://github.com/advisories/GHSA-8qv2-5vq6-g2g7), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2023-0052](https://rustsec.org/advisories/RUSTSEC-2023-0052.html), CC0-1.0, modified 2026-02-04

---

Page: https://cve.day/GHSA-8qv2-5vq6-g2g7 · Whole record: https://cve.day/GHSA-8qv2-5vq6-g2g7.json · Rebuilt by cve.day 2026-11-25T22:56:43.152Z
