GHSA-qg5g-gv98-5ffh: Rustls :accept` Vulnerability

MODERATE
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-qg5g-gv98-5ffh
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Rustls
Package Ecosystem crates.io
Published Date
Last Updated

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.

rustls fixed: 0.23.18
Upgrade rustls to 0.23.18
Verify Direct and Transitive Dependencies

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

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. Servers that use `tokio-rustls`'s `LazyConfigAcceptor` API are affected. Servers that use `tokio-rustls`'s `TlsAcceptor` API are not affected. Servers that use `rustls-ffi`'s `rustls_acceptor_accept` API are affected.

GHSA-qg5g-gv98-5ffh Affected Rustls Versions

1 component(s)
Fixed Versions:
0.23.18
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?
GHSA-qg5g-gv98-5ffh is a security vulnerability in Rustls involving :accept` under General Security Weakness.
Which Rustls versions are affected?
Affected versions include releases prior to 0.23.18 across affected packages: rustls.
What version fixes GHSA-qg5g-gv98-5ffh?
Upgrading to 0.23.18 (or the latest patched release for your respective branch) resolves the vulnerability.
Is rustls affected?
Yes, rustls is affected in releases prior to 0.23.18. Upgrade your dependency to 0.23.18 or later.
What CWE is associated with GHSA-qg5g-gv98-5ffh?
GHSA-qg5g-gv98-5ffh is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-qg5g-gv98-5ffh?
Run the dependency tree command: 'inspect dependencies for rustls'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}