Skip to content
Heist/ feed
Back to feed
CriticalFix available

golang-github-go-git-go-git — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2023-49569

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
golang-github-go-git-go-git
Affected versions
5.11.0-1, 5.11.0-2, 5.11.0-3, 5.11.0-4, 5.12.0-1, 5.13.2-1, 5.14.0-1, 5.16.2-1, 5.17.0-1, 5.17.1-1, 5.19.1-1, 5.19.2-1, 5.19.2-2, 5.4.2-3, 5.4.2-4
Fixed versions
5.11.0-1
CVEs
CVE-2023-49569
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 16:11 UTC · Revision 1

Source evidence

DEBIAN-CVE-2023-49569

core-osv · Original source

Published 12 Jan 2024, 11:15 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:DEBIAN-CVE-2023-49569

golang-github-go-git-go-git

Fixed versions: Not specified

golang-github-go-git-go-git

Fixed versions: 5.11.0-1

golang-github-go-git-go-git

Fixed versions: 5.11.0-1

Complete source record
{
  "id": "1d8f7742550f882d27bf5cf0af824d6b61e3518f6cd043291f481c91d0b39052",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-49569",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2023-49569",
    "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:DEBIAN-CVE-2023-49569",
    "products": [
      {
        "name": {
          "value": "golang-github-go-git-go-git",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.11.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.11.0-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.11.0-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.11.0-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.12.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.13.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.14.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.16.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.17.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.17.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.19.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.19.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.19.2-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.4.2-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "5.4.2-4",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-go-git-go-git",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.11.0-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "golang-github-go-git-go-git",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.11.0-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "DEBIAN-CVE-2023-49569",
      "aliases": [
        "DEBIAN-CVE-2023-49569"
      ],
      "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": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-git-go-git",
            "purl": "pkg:deb/debian/golang-github-go-git-go-git?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "5.11.0-1",
            "5.11.0-2",
            "5.11.0-3",
            "5.11.0-4",
            "5.12.0-1",
            "5.13.2-1",
            "5.14.0-1",
            "5.16.2-1",
            "5.17.0-1",
            "5.17.1-1",
            "5.19.1-1",
            "5.19.2-1",
            "5.19.2-2",
            "5.4.2-3",
            "5.4.2-4"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-49569.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.11.0-1"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-git-go-git",
            "purl": "pkg:deb/debian/golang-github-go-git-go-git?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-49569.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.11.0-1"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-git-go-git",
            "purl": "pkg:deb/debian/golang-github-go-git-go-git?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-49569.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T18:02:50.323690239Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-49569"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2023-49569"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-49569",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 456960,
  "published_at": "2024-01-12T11:15:13.25+00:00"
}