CVE-2020-35669: Http Http Before 0.13.3 Vulnerable To Vulnerability
MODERATECVE-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
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).
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.
Upgrade http to 0.13.3
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
CVE-2020-35669 Affected Http Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
http
|
Pub |
< 0.13.3
|
0.13.3
|
References
Frequently Asked Questions
What is CVE-2020-35669?
Which Http versions are affected?
What version fixes CVE-2020-35669?
Is http affected?
What is the CVSS score of CVE-2020-35669?
What CWE is associated with CVE-2020-35669?
How can I check Pub dependencies for CVE-2020-35669?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}