CVE-2026-70402
JSON

5.8medium

Gitea local code execution through writable Git hooks

Severity
5.8medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.12% (higher than 1% of CVEs)
Published
Last changed
Assigned by
Gitea

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.

Affected

Product or packageVersionsReported by
code.gitea.io/giteaup to 1.27.2CVE List

Classification

CWE-732

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-70402 changed 2026-10-14CVE Terms of Use
NVDCVE-2026-70402 changed 2026-10-14Public domain