CVE-2023-49569

Aliases:GHSA-449p-3h89-pw88GO-2024-2456
Modified
Published: 12 Jan 2024, 10:41
Last modified:14 Nov 2024, 14:34

Vulnerability Summary

Overall Risk (default)
high
70/100
CVSS Score
9.8 CRITICAL
v3.1 (cve.org)
EPSS Score
4.03% LOW
4% probability 0.00%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

12 Jan 2024, 10:41
Published
Vulnerability first disclosed
14 Nov 2024, 14:34
Last Modified
Vulnerability information updated

Description

A path traversal vulnerability was discovered in go-git versions prior to v5.11. This vulnerability allows an attacker to create and amend files across the filesystem. In the worse case scenario, remote code execution could be achieved. Applications are only affected if they are using the ChrootOS https://pkg.go.dev/github.com/go-git/go-billy/v5/osfs#ChrootOS , which is the default when using "Plain" versions of Open and Clone funcs (e.g. PlainClone). Applications using BoundOS https://pkg.go.dev/github.com/go-git/go-billy/v5/osfs#BoundOS  or in-memory filesystems are not affected by this issue. This is a go-git implementation issue and does not affect the upstream git cli.

CVSS Metrics

  • v3.1CRITICALScore: 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS Trends

Current EPSS score: 4.03% Percentile: 89%

Techniques & Countermeasures

  • CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

    The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Affected Systems

  • go-git_projectgo-git

    ≥ 4.0.0, < 5.11.0

  • go-gitgo-git

    5.11.0

  • github.com/go-git/go-gitv5

    ≥ 5.0.0, < 5.11.0

  • gopkg.in/src-dgo-git.v4

    ≥ 4.7.1 | ≥ 4.0.0, ≤ 4.13.1

References (3)