CVE-2026-70402
CVE-2026-70402 — Gitea local code execution through writable Git hooks
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.
Published Updated Sources: cvelistV5, Gitea
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
5.8
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 5.8 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-732
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1574.010Hijack Execution Flow: ServicesFile Permissions Weakness
- T1548Abuse Elevation Control Mechanism
- T1083File and Directory Discovery
References
5 on the record
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-60004 Gitea Code Injection VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2026-123039 Local privilege escalation to root in the DynamicCLI daemon via local world-writable control socketCVSS 7.8 · CISA KEV
- CVE-2022-22960 VMware Multiple Products Privilege Escalation VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2021-23874 McAfee Total Protection (MTP) Improper Privilege Management VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2019-15752 Docker Desktop Community Edition Privilege Escalation VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2018-13374 Fortinet FortiOS and FortiADC Improper Access Control VulnerabilityCVSS 4.3 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.