CVE-2026-24059: CWE-269 in Gitea Gitea Open Source Git Server
CVE-2026-24059 is a vulnerability in Gitea Open Source Git Server where a GET API endpoint that should be read-only actually creates a new runner registration token if none exists. This occurs because the API scope middleware incorrectly treats the GET request as read-only. An attacker with a leaked read:user-scoped token can exploit this to generate a registration token and register a malicious Actions runner, which can then execute workflow jobs with access to repository secrets and source code.
AI Analysis
Technical Summary
The vulnerability exists in the GET /api/v1/user/actions/runners/registration-token endpoint and its owner- and repository-level equivalents in Gitea. These endpoints create a new runner registration token if none exists, but the API scope middleware mistakenly classifies the GET request as read-only. This allows an attacker possessing a leaked read:user-scoped token to mint a registration token and register a malicious Actions runner. The malicious runner can execute workflow jobs with access to sensitive repository secrets and source code, potentially leading to unauthorized data exposure or manipulation.
Potential Impact
An attacker with a leaked read:user-scoped token can create a malicious Actions runner that executes workflow jobs with access to repository secrets and source code. This can lead to unauthorized access to sensitive information and potential compromise of the repository's integrity. The vulnerability does not require user interaction and has a network attack vector with low attack complexity and no privileges required beyond the leaked token. The confidentiality impact is high, while integrity and availability impacts are not affected.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict the exposure of read:user-scoped tokens and monitor for unauthorized runner registrations. Avoid leaking tokens with read:user scope and consider limiting token permissions where possible.
CVE-2026-24059: CWE-269 in Gitea Gitea Open Source Git Server
Description
CVE-2026-24059 is a vulnerability in Gitea Open Source Git Server where a GET API endpoint that should be read-only actually creates a new runner registration token if none exists. This occurs because the API scope middleware incorrectly treats the GET request as read-only. An attacker with a leaked read:user-scoped token can exploit this to generate a registration token and register a malicious Actions runner, which can then execute workflow jobs with access to repository secrets and source code.
CVSS v3.1
Score 6.5medium
Affected software
Gitea
Gitea Open Source Git Server
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the GET /api/v1/user/actions/runners/registration-token endpoint and its owner- and repository-level equivalents in Gitea. These endpoints create a new runner registration token if none exists, but the API scope middleware mistakenly classifies the GET request as read-only. This allows an attacker possessing a leaked read:user-scoped token to mint a registration token and register a malicious Actions runner. The malicious runner can execute workflow jobs with access to sensitive repository secrets and source code, potentially leading to unauthorized data exposure or manipulation.
Potential Impact
An attacker with a leaked read:user-scoped token can create a malicious Actions runner that executes workflow jobs with access to repository secrets and source code. This can lead to unauthorized access to sensitive information and potential compromise of the repository's integrity. The vulnerability does not require user interaction and has a network attack vector with low attack complexity and no privileges required beyond the leaked token. The confidentiality impact is high, while integrity and availability impacts are not affected.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict the exposure of read:user-scoped tokens and monitor for unauthorized runner registrations. Avoid leaking tokens with read:user scope and consider limiting token permissions where possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Gitea
- Date Reserved
- 2026-03-03T03:25:28.686Z
- State
- PUBLISHED
Threat ID: 6a7dfaeebf8831d53980ede6
Added to database: 08/13/2026, 17:12:14 UTC
Last enriched: 08/21/2026, 13:33:48 UTC
Last updated: 09/25/2026, 13:47:44 UTC
Views: 41
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.