CVE-2022-24826CWE-426

Git LFS can execute a binary from the current directory on Windows

Critical · published April 19, 2022

CVSS v3.1
9.8
EPSS
2%
Percentile
82.6
In the wild
Unconfirmed
What it is

🚨 A sneaky file name is all it takes! If Git LFS encounters a malicious repository with specific filenames, it could unwittingly execute arbitrary code on Windows. 🔥 Think of it like a waiter who accidentally serves you the wrong dish because the order ticket was mislabeled — instead of your gourmet dinner, you get a surprise mystery meal that could be anything! In this scenario, the attacker could execute any code they want, potentially leading to full system control or data breaches. This could be absolutely devastating for your system, as it opens the door to unauthorized access and malicious activities that could go unnoticed until it's too late!

Put simply

Think of it like a waiter who accidentally serves you the wrong dish because the order ticket was mislabeled — instead of your gourmet dinner, you get a surprise mystery meal that could be anything! This vulnerability arises because Git LFS can misinterpret the execution path when certain conditions are met, leading it to execute a malicious file instead of the intended program. This occurs due to a flaw in the Go `os/exec` package, which improperly handles empty strings in the execution path.

What to do

In this scenario, the attacker could execute any code they want, potentially leading to full system control or data breaches. This could be absolutely devastating for your system, as it opens the door to unauthorized access and malicious activities that could go unnoticed until it's too late! Immediately upgrade Git LFS to version 3.1.3 to close this critical gap. Check your repositories for any suspicious filenames, and ensure your environment is secure. Unfortunately, no workarounds are available, so timely patching is essential! You've got this! Follow these steps, and you'll keep your system safe and sound! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.02228 · 82.6th percentile
Weakness
CWE-426 · Untrusted Search Path
Published
2022-04-19T23:35Z
EPSS history
Timeline
  • 19 APR 23:35Z
    Git LFS can execute a binary from the current directory on Windows
    cvelistv5