CVE-2020-14144 in the critical feed json
Arbitrary Code Execution in Gitea
published 6y ago modified 2mo ago also BIT-gitea-2020-14144 , EUVD-2024-1082 , GHSA-3h6c-c475-jm7v
- cvss
- 7.2
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 95.4%
- EPSS 95.4% chance of exploitation in 30 days, percentile 99.8%
- public exploits
- 1
- Metasploit, plus a Nuclei check
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.
Patch / fix
- go code.gitea.io/gitea 1.12.6
- bitnami gitea 1.12.6
- github.com/go-gitea/gitea@8fe8ab5 commit
- github.com/go-gitea/gitea#13058 pull request
Is CVE-2020-14144 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerTimeline
- First public exploit (Metasploit exploit/multi/http/gitea_git_hooks_rce)
- Published
Exploit prediction
95.43% chance of exploitation in the next 30 days, higher than 99.8% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- Metasploit exploit/multi/http/gitea_git_hooks_rce Gitea Git Hooks Remote Code Execution metasploit exploit, excellent rank, 2020-10-07
- Nuclei template Gitea 1.1.0 - 1.12.5 - Remote Code Execution nuclei detection template
- packetstormsecurity.com http://packetstormsecurity.com/files/162122/Gitea-Git-Hooks-Remote-Code-Execution.html referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/PandatiX/CVE-2021-28378 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/PandatiX/CVE-2021-28378#notes referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
| OSV | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | code.gitea.io/gitea | >=1.1.0, <1.12.6 |
1.12.6 |
| bitnami | gitea | >=1.1.0, <1.12.6 |
1.12.6 |
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
github.com
/go-gitea/gitea/pull/13058
web, third-party-advisory, advisory
-
github.com
/go-gitea/gitea/commit/8fe8ab5cbf2977f3a01ea12361df2cd76dce3ea9
web
-
packetstormsecurity.com
/files/162122/Gitea-Git-Hooks-Remote-Code-Execution.html
web, exploit, third-party-advisory, vdb-entry, advisory
-
github.com
/PandatiX/CVE-2021-28378
web, exploit, third-party-advisory, advisory
-
github.com
/PandatiX/CVE-2021-28378#notes
web, exploit, third-party-advisory, advisory
-
github.com
/go-gitea/gitea/releases
web, release-notes, third-party-advisory, advisory
-
fzi.de
/en/news/news/detail-en/artikel/fsa-2020-3-schwachstelle-in-gitea-1125-und-gogs-0122-ermoeglicht-ausfuehrung-v
third-party-advisory, advisory
-
docs.gitlab.com
/ee/administration/server_hooks.html
web, third-party-advisory, advisory
-
docs.github.com
/en/enterprise-server%402.19/admin/policies/creating-a-pre-receive-hook-script
web
-
nvd.nist.gov
/vuln/detail/CVE-2020-14144
advisory, web
-
docs.github.com
/en/enterprise-server@2.19/admin/policies/creating-a-pre-receive-hook-script
web
-
github.com
/go-gitea/gitea
package
-
podalirius.net
/articles/exploiting-cve-2020-14144-gitea-authenticated-remote-code-execution
web
-
exploit-db.com
/exploits/49571
web
-
fzi.de
/en/news/news/detail-en/artikel/fsa-2020-3-schwachstelle-in-gitea-1125-und-gogs-0122-ermoeglicht-ausfuehrung-v
web
Sources
- CVE List CVE-2020-14144
- GitHub Advisory GHSA-3h6c-c475-jm7v
- NVD CVE-2020-14144
- OSV BIT-gitea-2020-14144
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.