# CVE-2020-14144: Arbitrary Code Execution in Gitea

- Severity: High 7.2 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 99.1%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 4 links below, marked "exploit"
- Published: 2020-10-16T13:02:25.000Z
- Modified: 2026-09-08T08:47:33.113Z
- Also known as: GHSA-3h6c-c475-jm7v, BIT-GITEA-2020-14144
- Weaknesses: CWE-78
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- code.gitea.io/gitea (Go): from 1.1.0 before 1.12.6
- gitea gitea: from 1.1.0 up to 1.12.5
- gitea (Bitnami): from 1.1.0 before 1.12.6

## Every score

- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <http://packetstormsecurity.com/files/162122/Gitea-Git-Hooks-Remote-Code-Execution.html> (exploit, advisory, third-party-advisory, vdb-entry, web)
- <https://github.com/PandatiX/CVE-2021-28378> (exploit, advisory, third-party-advisory, web)
- <https://github.com/PandatiX/CVE-2021-28378#notes> (exploit, advisory, third-party-advisory, web)
- <https://www.exploit-db.com/exploits/49571> (exploit, web)
- <https://github.com/go-gitea/gitea/releases> (advisory, 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/> (advisory, third-party-advisory)
- <https://github.com/go-gitea/gitea/pull/13058> (advisory, third-party-advisory, web)
- <https://docs.gitlab.com/ee/administration/server_hooks.html> (advisory, third-party-advisory, web)
- <https://docs.github.com/en/enterprise-server%402.19/admin/policies/creating-a-pre-receive-hook-script> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-14144> (advisory, web)
- <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.fzi.de/en/news/news/detail-en/artikel/fsa-2020-3-schwachstelle-in-gitea-1125-und-gogs-0122-ermoeglicht-ausfuehrung-von-code-nach-authent> (web)

## Sources

- CVE List: [CVE-2020-14144](https://www.cve.org/CVERecord?id=CVE-2020-14144), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-3h6c-c475-jm7v](https://github.com/advisories/GHSA-3h6c-c475-jm7v), CC-BY-4.0, modified 2024-04-22
- NVD: [CVE-2020-14144](https://nvd.nist.gov/vuln/detail/CVE-2020-14144), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GITEA-2020-14144](https://osv.dev/vulnerability/BIT-GITEA-2020-14144), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-14144 · Whole record: https://cve.day/CVE-2020-14144.json · Rebuilt by cve.day 2026-11-25T22:57:55.182Z
