CVE-2026-70402Gitea local code execution through writable Git hooks
Updated under an hour ago ()
Does this affect you?
It affects Gitea. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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.
- CVSS
- 5.8 MEDIUM (v3.1, CISA ADP)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L
- Weakness (CWE)
- CWE-732
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- Gitea
- NVD analysis
- Deferred
- Record last updated
- Oct 14, 2026
- First seen by InfoSec Signals
- Oct 14, 2026
Affected products
Gitea Gitea gitea:gitea (from the name) | through 1.27.2 | CNA record |
References
- https://github.com/go-gitea/gitea/security/advisories/GHSA-pq8x-xpgp-rvmhvendor-advisory
- https://blog.gitea.com/release-of-1.27.3/release-notes
- https://github.com/go-gitea/gitea/pull/39008patch
- https://github.com/go-gitea/gitea/pull/39016patch
- https://github.com/go-gitea/gitea/releases/tag/v1.27.3release-notes
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.