Skip to content
Heist/ feed
Back to feed
Critical

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-49569
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 01:03 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 12 Jan 2024, 10:41 UTC

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.

osv:CVE-2023-49569
Complete source record
{
  "id": "5b5fe9c0db45aa5197344b058d1bc68250ca18da16f15be668f393d511dc073f",
  "url": "https://osv.dev/vulnerability/CVE-2023-49569",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients",
    "summary": "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.",
    "evidence": "osv:CVE-2023-49569",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2023-49569",
      "aliases": [
        "CVE-2023-49569",
        "GHSA-449p-3h89-pw88",
        "GO-2024-2456"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/go-git/go-git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5d08d3bd94c65a3b6c25c6fba6907d12b0dac4ca"
                },
                {
                  "fixed": "5d08d3bd94c65a3b6c25c6fba6907d12b0dac4ca"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "5.11.0"
                      },
                      {
                        "last_affected": "5.11.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "cpe": "cpe:2.3:a:go-git_project:go-git:*:*:*:*:*:go:*:*",
                    "range": [
                      {
                        "introduced": "4.0.0"
                      },
                      {
                        "fixed": "5.11.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "5.11.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-49569.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.746590122Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/49xxx/CVE-2023-49569.json",
        "https://github.com/go-git/go-git/security/advisories/GHSA-449p-3h89-pw88",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-49569"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "Bitdefender",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/49xxx/CVE-2023-49569.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-49569",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 491408,
  "published_at": "2024-01-12T10:41:00.201+00:00"
}