CVE-2020-14144
HIGH 7.2CVSS 3.1Arbitrary Code Execution in Gitea
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.
- Published
- 16 Oct 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-78
- Also known as
- BIT-gitea-2020-14144GHSA-3h6c-c475-jm7v
- Sources
- NVDJSONOSV GHSA-3h6c-c475-jm7vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gitea | giteacpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:* |
>= 1.1.0, <= 1.12.5 | |
| OSV | Go | code.gitea.io/gitea | >= 1.1.0, < 1.12.6 | 1.12.6 |
References
- http://packetstormsecurity.com/files/162122/Gitea-Git-Hooks-Remote-Code-Execution.html · Exploit, Third Party Advisory, VDB Entry, WEB
- https://docs.github.com/en/enterprise-server%402.19/admin/policies/creating-a-pre-receive-hook-script · WEB
- https://docs.gitlab.com/ee/administration/server_hooks.html · Third Party Advisory, WEB
- https://github.com/PandatiX/CVE-2021-28378 · Exploit, Third Party Advisory, WEB
- https://github.com/PandatiX/CVE-2021-28378#notes · Exploit, Third Party Advisory, WEB
- https://github.com/go-gitea/gitea/pull/13058 · Third Party Advisory, WEB
- https://github.com/go-gitea/gitea/releases · Release Notes, Third Party Advisory, WEB
- 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/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-14144 · ADVISORY
- https://github.com/go-gitea/gitea/commit/8fe8ab5cbf2977f3a01ea12361df2cd76dce3ea9 · WEB
- https://docs.github.com/en/enterprise-server@2.19/admin/policies/creating-a-pre-receive-hook-script · WEB
- https://github.com/go-gitea/gitea · PACKAGE
- https://podalirius.net/articles/exploiting-cve-2020-14144-gitea-authenticated-remote-code-execution · WEB
- https://www.exploit-db.com/exploits/49571 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 16 Oct 2020)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 22 Apr 2024)