Skip to main content
VulnerabilityPublished

CVE-2026-58435: code.gitea.io/gitea · Gitea LFS Deploy-Key Privilege Escalation

Affects code.gitea.io/giteaSource GCVE Database

0
Compare
Authoritative record:CVE-2026-58435· Medium 5.4

Not known to be exploited · CVSS 5.4 Medium : upgrade to 1.27.0 when convenient.

Data as of 4 Dec 2026, 18:37 UTC

CVSS 3.1 base score
5.4Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 15% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.27.0
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Exploitation evidence

t = 0 is the CVE’s publication on cve.org

  1. Disclosed: evidence found.

    CVE published 13 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    CISA SSVC: proof of concept public

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

Timeline

  1. CVE ID reserved

    by Gitea Limited

    , 44 days before disclosure

  2. CVE published

    on cve.org

    , t = 0

  3. CISA SSVC assessment

    proof of concept public

    , 25 hours after disclosure

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CISA SSVC, the Metasploit, Exploit-DB and nuclei-templates index as of 5 Dec 2026.

What to do

Upgrade code.gitea.io/gitea and gitea.dev to 1.27.0.

Affected software

ProductAffectedFixed in
Gocode.gitea.io/giteaAffected
  • <1.27.0
Fixed in
  • 1.27.0
Gogitea.devpkg:golang/gitea.devOther threatsAffected
  • <1.27.0
Fixed in
  • 1.27.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available in Gitea version 1.27.0. Users should upgrade to version 1.27.0 or later to resolve this privilege escalation vulnerability. Until patched, there is no vendor-advised workaround or mitigation. Applying the official update is the recommended remediation.

Description

Gitea versions prior to 1.27.0 contain a privilege escalation vulnerability in the LFS deploy-key handling. The flaw arises because deploy keys are incorrectly represented as the repository owner in JWT tokens, allowing an attacker with a write deploy key on one repository to impersonate the owner and access LFS objects across all private repositories owned by that user. This breaks the intended isolation of deploy keys and can expose sensitive LFS data without requiring admin credentials or brute force.

References

Community reviews

Loading reviews…