{"answers":{"affected":"5 open source packages ship an affected version, including github.com/go-git/go-git/v5 and github.com/go-git/go-git/v6. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-45022 in the wild and no public exploit code.","fix":"Upgrade github.com/go-git/go-git/v5 to 5.19.0 or later.","what":"CVE-2026-45022 is a high-severity vulnerability in go-git, published on 27 May 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-45022 and fix it if it is affected.\n\nWhat it is: CVE-2026-45022 is a high-severity vulnerability in go-git, published on 27 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-45022 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/go-git/go-git/v5 (Go): affected all versions; fixed in 5.19.0\n- github.com/go-git/go-git/v5 (Go): affected all versions; fixed in 5.19.0\n- github.com/go-git/go-git/v5 (Go): affected all versions; fixed in 5.19.0\n- github.com/go-git/go-git/v6 (Go): affected from 6.0.0-alpha.1; fixed in 6.0.0-alpha.3\n- github.com/go-git/go-git/v6 (Go): affected from 6.0.0-alpha.1; fixed in 6.0.0-alpha.3\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-2026-45022/ (Markdown: https://insights.sbomify.com/CVE-2026-45022/index.md)","id":"CVE-2026-45022","markdown":"https://insights.sbomify.com/CVE-2026-45022/index.md","name":"CVE-2026-45022","record":{"aliases":["BELL-CVE-2026-45022","CLEANSTART-2026-CD37394","CLEANSTART-2026-QM97024","CLEANSTART-2026-RC37242","CLEANSTART-2026-WJ78227","DEBIAN-CVE-2026-45022","GHSA-389r-gv7p-r3rp","GO-2026-5074","MINI-2339-hqr4-878w","MINI-25qr-6cmp-v45p","MINI-26pf-v923-23mv","MINI-27v9-4377-jvqp","MINI-2945-rqgx-7j7m","MINI-2vwx-6678-9jqc","MINI-2xvv-3953-pxr5","MINI-35gc-px9c-5pw5","MINI-35mw-v76g-hr7x","MINI-367x-q7mv-f6xv","MINI-37cm-f6f8-7qqj","MINI-394f-jf2w-62xq","MINI-3h77-4rpc-5m23","MINI-3hwr-mg45-ccc9","MINI-3pcr-9m8g-c6cq","MINI-3vhx-5w9q-63w8","MINI-432f-vrwf-gpcp","MINI-44vv-xmgq-w794","MINI-45vx-qqqw-7rwr","MINI-47rp-jf4x-f492","MINI-4jr4-mfjh-h94r","MINI-4mgr-xx4g-j4gx","MINI-4p4f-fxg2-mjx6","MINI-4p84-g29c-pjxh","MINI-4pjx-mfx3-gppc","MINI-4prx-92f8-m2gp","MINI-4v25-hvm2-hp78","MINI-558h-27hh-xvpf","MINI-55vh-ppr2-5wpc","MINI-56f9-r345-8g9v","MINI-59jc-23xj-q9gf","MINI-5fw6-hxg6-62cg","MINI-5vw6-j6xw-ffrh","MINI-5w74-jj2v-474g","MINI-5wrw-7qwr-h8rp","MINI-5wxv-48r4-53v5","MINI-5xg2-6m35-72p3","MINI-5xx5-3528-9wrq","MINI-626p-mjg2-8mfp","MINI-633c-gvjf-h9gx","MINI-68x8-phf6-4whj","MINI-6f56-g8r5-xj8w","MINI-6jcw-55v6-592v","MINI-6mh7-3h77-mxwq","MINI-6vwh-p5cx-c23m","MINI-6x8c-2fm6-prq7","MINI-722f-c4p8-fj76","MINI-73hj-95mw-m7vv","MINI-7726-cx9h-8cc4","MINI-7gg9-9vjv-28m7","MINI-7mp3-84jx-9542","MINI-7qh5-9qmm-ccmw","MINI-7v4f-7cpj-jvfp","MINI-7vf4-6882-vrx9","MINI-7x59-9879-vc2j","MINI-8427-w35w-p75x","MINI-85hg-vf5w-894f","MINI-87p4-qvj2-7rc3","MINI-883p-49gw-fvww","MINI-88c5-qhh5-6g27","MINI-8cm2-jw34-3rxm","MINI-8gj7-9jg5-vpqg","MINI-8gr6-3q98-6rg3","MINI-8q2j-6mgm-r89w","MINI-8rvf-5pc5-x5pj","MINI-8vj3-wx7g-pffm","MINI-8w8r-chjg-w5cg","MINI-93pq-qcvf-4gf4","MINI-94r3-f4g7-mqjr","MINI-95fq-pg9m-68px","MINI-96hj-3xj4-h2gg","MINI-977r-2894-7rhj","MINI-998m-qpwr-fxhw","MINI-9c7x-4xx5-g5p6","MINI-9ccq-85wc-r4jm","MINI-9cf8-p892-w85p","MINI-9gcp-5pf5-j3xq","MINI-9mmf-wxw4-rqfw","MINI-9pr6-f6wr-x6fv","MINI-9rmv-4w54-5p23","MINI-9wqm-q8c4-3wqq","MINI-9xx7-3pc8-qv45","MINI-c4fh-5wx7-qq94","MINI-c9v6-fgpg-fhcm","MINI-c9wr-55r8-6xgg","MINI-cc9g-92wc-vv54","MINI-cj34-997v-r59j","MINI-cpx2-mxjc-3wv3","MINI-cvmc-m3qh-8m8p","MINI-f985-8v9m-pp37","MINI-fhwr-qqhm-924p","MINI-fjvc-wrm7-389j","MINI-fq47-mx76-j4g9","MINI-fvc4-hf5h-38h3","MINI-fvw9-jfq3-xwvq","MINI-fwfw-pwcm-j984","MINI-g4r2-6776-4p6q","MINI-gh53-58fq-gw4g","MINI-gj45-x8g3-hfmh","MINI-gmvf-jg6v-3hrm","MINI-gqcx-r34j-f4c6","MINI-grx2-5jr7-63gf","MINI-h696-6p44-c6qv","MINI-h86g-g7mj-vjvr","MINI-hc37-5c89-6g7v","MINI-hhhw-f29g-q8rf","MINI-hw6w-248v-mfvm","MINI-j284-gm88-2rjf","MINI-j67x-vwj9-x469","MINI-jf48-365r-52w7","MINI-jpmg-6hwh-5c8w","MINI-jxcq-64j9-8mpw","MINI-m66q-f89x-q42f","MINI-m6fc-r777-phr8","MINI-mh66-wgcv-pf9f","MINI-mhgx-5w95-pj5v","MINI-mj8q-r53c-h4w7","MINI-mv42-xjf3-4h4c","MINI-mw87-vp7g-cxp2","MINI-mwc4-5p86-jh83","MINI-p6m2-vvj3-r6cp","MINI-pjmm-j7x4-jhr9","MINI-pw74-wh35-5mrg","MINI-q28h-mp42-pc4m","MINI-q4wp-353j-f756","MINI-q5gm-6rm7-2q5g","MINI-q6qm-9vf3-3qrm","MINI-q782-wg8x-r5qx","MINI-qfw4-93x7-p459","MINI-qh48-4cxg-h7vr","MINI-qxhp-6gh9-mgh7","MINI-qxjf-9mwr-fff2","MINI-r257-3mpf-rhv7","MINI-r28f-g489-484q","MINI-r3jj-9rr2-77wv","MINI-r6g9-28qr-58j9","MINI-r6pq-567v-7r7m","MINI-r6qh-c4px-w4x6","MINI-r6qp-8vrw-9j34","MINI-r6wr-72j5-h5gg","MINI-r86c-6r24-5jpr","MINI-rcq6-4f4f-8hx3","MINI-rmjj-5x6w-fg2h","MINI-rr29-98m4-63r4","MINI-rr9j-mw49-g79p","MINI-rrwc-9f6x-gm3w","MINI-v2w5-8p4c-xq92","MINI-v3x6-89r7-87f5","MINI-v5pr-8wq4-vf4p","MINI-v6pp-c5x5-57xg","MINI-vfr9-wr8w-frcv","MINI-vhcc-f9vg-wfj9","MINI-vjpm-34c2-5r2q","MINI-vm27-wxpf-7p97","MINI-vqgx-prxv-9v84","MINI-vqx4-g3m9-vpfj","MINI-vv5w-hpcw-qqqv","MINI-vvcj-4hp9-hvjx","MINI-vwp8-fm9j-69qj","MINI-vx72-5mmw-p9px","MINI-w2ch-pm5x-2j26","MINI-w2v9-98cj-7g88","MINI-w462-v46w-wx76","MINI-w6gr-xf6j-722h","MINI-w77p-2r43-qv96","MINI-w9jc-chh8-39w3","MINI-wfjj-3m87-pq9m","MINI-whrm-pfqx-x276","MINI-wmh7-j28h-w4rc","MINI-wp5v-2mj2-398g","MINI-wrvf-qqwc-78g8","MINI-wvj8-874x-rmwp","MINI-www4-j3hq-wgwv","MINI-x334-977m-754q","MINI-x98m-hcx7-m3v3","MINI-xcpx-xqgq-3g39","MINI-xm9q-r49w-wcvq","MINI-xx9r-x3fc-h8hf","ROOT-APP-GOBINARY-CVE-2026-45022","UBUNTU-CVE-2026-45022","openSUSE-SU-2026:10769-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Go Git library","requires_auth":"low_privilege","summary":"go-git library may incorrectly parse malformed Git objects, causing signature verification to pass for commits with altered metadata.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"go-git","vendor":"go-git_project"}],"cvss":{"score":7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N","version":"4.0"},"cwes":[{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"},{"id":"CWE-180","name":"Incorrect Behavior Order: Validate Before Canonicalize"}],"description":"go-git is an extensible git implementation library written in pure Go. Prior to 5.19.0 and 6.0.0-alpha.3, go-git may parse malformed Git objects in a way that differs from upstream Git. When commit or tag objects contain ambiguous or malformed headers, go-git’s decoded representation may expose values differently from how Git itself would interpret or reject the same object. Additionally, go-git’s commit signing and verification logic operates over commit data reconstructed from go-git’s parsed representation rather than the original raw object bytes. As a result, go-git may sign or verify a commit payload that is not byte-for-byte equivalent to the object stored in the repository. This can cause a signature to appear valid for a commit whose displayed or effective metadata differs from the object that was intended to be signed. This vulnerability is fixed in 5.19.0 and 6.0.0-alpha.3.","ecosystems":["Go","openSUSE:Tumbleweed"],"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":"go-git: Improper parsing of specially crafted objects may lead to inconsistent interpretation compared to upstream Git","id":"CVE-2026-45022","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"other","year":"2026"},"n_packages":6,"n_references":1,"next":{"headline":"AutoGPT: Credit system bypassed via direct block execution in POST /api/blocks/{block_id}/execute","id":"CVE-2026-45023"},"packages":[{"ecosystem":"Go","fixed":["5.19.0"],"introduced":["0"],"last_affected":[],"package":"github.com/go-git/go-git/v5","purl":null,"source":"GHSA-389r-gv7p-r3rp"},{"ecosystem":"Go","fixed":["5.19.0"],"introduced":["0"],"last_affected":[],"package":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","source":"GHSA-389r-gv7p-r3rp"},{"ecosystem":"Go","fixed":["5.19.0"],"introduced":["0"],"last_affected":[],"package":"github.com/go-git/go-git/v5","purl":"pkg:golang/github.com/go-git/go-git/v5","source":"GO-2026-5074"},{"ecosystem":"Go","fixed":["6.0.0-alpha.3"],"introduced":["6.0.0-alpha.1"],"last_affected":[],"package":"github.com/go-git/go-git/v6","purl":null,"source":"GHSA-389r-gv7p-r3rp"},{"ecosystem":"Go","fixed":["6.0.0-alpha.3"],"introduced":["6.0.0-alpha.1"],"last_affected":[],"package":"github.com/go-git/go-git/v6","purl":"pkg:golang/github.com/go-git/go-git/v6","source":"GHSA-389r-gv7p-r3rp"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.8.7-1.1"],"introduced":["0"],"last_affected":[],"package":"flux2-cli","purl":"pkg:rpm/opensuse/flux2-cli\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10769-1"}],"prev":{"headline":"Kuma: Default kuma-cp leaks admin token cross-origin via CORS wildcard + LocalhostIsAdmin","id":"CVE-2026-45021"},"products":["go-git"],"published":"2026-05-27","related":[{"cvss_score":9.8,"headline":"Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients","id":"CVE-2023-49569","kev_date_added":null,"published":"2024-01-12"},{"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":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":"SUSE","prefix":"openSUSE"},{"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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-27","vendors":["go-git"]},"summary":"go-git library may incorrectly parse malformed Git objects, causing signature verification to pass for commits with altered metadata.","url":"https://insights.sbomify.com/CVE-2026-45022/"}