CVE-2019-10776
CRITICAL 9.8CVSS 3.1OS command injection in git-diff-apply
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.
- Published
- 7 Jan 2020
- Last modified
- 2 Dec 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-78
- Also known as
- GHSA-84cm-v6jp-gjmrSNYK-JS-GITDIFFAPPLY-540774
- Sources
- NVDJSONOSV GHSA-84cm-v6jp-gjmrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | git-diff-apply_project | git-diff-applycpe:2.3:a:git-diff-apply_project:git-diff-apply:*:*:*:*:*:*:*:* |
< 0.22.2 | 0.22.2 |
| OSV | npm | git-diff-apply | < 0.22.2 | 0.22.2 |
References
- https://github.com/kellyselden/git-diff-apply/commit/106d61d3ae723b4257c2a13e67b95eb40a27e0b5 · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-GITDIFFAPPLY-540774%2C
- https://snyk.io/vuln/SNYK-JS-GITDIFFAPPLY-540774 · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2019-10776 · ADVISORY
- https://snyk.io/vuln/SNYK-JS-GITDIFFAPPLY-540774, · WEB
History
- 2 Dec 2026 07:23 UTC · OSV: updated (other details)
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 7 Jan 2020)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 14 Feb 2020)