CVE-2026-120263 – Gitea
“One public repository is all an attacker needs to read your Gitea server's secrets and run commands as its service account.”
Gitea has patched nine vulnerabilities in its self-hosted Git service, four rated Critical and five rated High. Attackers are actively exploiting CVE-2026-59774, which has a CVSS score of 9.8, Critical severity: the Org-mode markup renderer follows INCLUDE directives into server-side files, so an unauthenticated attacker with a public repository can read any file the Gitea service account can reach, including the app.ini configuration and its internal token, then chain that access to modify a Git hook and execute commands as the service account. CVE-2026-120263 (CVSS 9.8, Critical) lets anyone with an account on a configured OAuth2 provider link their identity to another user's Gitea account, including an administrator, and sign in without its password when automatic account linking is enabled. CVE-2026-116289 and CVE-2026-117685 (both CVSS 9.1, Critical) let public-only access tokens register an organization runner that receives private repositories' workflow jobs, secrets, and variables, and mount private package blobs into public packages where anyone can download them.
The update also closes five High-severity flaws. CVE-2026-71184 and CVE-2026-73800 (both CVSS 8.8, High) let fork-controlled workflow code run on the base repository's runners with repository and organization secrets, bypassing the maintainer approval gate. CVE-2026-73804 (CVSS 8.1, High) turns a user-scoped token into unscoped API authentication by registering an attacker-controlled SSH key, and proof-of-concept code exists. CVE-2026-119441 (CVSS 7.5, High) lets a public-only token permanently delete an organization's private repositories, and CVE-2026-119533 (CVSS 7.5, High) exposes private pull request paths, titles, and states on project boards, even to anonymous visitors. Patch every Gitea instance immediately.
- Proof-of-concept code exists for the token-scope bypass that converts a user-scoped token into unscoped API access.
- Every internet-facing Gitea instance should be patched immediately because the exploited flaw requires no authentication.
Key Details
- Attack Vector
- Network
- Attack Complexity
- Low
- Privileges Required
- None
- User Interaction
- None
- CWE Classification
- CWE-287