CVE-2026-70402

published 14 Oct 2026 · updated 14 Oct 2026

Gitea local code execution through writable Git hooks

5.8MediumCVSS 5.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

Gitea creates server-side Git hook directories and scripts with mode 0777 and relies on the process umask to restrict access. With a permissive umask such as 0000 or 0002, another local user who can reach the repository storage may modify a hook or add an executable to a writable hook directory. A later Git operation can execute that file as the Gitea service account.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GiteaGitea<=1.27.2

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Gitea, strongest first

10.0CriticalCISA KEVPublic exploit

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-70402 severity on Zeptric[![CVE-2026-70402](https://zeptric.io/badge/cve/CVE-2026-70402.svg)](https://zeptric.io/cve/CVE-2026-70402)