CVE-2023-49569
ADVISORY - githubSummary
Impact
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, which is the default when using "Plain" versions of Open and Clone funcs (e.g. PlainClone). Applications using 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.
Patches
Users running versions of go-git
from v4
and above are recommended to upgrade to v5.11
in order to mitigate this vulnerability.
Workarounds
In cases where a bump to the latest version of go-git
is not possible in a timely manner, we recommend limiting its use to only trust-worthy Git servers.
Credit
Thanks to Ionut Lalu for responsibly disclosing this vulnerability to us.
Common Weakness Enumeration (CWE)
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
NIST
3.9
CVSS SCORE
9.8criticalGitHub
3.9
CVSS SCORE
9.8criticalDebian
-
Ubuntu
3.9
CVSS SCORE
9.8mediumGoLang
-
Amazon
-
CVSS SCORE
N/AhighAmazon
-
CVSS SCORE
N/AhighAmazon
-
CVSS SCORE
N/AhighRed Hat
2.2
CVSS SCORE
8.1criticalChainguard
CGA-3cxh-xvcg-8cqx
-
Chainguard
CGA-4cgv-xfqx-4qw7
-
Chainguard
CGA-5x2r-h3qx-fjxx
-
Chainguard
CGA-654q-q25g-gvhg
-
Chainguard
CGA-86cr-2hfv-mg62
-
Chainguard
CGA-fr8h-j77f-mq45
-
Chainguard
CGA-hr3v-vqm4-qqm2
-
Chainguard
CGA-hv74-jj3q-g3wr
-
Chainguard
CGA-m4hm-524x-wxh4
-
Chainguard
CGA-vmvv-wj22-w427
-
Chainguard
CGA-w79c-92j3-wr43
-
Chainguard
CGA-w99w-qr69-jr2r
-