CVE-2026-95106Gitea
Arbitrary code execution via inconsistent Git trees in Gitea
Critical 9.1 No auth needed
Follow: this CVE · Gitea · Gitea We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- —
- Auth required
- No
- Published
- Oct 6, 2026
- Updated
- Oct 13, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-706
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
What happens
Gitea accepted pushed Git trees containing two entries with the same name, which Git rejects. Web views resolved to the first entry, but git checkout, Gitea Actions, and release archives used the last. A contributor could open a pull request whose diff and file views show benign content while CI and checkouts at the same commit use different, attacker-controlled content.
Show the original NVD text
Gitea accepted pushed Git trees containing two entries with the same name, which Git's own consistency checks reject. Gitea's web views resolved such a path to the first entry, while `git checkout`, Gitea Actions, and release archives use the last. A contributor could open a pull request whose diff and file views show benign content while CI and checkouts at the same commit use different, attacker-controlled content. Incoming objects are now checked for consistency; objects already stored in existing repositories are not rescanned.
What to do
Patch available · fixed versions: 28.0.0
Update Gitea to version 28.0.0 or later. Incoming objects are now checked for consistency.
- Apply the vendor's security update for Gitea.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gitea | gitea | < 28.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- blog.gitea.com Release Notes
- github.com Patch
- github.com Release Notes
- github.com Mitigation Vendor Advisory