CVE-2015-4130: Ungit Command Injection Vulnerability
CRITICALCVE-2015-4130 is a CRITICAL command injection vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Ungit libraries in the npm ecosystem. The issue involves command injection in ungit. Remediation is available by upgrading affected packages to version 0.9.0.
CVE-2015-4130 at a Glance
How to Fix CVE-2015-4130
To remediate this vulnerability, upgrade all affected Ungit dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install ungit@0.9.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls ungit
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2015-4130, inspect your project dependencies using npm:
npm ls ungit
Analyze the terminal output to locate any version of Ungit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.9.0), your application is affected.
Note: The npm ls ungit command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection'), where the product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component. In Ungit, 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-2015-4130 Affected Ungit Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ungit
|
npm |
< 0.9.0
|
0.9.0
|
References
Frequently Asked Questions
What is CVE-2015-4130?
Which Ungit versions are affected?
What version fixes CVE-2015-4130?
Is ungit affected?
What CWE is associated with CVE-2015-4130?
How can I check npm dependencies for CVE-2015-4130?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vjfr-p6hp-jqqw",
"modified" : "2021-09-23T21:01:14Z",
"published" : "2020-08-31T23:00:10Z",
"aliases" : [ "CVE-2015-4130" ],
"summary" : "Command Injection in ungit",
"details" : "Versions of `ungit` prior to 0.9.0 are affected by a command injection vulnerability in the `url` parameter.\n\n\n## Recommendation\n\nUpdate version 0.9.0 or later.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "ungit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.9.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.8.4"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-4130"
}, {
"type" : "WEB",
"url" : "https://github.com/FredrikNoren/ungit/issues/486"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/FredrikNoren/ungit"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/40"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:08:53Z",
"nvd_published_at" : null
}
}