# CVE-2019-10776: OS command injection in git-diff-apply

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.15%, higher than 82% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-01-07T18:27:13.000Z
- Modified: 2026-06-17T02:11:39.073Z
- Also known as: GHSA-84cm-v6jp-gjmr
- Weaknesses: CWE-78
- Assigned by: snyk

## Description

In "index.js" file line 240, the run command executes the git command with a user controlled variable called remoteUrl. This affects git-diff-apply all versions prior to 0.22.2.

(As written by CVE List.)

## Affected

- git-diff-apply: All versions prior to version 0.22.2
- git-diff-apply (npm): before 0.22.2
- git-diff-apply_project git-diff-apply: before 0.22.2

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-GITDIFFAPPLY-540774> (exploit, patch, third-party-advisory, web)
- <https://github.com/kellyselden/git-diff-apply/commit/106d61d3ae723b4257c2a13e67b95eb40a27e0b5> (patch, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JS-GITDIFFAPPLY-540774%2C>
- <https://nvd.nist.gov/vuln/detail/CVE-2019-10776> (advisory)
- <https://snyk.io/vuln/SNYK-JS-GITDIFFAPPLY-540774,> (web)

## Sources

- CVE List: [CVE-2019-10776](https://www.cve.org/CVERecord?id=CVE-2019-10776), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-84cm-v6jp-gjmr](https://github.com/advisories/GHSA-84cm-v6jp-gjmr), CC-BY-4.0, modified 2025-01-14
- NVD: [CVE-2019-10776](https://nvd.nist.gov/vuln/detail/CVE-2019-10776), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-10776 · Whole record: https://cve.day/CVE-2019-10776.json · Rebuilt by cve.day 2026-11-25T22:57:49.179Z
