CVE-2026-28740 Gitea LFS object reuse bypasses Code-unit authorization
Attackers with repository access but no Code-unit permission can read private source objects via Git LFS reuse in Gitea.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-28740?
CVE-2026-28740 is a high-severity missing authorization vulnerability in Gitea Open Source Git Server, published on 3 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Gitea versions up to and including 1.26.2 allow Git LFS object reuse to authorize private source objects for users who have repository access but lack Code-unit access.
Which versions are affected by CVE-2026-28740?
3 open source packages ship an affected version, including gitea.dev and code.gitea.io/gitea.
| Package | Affected | Fixed in |
|---|---|---|
gitea.dev Go | All versions | 1.26.3 |
gitea.dev Go | All versions | 1.26.3 |
code.gitea.io/gitea Go | All versions | 1.26.3 |
How do I fix CVE-2026-28740?
Upgrade gitea.dev to 1.26.3 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2026-28740 being exploited?
There is no known exploitation of CVE-2026-28740 in the wild and no public exploit code.
Sources
Also known as GHSA-2m9v-5q2g-58vq, GO-2026-6029.