Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. gopkg.in/src-d/go-git.v4
  4. ›
  5. CVE-2023-49569

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

January 10, 2024 (updated January 6, 2025)

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.

References

  • github.com/advisories/GHSA-449p-3h89-pw88
  • github.com/go-git/go-git
  • github.com/go-git/go-git/security/advisories/GHSA-449p-3h89-pw88
  • nvd.nist.gov/vuln/detail/CVE-2023-49569

Code Behaviors & Features

Detect and mitigate CVE-2023-49569 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.0.0 up to 4.13.1

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

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

Source file

go/gopkg.in/src-d/go-git.v4/CVE-2023-49569.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:10 +0000.