CVE-2020-14144The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer environments where the…
- 7.2HighCVSS base score
- 95.4%Exploitation in 30 daysEPSS · top 0.1% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 2Public exploitsMetasploit, Nuclei and Exploit-DB
Description
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module and a Nuclei template for it.
Show the exploits2
Metasploit modules1 module
- Gitea Git Hooks Remote Code Execution (Metasploit module) (opens in a new tab)
exploit/multi/http/gitea_git_hooks_rceRank excellentdisclosed 7 Oct 2020
Nuclei templates1 template
- Gitea 1.1.0 - 1.12.5 - Remote Code Execution (Nuclei template) (opens in a new tab)
http/cves/2020/CVE-2020-14144.yamlSeverity high
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By mitre
- 4 months later
· 4 months later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 95.4% · top 0.1% of all CVEs (18 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.2.
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gocode.gitea.io/giteaGHSA-3h6c-c475-jm7v (opens in a new tab)
References
References8
- https://github.com/go-gitea/gitea/releases (opens in a new tab)x_refsource_MISCx_transferred
- 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/ (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/go-gitea/gitea/pull/13058 (opens in a new tab)x_refsource_MISCx_transferred
- https://docs.gitlab.com/ee/administration/server_hooks.html (opens in a new tab)x_refsource_MISCx_transferred
- https://docs.github.com/en/enterprise-server%402.19/admin/policies/creating-a-pre-receive-hook-script (opens in a new tab)x_refsource_MISCx_transferred
- http://packetstormsecurity.com/files/162122/Gitea-Git-Hooks-Remote-Code-Execution.html (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/PandatiX/CVE-2021-28378 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/PandatiX/CVE-2021-28378#notes (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-1082 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-3h6c-c475-jm7v (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2020-14144)Record last updated .