CVE-2018-19486

Git before 2.19.2 on Linux and UNIX executes commands from the current working directory (as if '.' were at the end of $PATH) in certain cases involving the…

published November 23, 2018

CVSS
—
EPSS
4%
Percentile
90.7
In the wild
Unconfirmed
What it is

⚠️ A wildcard in your PATH! Git before version 2.19.2 on Linux and UNIX can execute commands from the current directory, opening a sneaky door for trouble. 🔥 Think of it like a restaurant chef who decides to use any random ingredient they find lying around in the kitchen without checking if it's safe — yikes! This could lead to a recipe disaster, or in our case, a serious security risk. An attacker could potentially execute harmful commands just by placing a script in the working directory, leading to unauthorized access or even destruction of data! While it's not a widespread exploit yet, the possibility is absolutely devastating if someone stumbles upon this oversight.

Put simply

Think of it like a restaurant chef who decides to use any random ingredient they find lying around in the kitchen without checking if it's safe — yikes! This could lead to a recipe disaster, or in our case, a serious security risk. This vulnerability arises from a change in Git’s command execution method, where execvp was replaced with execv, inadvertently allowing commands in the current directory to be executed as part of the $PATH.

What to do

An attacker could potentially execute harmful commands just by placing a script in the working directory, leading to unauthorized access or even destruction of data! While it's not a widespread exploit yet, the possibility is absolutely devastating if someone stumbles upon this oversight. Update Git to version 2.19.2 or later to eliminate this risk. Additionally, review your command-line practices to ensure you're not unintentionally executing commands from untrusted directories. You've got this! Secure your environments and keep your code safe! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.04120 · 90.7th percentile
Published
2018-11-23T08:00Z
EPSS history
Timeline
  • 23 NOV 08:00Z
    Git before 2.19.2 on Linux and UNIX executes commands from the current working directory (as if '.' were at the end of $PATH) in certain cases involving the…
    cvelistv5