Description
Gitea LFS Deploy-Key Privilege Escalation
Published: 2026-08-13
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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. There is no publicly available EPSS score and the vulnerability is not listed in CISA’s KEV catalog, but the impact of privilege escalation is high and the CVSS score is unspecified. 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.

Generated by OpenCVE AI on August 13, 2026 at 18:42 UTC.

Remediation

No vendor fix or workaround currently provided.

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 13, 2026 at 18:42 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

Thu, 13 Aug 2026 19:15:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server

Thu, 13 Aug 2026 17:00:00 +0000

Type Values Removed Values Added
Description Gitea LFS Deploy-Key Privilege Escalation
Title Gitea LFS Deploy-Key Privilege Escalation
Weaknesses CWE-266
CWE-639
References

Subscriptions

Gitea Gitea Open Source Git Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-08-13T16:44:51.733Z

Reserved: 2026-06-30T18:57:20.616Z

Link: CVE-2026-58435

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-13T17:17:27.490

Modified: 2026-08-13T17:17:27.490

Link: CVE-2026-58435

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T19:00:12Z

Weaknesses
  • CWE-266

    Incorrect Privilege Assignment

  • CWE-639

    Authorization Bypass Through User-Controlled Key