p PatchFirst

CVE-2023-49569

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

CVSS 9.8 · Critical · EPSS 1.5% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="golang-github-go-git-go-git"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

  • USN-8088-1 · Ubuntu Pro 22.04 LTS, Ubuntu Pro 24.04 LTS ·
  • RHSA-2024:4118 · Red Hat ceph storage 5.3 el8, Red Hat ceph storage 5.3 el9 ·
  • RHSA-2024:0880 · Red Hat serverless 1.0 el8 ·
  • RHSA-2024:3925 · Red Hat ceph storage 7.1 el8, Red Hat ceph storage 7.1 el9 ·
  • RHSA-2024:2631 · Red Hat ceph storage 6.1 el8, Red Hat ceph storage 6.1 el9 ·

Stack: system

Affected products and versions

  • go-git

    Versions
    • 5.11.0: Affected

    No fix published

  • golang-github-go-git-go-git 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
    All versions (15)
    • 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
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-go-git-go-git Debian 13

    Affected ranges
    • ECOSYSTEM: < 5.11.0-1

    Update to 5.11.0-1

  • golang-github-go-git-go-git Debian 14

    Affected ranges
    • ECOSYSTEM: < 5.11.0-1

    Update to 5.11.0-1

  • golang-github-go-git-go-git Ubuntu Pro 22.04 LTS

    Versions
    • 5.4.2-3
    Affected ranges
    • ECOSYSTEM: < 5.4.2-3ubuntu0.1~esm1

    Update to 5.4.2-3ubuntu0.1~esm1

  • golang-github-go-git-go-git Ubuntu Pro 24.04 LTS

    Versions
    • 5.4.2-3build1
    • 5.4.2-4
    • 5.4.2-4ubuntu0.24.04.1
    • 5.4.2-4ubuntu0.24.04.2
    • 5.4.2-4ubuntu0.24.04.2+esm1
    • 5.4.2-4ubuntu0.24.04.3
    All versions (7)
    • 5.4.2-4ubuntu0.24.04.3+esm1
    Affected ranges
    • ECOSYSTEM: < 5.4.2-4ubuntu0.24.04.3+esm2

    Update to 5.4.2-4ubuntu0.24.04.3+esm2

Original sources

Check your server →