CVE-2026-70402
Published:October 14, 2026
Updated:October 14, 2026
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 Packages
https://github.com/go-gitea/gitea.git (GITHUB):
Affected version(s) >=v0.9.99 <v1.27.3Fix Suggestion:
Update to version v1.27.3code.gitea.io/gitea (GO):
Affected version(s) >=v0.0.0-20150810145912-2aea247208d4 <v1.27.3Fix Suggestion:
Update to version v1.27.3gitea.dev (GO):
Affected version(s) >=v0.0.0-20260606154456-42513398c05c <v1.27.3Fix Suggestion:
Update to version v1.27.3Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
5.8
Attack Vector
LOCAL
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
HIGH
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.8
Attack Vector
LOCAL
Attack Complexity
HIGH
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
HIGH
Availability
LOW
Weakness Type (CWE)
Incorrect Permission Assignment for Critical Resource