CVE-2018-25083: Pullit Pullit Vulnerable To Command Injection Vulnerability

HIGH
Advisory Identifier: GHSA-8px5-63x9-5c7p
CWE-77
Published
Advisory Summary

CVE-2018-25083 is a HIGH pullit vulnerable to command injection vulnerability (CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')) affecting Pullit libraries in the npm ecosystem. The issue involves pullit vulnerable to command injection. Remediation is available by upgrading affected packages to version 1.4.0.

CVE-2018-25083 at a Glance

CVE Identifier CVE-2018-25083
GHSA Identifier GHSA-8px5-63x9-5c7p
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
Affected Product Pullit
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2018-25083

To remediate this vulnerability, upgrade all affected Pullit dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

pullit fixed: 1.4.0
npm install pullit@1.4.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls pullit

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2018-25083, inspect your project dependencies using npm:

npm ls pullit

Analyze the terminal output to locate any version of Pullit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.4.0), your application is affected.

Note: The npm ls pullit 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 Pullit, 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

Versions of `pullit` prior to 1.4.0 are vulnerable to Command Injection. The package does not validate input on git branch names and concatenates it to an exec call, allowing attackers to run arbitrary commands in the system. ## Recommendation Upgrade to version 1.4.0 or later. ## Credits This vulnerability was discovered by @lirantal

CVE-2018-25083 Affected Pullit Versions

1 component(s)
Fixed Versions:
1.4.0
Product / Package Ecosystem Affected Versions Fixed Version
pullit
npm
< 1.4.0
1.4.0

References

Frequently Asked Questions

What is CVE-2018-25083?
CVE-2018-25083 is a security vulnerability in Pullit involving pullit vulnerable to command injection under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection').
Which Pullit versions are affected?
Affected versions include releases prior to 1.4.0 across affected packages: pullit.
What version fixes CVE-2018-25083?
Upgrading to 1.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pullit affected?
Yes, pullit is affected in releases prior to 1.4.0. Upgrade your dependency to 1.4.0 or later.
What CWE is associated with CVE-2018-25083?
CVE-2018-25083 is classified under CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') (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.).
How can I check npm dependencies for CVE-2018-25083?
Run the dependency tree command: 'npm ls pullit'. 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-8px5-63x9-5c7p",
  "modified" : "2023-03-28T23:17:59Z",
  "published" : "2020-09-03T16:47:30Z",
  "aliases" : [ "CVE-2018-25083" ],
  "summary" : "pullit vulnerable to command injection",
  "details" : "Versions of `pullit` prior to 1.4.0 are vulnerable to Command Injection. The package does not validate input on git branch names  and concatenates it to an exec call, allowing attackers to run arbitrary commands in the system.\n\n## Recommendation\n\nUpgrade to version 1.4.0 or later.\n\n## Credits\n\nThis vulnerability was discovered by @lirantal",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "pullit"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.4.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-25083"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jkup/pullit/issues/23"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jkup/pullit/commit/4fec455774ee08f4dce0ef2ef934ffcc37219bfb"
  }, {
    "type" : "WEB",
    "url" : "https://hackerone.com/reports/315773"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jkup/pullit"
  }, {
    "type" : "WEB",
    "url" : "https://security.snyk.io/vuln/npm:pullit:20180214"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-77" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-08-31T18:43:46Z",
    "nvd_published_at" : null
  }
}