CVE-2023-49569CWE-22

Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients

Critical · published January 12, 2024

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

🚨 A sneaky path traversal vulnerability in go-git could let attackers write and modify files on your system—yikes! 🔥 Think of it like a delivery driver who’s given a vague address and just rolls right into your garage instead of leaving the package on the porch. That’s what happens here when the wrong commands are run: files get placed where they don’t belong! With this vulnerability, an attacker could gain access to sensitive files or, worse, achieve remote code execution, opening the door to complete system takeover. This can lead to devastating data loss or compromise, leaving your applications vulnerable to malicious activities. It's like giving someone the keys to your entire operation!

Put simply

Think of it like a delivery driver who’s given a vague address and just rolls right into your garage instead of leaving the package on the porch. That’s what happens here when the wrong commands are run: files get placed where they don’t belong! This path traversal vulnerability in go-git allows attackers to exploit the ChrootOS implementation, enabling them to create and amend files across the filesystem. If this functionality is improperly used, it can lead to unauthorized actions, including remote code execution.

What to do

With this vulnerability, an attacker could gain access to sensitive files or, worse, achieve remote code execution, opening the door to complete system takeover. This can lead to devastating data loss or compromise, leaving your applications vulnerable to malicious activities. It's like giving someone the keys to your entire operation! Immediate action is required: upgrade to go-git version 5.11 or later to patch this vulnerability. Additionally, audit your applications to ensure that the vulnerable ChrootOS is not used, and consider using BoundOS or in-memory filesystems for added security. 🛡️ You've got this! Follow these steps, and you'll lock down your systems in no time! 💪✨

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.01510 · 74.3th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2024-01-12T10:41Z
EPSS history
Timeline
  • 12 JAN 10:41Z
    Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients
    cvelistv5