CVE-2020-35669: Http Http Before 0.13.3 Vulnerable To Vulnerability

MODERATE
Advisory Identifier: GHSA-4rgh-jx4f-qfcq
CVSS 6.1
CWE-74
Published
Advisory Summary

CVE-2020-35669 is a MODERATE (CVSS 6.1) http before 0.13.3 vulnerable to vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Http libraries in the Pub ecosystem. The issue involves http before 0.13.3 vulnerable to header injection. Remediation is available by upgrading affected packages to version 0.13.3.

CVE-2020-35669 at a Glance

CVE Identifier CVE-2020-35669
GHSA Identifier GHSA-4rgh-jx4f-qfcq
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected Product Http
Package Ecosystem Pub
Published Date
Last Updated

Security Impact

CVSS: 6.1

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:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2020-35669

To remediate this vulnerability, upgrade all affected 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.

http fixed: 0.13.3
Upgrade http to 0.13.3
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 http

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-35669, inspect your project dependencies for Http:

inspect dependencies for http

Analyze the terminal output to locate any version of Http in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.13.3), 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-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In 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

An issue was discovered in the http package before 0.13.3 for Dart. If the attacker controls the HTTP method and the app is using Request directly, it's possible to achieve CRLF injection in an HTTP request via HTTP header injection. This issue has been addressed in commit abb2bb182 by validating request methods.

CVE-2020-35669 Affected Http Versions

1 component(s)
Fixed Versions:
0.13.3
Product / Package Ecosystem Affected Versions Fixed Version
http
Pub
< 0.13.3
0.13.3

References

Frequently Asked Questions

What is CVE-2020-35669?
CVE-2020-35669 is a security vulnerability in Http involving http before 0.13.3 vulnerable to header injection under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').
Which Http versions are affected?
Affected versions include releases prior to 0.13.3 across affected packages: http.
What version fixes CVE-2020-35669?
Upgrading to 0.13.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is http affected?
Yes, http is affected in releases prior to 0.13.3. Upgrade your dependency to 0.13.3 or later.
What is the CVSS score of CVE-2020-35669?
CVE-2020-35669 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2020-35669?
CVE-2020-35669 is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.).
How can I check Pub dependencies for CVE-2020-35669?
Run the dependency tree command: 'inspect dependencies for 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-4rgh-jx4f-qfcq",
  "modified" : "2022-08-04T21:05:04Z",
  "published" : "2022-05-24T17:37:16Z",
  "aliases" : [ "CVE-2020-35669" ],
  "summary" : "http before 0.13.3 vulnerable to header injection",
  "details" : "An issue was discovered in the http package before 0.13.3 for Dart. If the attacker controls the HTTP method and the app is using Request directly, it's possible to achieve CRLF injection in an HTTP request via HTTP header injection. This issue has been addressed in commit abb2bb182 by validating request methods.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Pub",
      "name" : "http"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.13.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-35669"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dart-lang/http/issues/511"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dart-lang/http/pull/512"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dart-lang/http/commit/abb2bb182fbd7f03aafd1f889b902d7b3bdb8769"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/dart-lang/http"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dart-lang/http/blob/master/CHANGELOG.md#0133"
  }, {
    "type" : "WEB",
    "url" : "https://pub.dev/packages/http/changelog#0133"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-74" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-08-04T21:05:04Z",
    "nvd_published_at" : "2020-12-24T03:15:00Z"
  }
}