CVE-2026-70402

MEDIUM CVSS 3.1: 5.8 EPSS 0.19%
Updated Oct 14, 2026
Gitea
Parameter Value
CVSS 5.8 (MEDIUM)
Type CWE-732 (Incorrect Permission Assignment)
Vendor Gitea
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
High
Difficult to exploit
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
Low
Partial data leak
Integrity
High
Complete data modification
Availability
Low
Partial disruption

CVSS Vector v3.1