CVE-2026-58423: Gitea · LFS authentication bypass via malformed SSH sub-verb allows unauthorized read access to private repositories
Affects code.gitea.io/giteaSource GCVE Database
Not known to be exploited · CVSS 7.7 High.
Data as of 30 Oct 2026, 11:52 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 33% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 21 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubgo-gitea/giteapkg:github/go-gitea/giteaOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
The suggested fix involves validating the LFS sub-verb before permission checks and rejecting unknown verbs with an error instead of defaulting to AccessModeNone. Until an official fix is released, restrict SSH access to trusted users only and consider disabling LFS over SSH if feasible.
Description
A vulnerability in Gitea's SSH LFS sub-verb handling allows any authenticated SSH user to bypass access controls and obtain valid LFS credentials for private repositories they do not have permission to access. This flaw enables unauthorized read access to all LFS objects in any private repository on the instance. The issue arises because unknown LFS sub-verbs cause the permission check to incorrectly grant access. This affects Gitea versions from 1.23.0 up to but not including 1.26.3. No official patch or fix has been confirmed yet.
References
- github.com/go-gitea/gitea/security/advisories/GHSA-7wvc-rvp7-w99x (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-58423 (opens in a new tab)
- github.com/go-gitea/gitea/pull/38008 (opens in a new tab)
- github.com/go-gitea/gitea/commit/42513398c05ca6bdf71da76cb6f9baaebe8cb924 (opens in a new tab)
- github.com/go-gitea/gitea/commit/8f4b7ebbf6061bd44b1ab3824f17f37b87fb1740 (opens in a new tab)
- blog.gitea.com/release-of-1.26.3-and-1.26.4 (opens in a new tab)
- github.com/go-gitea/gitea (opens in a new tab)
- github.com/go-gitea/gitea/releases/tag/v1.26.4 (opens in a new tab)