CVE-2026-58435

Gitea LFS Deploy-Key Privilege Escalation

Published Aug 13, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
Gitea LFS Deploy-Key Privilege Escalation

Analysis

AI-generated

Technical impact

Gitea LFS deploy‑key functionality contains a flaw that allows certain users to achieve higher privileges than intended. The vulnerability stems from insecure management of deploy‑key credentials and the inability to enforce scope restrictions, enabling an attacker who can create or modify a deploy key to access or modify data beyond their granted rights. This could result in unauthorized code changes, secret exposure, or full repository takeover.

Affected Systems

The issue affects Gitea Open Source Git Server versions released prior to the 1.27.0 update. Systems running older releases should be considered vulnerable until the fix is applied.

Risk and Exploitability

Because the flaw relies on the deploy‑key mechanism, the likely attack vector is via an authenticated session that has the ability to create or manage deploy keys. The EPSS score of <1% indicates a low but non‑zero likelihood of exploitation, and the CVSS score of 5.4 reflects a moderate severity. The vulnerability is not listed in CISA's KEV catalog. An attacker needs legitimate repository access or the ability to add a deploy key to exploit the weakness; after which elevated privileges can be leveraged to read or modify data that should be restricted.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 1.27.0 or later, which contains the fix for the LFS deploy‑key privilege escalation flaw.
  • If an upgrade is not immediately possible, temporarily disable deploy‑key usage or restrict it to read‑only scopes until the patch can be applied.
  • Review all existing deploy keys, remove any unused or overly permissive ones, and enforce least‑privilege scopes for the remaining keys.

Generated by OpenCVE AI on August 14, 2026 at 19:37 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-rh79-75qm-gwjr Gitea LFS Deploy-Key Privilege Escalation
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'}

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server
Weaknesses
  • CWE-266

    Incorrect Privilege Assignment

  • CWE-639

    Authorization Bypass Through User-Controlled Key

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Aug 14, 2026, 5:20 PM
Reserved
Jun 30, 2026, 6:57 PM
Status
Deferred
Published
Aug 13, 2026, 5:17 PM
Modified
Aug 26, 2026, 4:53 PM