Incorrect permission assignment for critical resource in Gitea - CVE-2026-70402
Published: August 31, 2026
Vulnerability details
The vulnerability allows a local user to execute arbitrary code.
The vulnerability exists due to incorrect permission assignment for critical resources in server-side Git hook directories and scripts when creating or synchronizing hooks during repository operations. A local user can modify an existing hook or add an executable file to a writable hook directory to execute arbitrary code.
Exploitation requires a permissive umask and access to the repository storage by another local principal, and a later Git operation triggers the injected hook as the Gitea service account.