CVE-2026-70402

Medium

Description

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.

SeverityMedium
CVSS5.8
Exploit probability—
ProductGitea
PublishedOct 14, 2026
First seenOct 14, 2026
Weakness typeCWE-732CWE-732

How to fix

Affected products

ProductAffected versionsFixed in
Gitea Giteav ≤ 1.27.2—

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.