CVE-2020-35884: Tiny http HTTP Request Smuggling Vulnerability
MODERATECVE-2020-35884 is a MODERATE (CVSS 6.5) http request smuggling vulnerability (CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')) affecting Tiny http libraries in the crates.io ecosystem. The issue involves http request smuggling in tiny_http. Remediation is available by upgrading affected packages to version 0.8.0.
CVE-2020-35884 at a Glance
Security Impact
CVSS: 6.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:L/I:L/A:N).
How to Fix CVE-2020-35884
To remediate this vulnerability, upgrade all affected Tiny http 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 tiny_http to 0.8.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for tiny_http
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-35884, inspect your project dependencies for Tiny http:
inspect dependencies for tiny_http
Analyze the terminal output to locate any version of Tiny http in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.8.0), 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-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling'), where the product acts as an intermediary http agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed http requests or responses in ways that are consistent with how the messages will be processed by those entities that are at the ultimate destination. In Tiny http, 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-2020-35884 Affected Tiny http Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
tiny_http
|
crates.io |
< 0.8.0
|
0.8.0
|
References
Frequently Asked Questions
What is CVE-2020-35884?
Which Tiny http versions are affected?
What version fixes CVE-2020-35884?
Is tiny_http affected?
What is the CVSS score of CVE-2020-35884?
What CWE is associated with CVE-2020-35884?
How can I check crates.io dependencies for CVE-2020-35884?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7v2r-wxmg-mgvc",
"modified" : "2023-06-13T21:49:09Z",
"published" : "2021-08-25T20:48:56Z",
"aliases" : [ "CVE-2020-35884" ],
"summary" : "HTTP Request smuggling in tiny_http",
"details" : "HTTP pipelining issues and request smuggling attacks are possible due to incorrect Transfer encoding header parsing. It is possible conduct HTTP request smuggling attacks (CL:TE/TE:TE) by sending invalid Transfer Encoding headers. By manipulating the HTTP response the attacker could poison a web-cache, perform an XSS attack, or obtain sensitive information from requests other than their own.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "tiny_http"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.8.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-35884"
}, {
"type" : "WEB",
"url" : "https://github.com/tiny-http/tiny-http/issues/173"
}, {
"type" : "WEB",
"url" : "https://github.com/tiny-http/tiny-http/pull/190"
}, {
"type" : "WEB",
"url" : "https://github.com/tiny-http/tiny-http/commit/623b87397a569729c4bcabae747823c5668cce94"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/tiny-http/tiny-http"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/M3JDNRE5RXJOWZZZF5QSCG4GUCSLTHF2"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VO6SRTCEPEYO2OX647I3H5XUWLFDRDWL"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2020-0031.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-444" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-08-19T20:56:20Z",
"nvd_published_at" : "2020-12-31T10:15:00Z"
}
}