GHSA-8qv2-5vq6-g2g7: webpki Denial of Service Vulnerability
HIGHGHSA-8qv2-5vq6-g2g7 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting webpki libraries in the crates.io ecosystem. The issue involves cpu denial of service in certificate path building. Remediation is available by upgrading affected packages to version 0.22.2.
GHSA-8qv2-5vq6-g2g7 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix GHSA-8qv2-5vq6-g2g7
To remediate this vulnerability, upgrade all affected webpki dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade webpki to 0.22.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for webpki
How to Check if You Are Affected
To determine whether your application is affected by GHSA-8qv2-5vq6-g2g7, inspect your project dependencies for webpki:
inspect dependencies for webpki
Analyze the terminal output to locate any version of webpki in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.22.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In webpki, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-8qv2-5vq6-g2g7 Affected webpki Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
webpki
|
crates.io |
< 0.22.2
|
0.22.2
|
References
Frequently Asked Questions
What is GHSA-8qv2-5vq6-g2g7?
Which webpki versions are affected?
What version fixes GHSA-8qv2-5vq6-g2g7?
Is webpki affected?
What is the CVSS score of GHSA-8qv2-5vq6-g2g7?
What CWE is associated with GHSA-8qv2-5vq6-g2g7?
How can I check crates.io dependencies for GHSA-8qv2-5vq6-g2g7?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8qv2-5vq6-g2g7",
"modified" : "2023-09-06T17:36:28Z",
"published" : "2023-08-25T00:12:39Z",
"aliases" : [ ],
"summary" : "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.\n\nBoth TLS clients and TLS servers that accept client certificate are affected.\n\nThis was previously reported in https://github.com/briansmith/webpki/issues/69.\n\n`rustls-webpki` is a fork of this crate which contains a fix for this issue and is actively maintained.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "webpki"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.22.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.22.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/briansmith/webpki/issues/69"
}, {
"type" : "WEB",
"url" : "https://github.com/briansmith/webpki/issues/69#issuecomment-1699894848"
}, {
"type" : "WEB",
"url" : "https://github.com/briansmith/webpki/commit/30a108e0802fd09585e0d071013f24b8272d139b"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/briansmith/webpki"
}, {
"type" : "WEB",
"url" : "https://github.com/crypto-com/sgx-vendor"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2023-0052.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-25T00:12:39Z",
"nvd_published_at" : null
}
}