GHSA-qg5g-gv98-5ffh: Rustls :accept` Vulnerability
MODERATEGHSA-qg5g-gv98-5ffh is a MODERATE :accept` vulnerability (General Security Weakness) affecting Rustls libraries in the crates.io ecosystem. The issue involves :accept`. Remediation is available by upgrading affected packages to version 0.23.18.
GHSA-qg5g-gv98-5ffh at a Glance
How to Fix GHSA-qg5g-gv98-5ffh
To remediate this vulnerability, upgrade all affected Rustls 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 rustls to 0.23.18
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for rustls
How to Check if You Are Affected
To determine whether your application is affected by GHSA-qg5g-gv98-5ffh, inspect your project dependencies for Rustls:
inspect dependencies for rustls
Analyze the terminal output to locate any version of Rustls in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.23.18), 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 General Security Weakness. In Rustls, 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-qg5g-gv98-5ffh Affected Rustls Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
rustls
|
crates.io |
≥ 0.23.13
< 0.23.18
|
0.23.18
|
References
Frequently Asked Questions
What is GHSA-qg5g-gv98-5ffh?
Which Rustls versions are affected?
What version fixes GHSA-qg5g-gv98-5ffh?
Is rustls affected?
What CWE is associated with GHSA-qg5g-gv98-5ffh?
How can I check crates.io dependencies for GHSA-qg5g-gv98-5ffh?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qg5g-gv98-5ffh",
"modified" : "2024-11-25T16:57:34Z",
"published" : "2024-11-25T16:57:34Z",
"aliases" : [ ],
"summary" : "rustls network-reachable panic in `Acceptor::accept`",
"details" : "A bug introduced in rustls 0.23.13 leads to a panic if the received TLS ClientHello is fragmented. Only servers that use `rustls::server::Acceptor::accept()` are affected.\n\nServers that use `tokio-rustls`'s `LazyConfigAcceptor` API are affected.\n\nServers that use `tokio-rustls`'s `TlsAcceptor` API are not affected.\n\nServers that use `rustls-ffi`'s `rustls_acceptor_accept` API are affected.\n",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "rustls"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.23.13"
}, {
"fixed" : "0.23.18"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rustls/rustls/issues/2227"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rustls/rustls"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2024-0399.html"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-11-25T16:57:34Z",
"nvd_published_at" : null
}
}