CVE-2018-1000883: Plug Header Injection Vulnerability
MODERATECVE-2018-1000883 is a MODERATE (CVSS 6.5) header injection vulnerability (CWE-20: Improper Input Validation) affecting Plug libraries in the Hex ecosystem. The issue involves header injection. Remediation is available by upgrading affected packages to version 1.0.6, 1.1.9, 1.2.5, 1.3.5.
CVE-2018-1000883 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.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N).
How to Fix CVE-2018-1000883
To remediate this vulnerability, upgrade all affected Plug 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 plug to 1.0.6
Upgrade plug to 1.1.9
Upgrade plug to 1.2.5
Upgrade plug to 1.3.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for plug
How to Check if You Are Affected
To determine whether your application is affected by CVE-2018-1000883, inspect your project dependencies for Plug:
inspect dependencies for plug
Analyze the terminal output to locate any version of Plug in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.6), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Plug, 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-2018-1000883 Affected Plug Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
plug
|
Hex |
< 1.0.6
|
1.0.6
|
|
plug
|
Hex |
≥ 1.1.0
< 1.1.9
|
1.1.9
|
|
plug
|
Hex |
≥ 1.2.0
< 1.2.5
|
1.2.5
|
|
plug
|
Hex |
≥ 1.3.0
< 1.3.5
|
1.3.5
|
References
Frequently Asked Questions
What is CVE-2018-1000883?
Which Plug versions are affected?
What version fixes CVE-2018-1000883?
Is plug affected?
What is the CVSS score of CVE-2018-1000883?
What CWE is associated with CVE-2018-1000883?
How can I check Hex dependencies for CVE-2018-1000883?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9h73-w7ch-rh73",
"modified" : "2022-04-12T21:26:27Z",
"published" : "2022-04-12T21:26:27Z",
"aliases" : [ "CVE-2018-1000883" ],
"summary" : "Header Injection",
"details" : "Elixir Plug Plug version All contains a Header Injection vulnerability in Connection that can result in Given a cookie value, Headers can be added. This attack appear to be exploitable via Crafting a value to be sent as a cookie. This vulnerability appears to have been fixed in >= 1.3.5 or ~> 1.2.5 or ~> 1.1.9 or ~> 1.0.6.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Hex",
"name" : "plug"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Hex",
"name" : "plug"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.1.0"
}, {
"fixed" : "1.1.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Hex",
"name" : "plug"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.2.0"
}, {
"fixed" : "1.2.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Hex",
"name" : "plug"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.3.0"
}, {
"fixed" : "1.3.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-1000883"
}, {
"type" : "WEB",
"url" : "https://github.com/elixir-plug/plug/commit/8857f8ab4acf9b9c22e80480dae2636692f5f573"
}, {
"type" : "WEB",
"url" : "https://github.com/dependabot/elixir-security-advisories/blob/master/packages/plug/2017-04-17.yml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/elixir-plug/plug"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-04-12T21:26:27Z",
"nvd_published_at" : null
}
}