CVE-2026-70402
published medium CVSS 3.1 · 5.8Gitea local code execution through writable Git hooks
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Gitea | — | code.gitea.io/giteaGitea · 0 through 1.27.2 · Other versions: unaffected | Affected | Not stated | Gitea |
| Alpine Linux | edge | gitea | Fixed | 1.27.3-r0 | Package fix record |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.8 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Gitea | Gitea | 0 through 1.27.2 (affected · semver)Default: unaffected | Gitea · cna |
Weaknesses
1- CWE-732 CWE-732: Incorrect Permission Assignment for Critical Resource
References
5- Gitea 1.27.3 release announcement https://blog.gitea.com/release-of-1.27.3/
- Fix: go-gitea/gitea pull request #39008 https://github.com/go-gitea/gitea/pull/39008
- Fix: go-gitea/gitea pull request #39016 https://github.com/go-gitea/gitea/pull/39016
- go-gitea/gitea v1.27.3 release https://github.com/go-gitea/gitea/releases/tag/v1.27.3
- GitHub Security Advisory GHSA-pq8x-xpgp-rvmh https://github.com/go-gitea/gitea/security/advisories/GHSA-pq8x-xpgp-rvmh
Provider assertions
2Gitea · cna
Gitea local code execution through writable Git hooks
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7a538718aebf9d3b3ca840919aa2831eba33a4754eb8a808e9e8bb7ebd67286d
- Ingested
- 14 Oct 2026, 20:30:39 UTC
- Source record
- Official CVE record