CVE-2019-10776

In "index.js" file line 240, the run command executes the git command with a user controlled variable called remoteUrl

published January 7, 2020

CVSS
—
EPSS
2%
Percentile
82.0
In the wild
Unconfirmed
What it is

⚠️ A single user-controlled variable can send your git commands off the rails! This vulnerability in git-diff-apply opens the door for unexpected executions. 🔥 Think of it like a restaurant where the chef blindly follows an order without checking the ingredients. If the customer slips in a request for something bizarre, you might end up with a dish that’s completely off the menu! An attacker could manipulate the `remoteUrl`, potentially executing unwanted git commands on your system. This could lead to data corruption or unauthorized changes in your repositories, causing chaos in your workflow.

Put simply

Think of it like a restaurant where the chef blindly follows an order without checking the ingredients. If the customer slips in a request for something bizarre, you might end up with a dish that’s completely off the menu! In the index.js file at line 240, the `run` command executes git using a variable that comes from user input ('remoteUrl'). If this variable is not properly validated, it could execute arbitrary commands.

What to do

An attacker could manipulate the `remoteUrl`, potentially executing unwanted git commands on your system. This could lead to data corruption or unauthorized changes in your repositories, causing chaos in your workflow. Update to version 0.22.2 or later of git-diff-apply to patch this vulnerability. Review your code to ensure that user inputs are properly sanitized, especially in command execution contexts. You've got this! By taking these steps, you're fortifying your defenses and keeping your projects safe. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02147 · 82.0th percentile
Published
2020-01-07T18:27Z
EPSS history
Timeline
  • 07 JAN 18:27Z
    In "index.js" file line 240, the run command executes the git command with a user controlled variable called remoteUrl
    cvelistv5