{"answers":{"affected":"6 open source packages ship an affected version, including github.com/go-git/go-git/v5 and gopkg.in/src-d/go-git.v4. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-49569 in the wild and no public exploit code.","fix":"Upgrade github.com/go-git/go-git/v5 to 5.11.0 or later.","what":"CVE-2023-49569 is a critical path traversal vulnerability in go-git, published on 12 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-49569 and fix it if it is affected.\n\nWhat it is: CVE-2023-49569 is a critical path traversal vulnerability in go-git, published on 12 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-49569 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/go-git/go-git/v5 (Go): affected from 5.0.0; fixed in 5.11.0\n- github.com/go-git/go-git/v5 (Go): affected from 5.0.0; fixed in 5.11.0\n- github.com/go-git/go-git/v5 (Go): affected from 5.0.0; fixed in 5.11.0\n- gopkg.in/src-d/go-git.v4 (Go): affected from 4.0.0 up to 4.13.1; no fix listed\n- gopkg.in/src-d/go-git.v4 (Go): affected from 4.0.0 up to 4.13.1; no fix listed\n- gopkg.in/src-d/go-git.v4 (Go): affected from 4.7.1; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-49569/ (Markdown: https://insights.sbomify.com/CVE-2023-49569/index.md)","id":"CVE-2023-49569","markdown":"https://insights.sbomify.com/CVE-2023-49569/index.md","name":"CVE-2023-49569","record":{"aliases":["AZL-33891","AZL-35098","AZL-39592","DEBIAN-CVE-2023-49569","GHSA-449p-3h89-pw88","GO-2024-2456","RHSA-2024:2631","UBUNTU-CVE-2023-49569"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"Go Git library","requires_auth":"none","summary":"A path traversal flaw in go-git allows attackers to write files outside the repository, potentially leading to remote code execution on affected clients.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Bitdefender","cpe":[{"product":"go-git","vendor":"go-git_project"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"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.\n\nApplications 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.\nThis is a go-git implementation issue and does not affect the upstream git cli.","ecosystems":["Go","Red Hat:ceph_storage:6.1::el8","Red Hat:ceph_storage:6.1::el9"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients","id":"CVE-2023-49569","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2023"},"n_packages":115,"n_references":1,"next":{"headline":"Insecure Trust of Basic Constraints certificate in Bitdefender Total Security HTTPS Scanning (VA-11210)","id":"CVE-2023-49570"},"packages":[{"ecosystem":"Go","fixed":["5.11.0"],"introduced":["5.0.0"],"last_affected":[],"package":"github.com/go-git/go-git/v5","purl":null,"source":"GHSA-449p-3h89-pw88"},{"ecosystem":"Go","fixed":["5.11.0"],"introduced":["5.0.0"],"last_affected":[],"package":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","source":"GHSA-449p-3h89-pw88"},{"ecosystem":"Go","fixed":["5.11.0"],"introduced":["5.0.0"],"last_affected":[],"package":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","source":"GO-2024-2456"},{"ecosystem":"Go","fixed":[],"introduced":["4.0.0"],"last_affected":["4.13.1"],"package":"gopkg.in/src-d/go-git.v4","purl":null,"source":"GHSA-449p-3h89-pw88"},{"ecosystem":"Go","fixed":[],"introduced":["4.0.0"],"last_affected":["4.13.1"],"package":"gopkg.in/src-d/go-git.v4","purl":"pkg:golang/gopkg.in/src-d/go-git.v4","source":"GHSA-449p-3h89-pw88"},{"ecosystem":"Go","fixed":[],"introduced":["4.7.1"],"last_affected":[],"package":"gopkg.in/src-d/go-git.v4","purl":"pkg:golang/gopkg.in/src-d/go-git.v4","source":"GO-2024-2456"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph","purl":"pkg:rpm/redhat/ceph","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-base","purl":"pkg:rpm/redhat/ceph-base","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-base-debuginfo","purl":"pkg:rpm/redhat/ceph-base-debuginfo","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-common","purl":"pkg:rpm/redhat/ceph-common","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-common-debuginfo","purl":"pkg:rpm/redhat/ceph-common-debuginfo","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-debuginfo","purl":"pkg:rpm/redhat/ceph-debuginfo","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-debugsource","purl":"pkg:rpm/redhat/ceph-debugsource","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-exporter-debuginfo","purl":"pkg:rpm/redhat/ceph-exporter-debuginfo","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-fuse","purl":"pkg:rpm/redhat/ceph-fuse","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-fuse-debuginfo","purl":"pkg:rpm/redhat/ceph-fuse-debuginfo","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-immutable-object-cache","purl":"pkg:rpm/redhat/ceph-immutable-object-cache","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-immutable-object-cache-debuginfo","purl":"pkg:rpm/redhat/ceph-immutable-object-cache-debuginfo","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-mds-debuginfo","purl":"pkg:rpm/redhat/ceph-mds-debuginfo","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-mgr-debuginfo","purl":"pkg:rpm/redhat/ceph-mgr-debuginfo","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-mib","purl":"pkg:rpm/redhat/ceph-mib","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-mon-debuginfo","purl":"pkg:rpm/redhat/ceph-mon-debuginfo","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-osd-debuginfo","purl":"pkg:rpm/redhat/ceph-osd-debuginfo","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-radosgw-debuginfo","purl":"pkg:rpm/redhat/ceph-radosgw-debuginfo","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-resource-agents","purl":"pkg:rpm/redhat/ceph-resource-agents","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-selinux","purl":"pkg:rpm/redhat/ceph-selinux","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"ceph-test-debuginfo","purl":"pkg:rpm/redhat/ceph-test-debuginfo","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"cephfs-mirror-debuginfo","purl":"pkg:rpm/redhat/cephfs-mirror-debuginfo","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"cephfs-top","purl":"pkg:rpm/redhat/cephfs-top","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"libcephfs-devel","purl":"pkg:rpm/redhat/libcephfs-devel","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"libcephfs2","purl":"pkg:rpm/redhat/libcephfs2","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"libcephfs2-debuginfo","purl":"pkg:rpm/redhat/libcephfs2-debuginfo","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"libcephsqlite-debuginfo","purl":"pkg:rpm/redhat/libcephsqlite-debuginfo","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"librados-devel","purl":"pkg:rpm/redhat/librados-devel","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"librados-devel-debuginfo","purl":"pkg:rpm/redhat/librados-devel-debuginfo","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"librados2","purl":"pkg:rpm/redhat/librados2","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"librados2-debuginfo","purl":"pkg:rpm/redhat/librados2-debuginfo","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"libradospp-devel","purl":"pkg:rpm/redhat/libradospp-devel","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"libradosstriper1","purl":"pkg:rpm/redhat/libradosstriper1","source":"RHSA-2024:2631"},{"ecosystem":"Red Hat:ceph_storage:6.1::el8","fixed":["2:17.2.6-216.el8cp"],"introduced":["0"],"last_affected":[],"package":"libradosstriper1-debuginfo","purl":"pkg:rpm/redhat/libradosstriper1-debuginfo","source":"RHSA-2024:2631"}],"prev":{"headline":"Maliciously crafted Git server replies can cause DoS on go-git clients","id":"CVE-2023-49568"},"products":["go-git"],"published":"2024-01-12","related":[{"cvss_score":9.2,"headline":"go-git has an Argument Injection via the URL field","id":"CVE-2025-21613","kev_date_added":null,"published":"2025-01-06"},{"cvss_score":7.5,"headline":"go-git clients vulnerable to DoS via maliciously crafted Git server replies","id":"CVE-2025-21614","kev_date_added":null,"published":"2025-01-06"},{"cvss_score":7.5,"headline":"Maliciously crafted Git server replies can cause DoS on go-git clients","id":"CVE-2023-49568","kev_date_added":null,"published":"2024-01-12"},{"cvss_score":7,"headline":"go-git: Improper parsing of specially crafted objects may lead to inconsistent interpretation compared to upstream Git","id":"CVE-2026-45022","kev_date_added":null,"published":"2026-05-27"},{"cvss_score":5.4,"headline":"go-git: Crafted repositories may modify main and submodule .git directories","id":"CVE-2026-45571","kev_date_added":null,"published":"2026-05-27"},{"cvss_score":5,"headline":"go-git: Maliciously crafted idx file can cause asymmetric memory consumption","id":"CVE-2026-34165","kev_date_added":null,"published":"2026-03-31"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-11-14","vendors":["go-git"]},"summary":"A path traversal flaw in go-git allows attackers to write files outside the repository, potentially leading to remote code execution on affected clients.","url":"https://insights.sbomify.com/CVE-2023-49569/"}