CVE-2023-43669: Tungstenite Denial of Service Vulnerability
HIGHCVE-2023-43669 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Tungstenite libraries in the crates.io ecosystem. The issue involves tungstenite allows remote attackers to cause a denial of service. Remediation is available by upgrading affected packages to version 0.20.1.
CVE-2023-43669 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.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2023-43669
To remediate this vulnerability, upgrade all affected Tungstenite 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 tungstenite to 0.20.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for tungstenite
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-43669, inspect your project dependencies for Tungstenite:
inspect dependencies for tungstenite
Analyze the terminal output to locate any version of Tungstenite in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.20.1), 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 Tungstenite, 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
CVE-2023-43669 Affected Tungstenite Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
tungstenite
|
crates.io |
< 0.20.1
|
0.20.1
|
References
Frequently Asked Questions
What is CVE-2023-43669?
Which Tungstenite versions are affected?
What version fixes CVE-2023-43669?
Is tungstenite affected?
What is the CVSS score of CVE-2023-43669?
What CWE is associated with CVE-2023-43669?
How can I check crates.io dependencies for CVE-2023-43669?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9mcr-873m-xcxp",
"modified" : "2024-02-16T22:38:02Z",
"published" : "2023-09-21T06:30:25Z",
"aliases" : [ "CVE-2023-43669" ],
"summary" : "Tungstenite allows remote attackers to cause a denial of service",
"details" : "The Tungstenite crate through 0.20.0 for Rust allows remote attackers to cause a denial of service (minutes of CPU consumption) via an excessive length of an HTTP header in a client handshake. The length affects both how many times a parse is attempted (e.g., thousands of times) and the average amount of data for each parse attempt (e.g., millions of bytes).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "tungstenite"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.20.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.20.0"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-43669"
}, {
"type" : "WEB",
"url" : "https://github.com/snapview/tungstenite-rs/issues/376"
}, {
"type" : "WEB",
"url" : "https://github.com/github/advisory-database/pull/2752"
}, {
"type" : "WEB",
"url" : "https://github.com/snapview/tungstenite-rs/pull/379"
}, {
"type" : "WEB",
"url" : "https://github.com/snapview/tungstenite-rs/commit/8b3ecd3cc0008145ab4bc8d0657c39d09db8c7e2"
}, {
"type" : "WEB",
"url" : "https://security-tracker.debian.org/tracker/CVE-2023-43669"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2023-0065.html"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TT7SF6CQ5VHAGFLWNXY64NFSW4WIWE7D"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/THK6G6CD4VW6RCROWUV2C4HSINKK3XAK"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R77EUWPZVP5WSMNXUXUDNHR7G7OI5NGM"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TT7SF6CQ5VHAGFLWNXY64NFSW4WIWE7D"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/THK6G6CD4VW6RCROWUV2C4HSINKK3XAK"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R77EUWPZVP5WSMNXUXUDNHR7G7OI5NGM"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/snapview/tungstenite-rs"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-9mcr-873m-xcxp"
}, {
"type" : "WEB",
"url" : "https://cwe.mitre.org/data/definitions/407.html"
}, {
"type" : "WEB",
"url" : "https://crates.io/crates/tungstenite/versions"
}, {
"type" : "WEB",
"url" : "https://bugzilla.suse.com/show_bug.cgi?id=1215563"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2240110"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-09-21T17:18:59Z",
"nvd_published_at" : "2023-09-21T06:15:13Z"
}
}