CVE-2026-24059: CWE-269 in Gitea Gitea Open Source Git Server
The GET /api/v1/user/actions/runners/registration-token endpoint (and its owner- and repository-level equivalents) creates a new runner registration token if none exists, yet the API scope middleware classifies it as read-only because it is a GET request. A holder of a leaked read:user-scoped token can therefore mint a registration token and register a malicious Actions runner that executes workflow jobs with access to repository secrets and source code.
AI Analysis
Technical Summary
The vulnerability arises because the API scope middleware treats the GET request to the runner registration token endpoint as read-only, but the endpoint actually creates a new token if none exists. This mismatch allows an attacker who has obtained a read:user-scoped token to mint a registration token and register a malicious GitHub Actions runner. This runner can then execute workflows with elevated privileges, potentially exposing sensitive repository secrets and source code. The issue is classified under CWE-269 (Improper Privilege Management). No patch or official remediation has been indicated in the available data.
Potential Impact
An attacker with a leaked read:user-scoped token can escalate privileges by generating a runner registration token and registering a malicious Actions runner. This runner can execute workflow jobs with access to sensitive repository secrets and source code, potentially leading to unauthorized code execution and data exposure within the affected repositories.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict exposure of read:user-scoped tokens and monitor for unauthorized runner registrations. Avoid leaking tokens with read:user scope and consider limiting token permissions as a precaution.
CVE-2026-24059: CWE-269 in Gitea Gitea Open Source Git Server
Description
The GET /api/v1/user/actions/runners/registration-token endpoint (and its owner- and repository-level equivalents) creates a new runner registration token if none exists, yet the API scope middleware classifies it as read-only because it is a GET request. A holder of a leaked read:user-scoped token can therefore mint a registration token and register a malicious Actions runner that executes workflow jobs with access to repository secrets and source code.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because the API scope middleware treats the GET request to the runner registration token endpoint as read-only, but the endpoint actually creates a new token if none exists. This mismatch allows an attacker who has obtained a read:user-scoped token to mint a registration token and register a malicious GitHub Actions runner. This runner can then execute workflows with elevated privileges, potentially exposing sensitive repository secrets and source code. The issue is classified under CWE-269 (Improper Privilege Management). No patch or official remediation has been indicated in the available data.
Potential Impact
An attacker with a leaked read:user-scoped token can escalate privileges by generating a runner registration token and registering a malicious Actions runner. This runner can execute workflow jobs with access to sensitive repository secrets and source code, potentially leading to unauthorized code execution and data exposure within the affected repositories.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict exposure of read:user-scoped tokens and monitor for unauthorized runner registrations. Avoid leaking tokens with read:user scope and consider limiting token permissions as a precaution.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Gitea
- Date Reserved
- 2026-03-03T03:25:28.686Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7dfaeebf8831d53980ede6
Added to database: 08/13/2026, 17:12:14 UTC
Last enriched: 08/13/2026, 17:29:42 UTC
Last updated: 08/13/2026, 19:38:31 UTC
Views: 4
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.