# CVE-2026-71556: go-git: Worktree operations may follow symlinks

> Attackers can craft malicious repositories to force go-git to read or write files outside the working directory via symlink resolution during worktree operations.

- **Severity:** High 7.1 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 7 Aug 2026
- **Updated:** 7 Aug 2026
- **Also known as:** AZL-94676, AZL-95484, CLEANSTART-2026-BA50479, CLEANSTART-2026-JT96055, CLEANSTART-2026-OJ43473, CLEANSTART-2026-RS39844, CLEANSTART-2026-XT59199, DEBIAN-CVE-2026-71556, ECHO-b4d0-aa98-63a6, GHSA-hc8v-wwc9-vgxm, GO-2026-6213, MINI-24cf-6q52-4wfr, MINI-255c-8rcj-wfgj, MINI-25cp-r3qw-5x92, MINI-26v7-3qpj-mmrq, MINI-286r-v4rw-q65g, MINI-28c2-349p-9jp2, MINI-294g-8mvq-vjjr, MINI-2f52-c55f-3gx6, MINI-2fh6-p497-r9jw, MINI-2h97-hg2p-4fg8, MINI-2pch-prqf-jjjr, MINI-2pwv-72jv-c4w5, MINI-2v9p-8cfg-9m6c, MINI-2vqm-cgpr-889c, MINI-2vv4-36fj-2qhf, MINI-2wh9-8pqv-9g5j, MINI-34gp-63h5-7w59, MINI-36p5-24pj-vx7f, MINI-36ww-4xvf-gxc6, MINI-3ff5-g95w-pjpr, MINI-3gpw-ww8x-qccp, MINI-3hvj-jcjj-mw66, MINI-3jr3-5vxx-vw87, MINI-3p58-qx53-mm5v, MINI-3p8g-pmr2-33vm, MINI-3ppq-mv28-p8qj, MINI-3qc4-wq7v-rfcx, MINI-3qp6-q5q4-vpq5, MINI-3xhv-c53f-v2j3, MINI-42fg-q5jm-969w, MINI-43jh-qpv2-r9wq, MINI-44c8-89mr-6hp5, MINI-482r-f2c4-3pgj, MINI-48ph-vhcg-ccr7, MINI-48vf-ccfw-f3mp, MINI-4943-f957-4p6q, MINI-4c9w-9v95-8f6f, MINI-4fgj-r3rj-79x3, MINI-4h99-49qm-hpph, MINI-4jcw-h66m-vvxf, MINI-4jm8-mxgq-4j4j, MINI-4pch-58vw-mjqh, MINI-4rx8-3grc-c2w9, MINI-4v56-37wh-f8wr, MINI-528x-6cp4-wgrv, MINI-57m6-2c67-h8q3, MINI-5fjv-3wq4-vr93, MINI-5fv4-vr6f-473j, MINI-5mjp-9xrc-mqqr, MINI-5x5g-6p72-jjhm, MINI-67gj-h8f2-fg47, MINI-6883-38vg-5vx2, MINI-6gm7-qxc7-3g45, MINI-6hc2-j27j-4hx5, MINI-6jxx-cc8p-4x53, MINI-6qxc-6wp3-hmqx, MINI-6rpv-gvg4-8f5p, MINI-6v8c-9mmv-hfc8, MINI-6v9g-gr8q-m6mj, MINI-6x65-g7gv-f759, MINI-75r4-287j-xj6j, MINI-76cm-r25g-h4jx, MINI-76rc-8cc7-83fc, MINI-78w4-fxm9-vvm9, MINI-79pp-wgxf-52pp, MINI-7f57-3pjj-vcvc, MINI-7fr9-c98p-7j33, MINI-7j28-wv4w-mf52, MINI-7m4x-gf33-jr3v, MINI-7pgr-hw8v-rfq2, MINI-7qpm-6xcf-r7qq, MINI-82c3-cr5w-58p2, MINI-847h-4x7p-6x69, MINI-85c5-7wr6-4p9p, MINI-85g8-qw2p-gc29, MINI-86q6-pqrc-76mc, MINI-8769-mjqc-m268, MINI-885m-pc9r-j4ch, MINI-89c5-487w-92gp, MINI-89r4-pq23-xmqg, MINI-8gv9-77jm-257q, MINI-8hxm-g57x-vgw6, MINI-8jff-4j5h-qffr, MINI-8p4g-322q-j7vh, MINI-8p5v-62m2-xc76, MINI-8p98-6x93-j7jx, MINI-8vr9-g98v-6mcj, MINI-973m-w7r4-cqf9, MINI-97qv-rx4j-h7wc, MINI-97wq-p4gx-qf6j, MINI-98r2-ch45-9fhp, MINI-9995-w62g-h4cv, MINI-9g8j-276h-q52g, MINI-9hhp-xmm9-24rh, MINI-9r6g-mwm6-wpm8, MINI-9vcp-c7gf-c4g9, MINI-9vqf-7w2c-5jj9, MINI-9x9g-hq7h-9v45, MINI-c27x-44pw-354f, MINI-c4r9-6q9j-6766, MINI-c6wc-mx98-22g4, MINI-c79g-7mgj-vqv5, MINI-c897-hq8q-w538, MINI-c8jf-9rwp-q7fp, MINI-cjf5-whw9-c7p6, MINI-cppj-5r2m-m767, MINI-cvgm-hghm-566m, MINI-cx84-2937-9649, MINI-cxw6-w5rh-j595, MINI-f398-289c-p3r4, MINI-f5vw-8278-r8cv, MINI-f625-8c3m-jcq6, MINI-f76q-7pcx-3cg3, MINI-f9r6-mvh4-gr68, MINI-f9xq-gg6p-fp32, MINI-ffc4-hq66-2h86, MINI-fgw8-5759-r3vm, MINI-fh37-qgh9-pq69, MINI-fh82-jqwg-9xph, MINI-fhg2-m5mx-cm9h, MINI-fhpv-8mgp-r43c, MINI-fqgx-799q-q2mc, MINI-fv7r-f4j8-jr9h, MINI-g23r-rjmq-v6c9, MINI-g6jh-3m7p-xv4f, MINI-g7pc-jvww-2cv5, MINI-gcrh-c2m2-mh58, MINI-gfww-pmwm-95v4, MINI-gh7c-w6c5-j3p9, MINI-ghf3-mfmx-chwr, MINI-gjvh-m9p7-mv7h, MINI-gm9h-c52v-xvpc, MINI-gphh-hfh7-vp87, MINI-gqhj-qgh9-c3gg, MINI-grj7-p3hh-qv6r, MINI-gv5x-48wm-pm2j, MINI-gvxj-xrpq-f9rf, MINI-h22j-rmrg-9gx2, MINI-h274-h7g5-4j9q, MINI-h47q-rmrh-hcpm, MINI-h6xg-8jpx-76j8, MINI-h86f-vm4p-6p22, MINI-h9f5-g839-43m3, MINI-hgf6-6fp9-3x62, MINI-hhfv-mvjq-hjmg, MINI-hmcx-pjc7-gf3x, MINI-hpqr-8hpr-mcxf, MINI-hr8q-9p6h-65q3, MINI-hvm2-g436-hxxc, MINI-hxv7-xrgf-3vmh, MINI-hxxc-xmgc-pj58, MINI-j69v-q484-xw8m, MINI-j76v-3fh7-gjq6, MINI-j833-p47v-cfxr, MINI-jcfq-cqqc-2993, MINI-jgr4-fh5x-3c4p, MINI-jp92-g524-c7mc, MINI-jq3g-5q57-j723, MINI-jqw7-j8cf-35xm, MINI-jrhh-c43w-fv7j, MINI-jvfp-mrf2-w457, MINI-jvp6-hq59-72h4, MINI-jw26-wc58-jgxr, MINI-m2h6-v2vq-pggm, MINI-m5fm-3jq7-qfxg, MINI-m7mp-m7c4-qr4g, MINI-mg34-xmfj-82qw, MINI-mg52-w9hp-34wc, MINI-mjv5-f5mj-gwcp, MINI-p3qq-6fr2-6pgq, MINI-p485-xmr5-x7pp, MINI-p4wm-4rc2-vq56, MINI-p5mf-gf4g-26vw, MINI-p5rx-fxvw-3gq4, MINI-p5xq-m935-95pq, MINI-p9mf-fv9g-3qpv, MINI-pgpw-3r9j-9m8h, MINI-ph7f-5p9m-274f, MINI-pmfv-r554-9xqj, MINI-pw9c-w8wm-pq2h, MINI-pxx2-3p8q-w353, MINI-qcqp-jw55-w979, MINI-qf9w-32g5-cjm9, MINI-qfg8-3vvm-7vj9, MINI-qfwj-5gq8-38q3, MINI-qh66-r4fg-788f, MINI-qhmh-xmpj-57rm, MINI-qp56-4vpf-xjwr, MINI-qpfg-cf56-hj8w, MINI-qpgx-69gf-fh8w, MINI-qqqv-2hf2-848j, MINI-qr43-4rxr-8qxh, MINI-qrcg-gh72-wpcv, MINI-qw5x-qm37-p56p, MINI-r25w-qwjp-hx48, MINI-r2mj-qpqg-m8fr, MINI-r2p3-77qh-v22r, MINI-r7r9-543m-w5vf, MINI-r827-fvmc-2gc4, MINI-r82j-p739-hgq4, MINI-r92j-5j8r-939j, MINI-r9fw-v9qg-x9wg, MINI-rmgv-7jfv-32mg, MINI-rp45-fhr9-22pj, MINI-rqc8-6h3m-pm58, MINI-rr6v-mrhq-f8j9, MINI-rrj6-5cpc-xmc3, MINI-rw55-g368-jfj2, MINI-v243-h9ww-vfr6, MINI-v3hx-25xr-rf48, MINI-v6j5-q4q3-688v, MINI-v7hg-7q46-9fr9, MINI-v7wg-9vmr-xvh3, MINI-v86h-cf2m-4pq9, MINI-vc36-38mv-m3p5, MINI-vcfg-5p2q-2vpw, MINI-vcr5-5xm8-cfxq, MINI-vfcr-94mq-7jp6, MINI-vjmw-4437-2fgw, MINI-vrpw-prx4-gxrc, MINI-vx3r-9vfj-c87r, MINI-w36p-8v7x-4fvw, MINI-w435-q2fq-93rg, MINI-w45r-92m9-mwvf, MINI-w4cj-pwgw-w9gm, MINI-w8g7-7r9r-vcr4, MINI-wcgc-v3j4-2g8m, MINI-wcp6-2jcg-9vmx, MINI-wg48-fp5j-r8vf, MINI-wgg5-fc6m-4w5g, MINI-wx9r-2x85-wwpp, MINI-x499-2x28-8mg6, MINI-x57j-5pxh-6546, MINI-x83p-87rp-q8pr, MINI-x8qg-2c96-4rpq, MINI-x8v8-w7ph-fvcm, MINI-x9pr-7p4j-xp2h, MINI-xfmx-jjvv-xmjh, MINI-xh89-w4g9-2vp9, MINI-xjh4-x58m-qp4p, MINI-xmv5-mqpw-wv38, MINI-xp4j-xwcx-245h, MINI-xpw5-jgcr-9c4h, MINI-xwjq-h3vx-hxmm, RHSA-2026:60646, RHSA-2026:60793, ROOT-APP-GOBINARY-CVE-2026-71556, UBUNTU-CVE-2026-71556

## What is CVE-2026-71556?

CVE-2026-71556 is a high-severity path traversal vulnerability in go-git, published on 7 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

go-git is an extensible git implementation library written in pure Go. Prior to 5.19.2 and 6.0.0-alpha.5, worktree operations (including checkout, status, and add) resolve symbolic links inside the working tree without confining resolution to the worktree boundary, so a maliciously crafted repository containing a symlink can cause go-git to read from or write to files outside the intended working directory when the repository is cloned and its worktree operations are used. Versions 5.19.2 and 6.0.0-alpha.5.

Weakness: CWE-59 (Improper Link Resolution Before File Access)

## Which versions are affected by CVE-2026-71556?

6 open source packages ship an affected version, including github.com/go-git/go-git/v5 and github.com/go-git/go-git/v6.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/go-git/go-git/v5` | Go | All versions | 5.19.2 |
| `github.com/go-git/go-git/v5` | Go | All versions | 5.19.2 |
| `github.com/go-git/go-git/v5` | Go | All versions | 5.19.2 |
| `github.com/go-git/go-git/v6` | Go | All versions | 6.0.0-alpha.5 |
| `github.com/go-git/go-git/v6` | Go | All versions | 6.0.0-alpha.5 |
| `github.com/go-git/go-git/v6` | Go | All versions | 6.0.0-alpha.5 |
| `grype` | Red Hat:hummingbird:1 | All versions | 0:0.118.0-0.1.hum1 |
| `syft` | Red Hat:hummingbird:1 | All versions | 0:1.51.1-0.1.hum1 |

## How do I fix CVE-2026-71556?

Upgrade github.com/go-git/go-git/v5 to 5.19.2 or later.

## Is CVE-2026-71556 being exploited?

There is no known exploitation of CVE-2026-71556 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-71556 and fix it if it is affected.

What it is: CVE-2026-71556 is a high-severity path traversal vulnerability in go-git, published on 7 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2026-71556 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/go-git/go-git/v5 (Go): affected all versions; fixed in 5.19.2
- github.com/go-git/go-git/v5 (Go): affected all versions; fixed in 5.19.2
- github.com/go-git/go-git/v5 (Go): affected all versions; fixed in 5.19.2
- github.com/go-git/go-git/v6 (Go): affected all versions; fixed in 6.0.0-alpha.5
- github.com/go-git/go-git/v6 (Go): affected all versions; fixed in 6.0.0-alpha.5
- github.com/go-git/go-git/v6 (Go): affected all versions; fixed in 6.0.0-alpha.5

Task:
1. 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.
2. 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.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-71556/ (Markdown: https://insights.sbomify.com/CVE-2026-71556/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-71556
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-71556
- OSV: https://osv.dev/vulnerability/CVE-2026-71556

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-71556/
Summaries are generated and may contain mistakes; the official description above is the record.
