What’s Vulnerable › Vulnerabilities
CVE-2026-24059: Gitea runner registration-token GET endpoint performs a write under a read-only token scope
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-08-13 · updated 2026-08-26
- Weakness: CWE-269
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.
Affected products
- Gitea Open Source Git Server: before 1.25.5 — fixed in 1.25.5
How to fix
Upgrade to a fixed version: Gitea Open Source Git Server 1.25.5. Check the vendor advisory for mitigations.
References
- https://blog.gitea.com/release-of-1.25.5/
- https://github.com/go-gitea/gitea/pull/36801
- https://github.com/go-gitea/gitea/releases/tag/v1.25.5
- https://github.com/go-gitea/gitea/security/advisories/GHSA-v43r-86x9-8523
Get alerted when CVE-2026-24059 or the next vulnerability affects your stack