CVE-2020-35884: Tiny http HTTP Request Smuggling Vulnerability

MODERATE
Advisory Identifier: GHSA-7v2r-wxmg-mgvc
CVSS 6.5
CWE-444
Published
Advisory Summary

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

CVE Identifier CVE-2020-35884
GHSA Identifier GHSA-7v2r-wxmg-mgvc
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')
Affected Product Tiny http
Package Ecosystem crates.io
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

tiny_http fixed: 0.8.0
Upgrade tiny_http to 0.8.0
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 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

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.

CVE-2020-35884 Affected Tiny http Versions

1 component(s)
Fixed Versions:
0.8.0
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?
CVE-2020-35884 is a security vulnerability in Tiny http involving HTTP Request smuggling in tiny_http under CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling').
Which Tiny http versions are affected?
Affected versions include releases prior to 0.8.0 across affected packages: tiny_http.
What version fixes CVE-2020-35884?
Upgrading to 0.8.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tiny_http affected?
Yes, tiny_http is affected in releases prior to 0.8.0. Upgrade your dependency to 0.8.0 or later.
What is the CVSS score of CVE-2020-35884?
CVE-2020-35884 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2020-35884?
CVE-2020-35884 is classified under CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') (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.).
How can I check crates.io dependencies for CVE-2020-35884?
Run the dependency tree command: 'inspect dependencies for tiny_http'. 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-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"
  }
}