Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. git-diff-apply
  4. ›
  5. CVE-2019-10776

CVE-2019-10776: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

February 14, 2020 (updated August 19, 2021)

In “index.js” file line, the run command executes the git command with a user controlled variable called remoteUrl. This affects git-diff-apply all

References

  • github.com/advisories/GHSA-84cm-v6jp-gjmr
  • github.com/kellyselden/git-diff-apply/commit/106d61d3ae723b4257c2a13e67b95eb40a27e0b5
  • nvd.nist.gov/vuln/detail/CVE-2019-10776
  • snyk.io/vuln/SNYK-JS-GITDIFFAPPLY-540774
  • snyk.io/vuln/SNYK-JS-GITDIFFAPPLY-540774,

Code Behaviors & Features

Detect and mitigate CVE-2019-10776 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.22.1

Fixed versions

  • 0.22.2

Solution

Upgrade to version 0.22.2 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/git-diff-apply/CVE-2019-10776.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:01 +0000.