The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote…
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-78.
Summary
The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer environments where the documentation was not understood (e.g., one viewpoint is that the dangerousness of this feature should be documented immediately above the ENABLE_GIT_HOOKS line in the config file). NOTE: The vendor has indicated this is not a vulnerability and states "This is a functionality of the software that is limited to a very limited subset of accounts. If you give someone the privilege to execute arbitrary code on your server, they can execute arbitrary code on your server. We provide very clear warnings to users around this functionality and what it provides.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | code.gitea.io/gitea (Go) | 1.1.0 to before 1.12.6 | 1.12.6 | Patch available | GHSA-3h6c-c475-jm7v |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- code.gitea.io/gitea (Go) Vendor— Affected 1.1.0 to before 1.12.6 Fixed in 1.12.6 Patch available GHSA-3h6c-c475-jm7v
Remediation
- Fix · GHSA-3h6c-c475-jm7v code.gitea.io/gitea (Go) Fixed in 1.12.6 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2020-14144
- 2026-10-03 Alias added: GHSA-3h6c-c475-jm7v
References
Exploit 3
Advisory 5
- https://github.com/go-gitea/gitea/releases
- https://www.fzi.de/en/news/news/detail-en/artikel/fsa-2020-3-schwachstelle-in-gitea-1125-und-gogs-0122-ermoeglicht-ausfuehrung-von-code-nach-authent/
- https://github.com/go-gitea/gitea/pull/13058
- https://docs.gitlab.com/ee/administration/server_hooks.html
- https://nvd.nist.gov/vuln/detail/CVE-2020-14144
Other 7
- https://docs.github.com/en/enterprise-server%402.19/admin/policies/creating-a-pre-receive-hook-script
- https://github.com/go-gitea/gitea/commit/8fe8ab5cbf2977f3a01ea12361df2cd76dce3ea9
- https://docs.github.com/en/[email protected]/admin/policies/creating-a-pre-receive-hook-script
- https://github.com/go-gitea/gitea
- https://podalirius.net/articles/exploiting-cve-2020-14144-gitea-authenticated-remote-code-execution
- https://www.exploit-db.com/exploits/49571
- https://www.fzi.de/en/news/news/detail-en/artikel/fsa-2020-3-schwachstelle-in-gitea-1125-und-gogs-0122-ermoeglicht-ausfuehrung-von-code-nach-authent
More Gitea vulnerabilities
- TI-2026-42785 Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation. KEVCVSS 3.1CRITICAL 9.8
- TI-2022-12910 Gitea before 1.16.7 does not escape git fetch remote. CVSS 3.1HIGH 7.5
- TI-2019-08404 models/repo_mirror.go in Gitea before 1.7.6 and 1.8.x before 1.8-RC3 mishandles mirror… CVSS 3.1HIGH 8.8
- TI-2022-00955 Open Redirect on login in go-gitea/gitea CVSS 3.1MEDIUM 6.1
- TI-2026-68968 Push-to-create bypass of FORCE_PRIVATE policy in Gitea CVSS 3.1MEDIUM 5.4
- TI-2022-20948 Gitea before 1.17.3 does not sanitize and escape refs in the git backend. CVSS 3.1CRITICAL 9.8
Sources
- CVE-2020-14144 · CVE Program
- CVE-2020-14144 · NVD
- FIRST EPSS
- GHSA-3h6c-c475-jm7v · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences