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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.2
- **CVSS:** 7.2 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 99.11% (percentile 100, 2026-11-28)
- **CWE:** CWE-78
- **Aliases:** BIT-gitea-2020-14144, EDB-49571, GHSA-3h6c-c475-jm7v
- **Published:** 2020-10-16T13:02:25.000Z
- **Modified:** 2026-11-23T00:00:00.000Z

## Who should check

- Projects that depend on Go package code.gitea.io/gitea (\>= 1.1.0, \< 1.12.6)
- Anyone running n/a (versions: see the vendor advisory)

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

## Affected and fixed versions

- Go `code.gitea.io/gitea`: affected \>= 1.1.0, \< 1.12.6; fixed 1.12.6 (osv)
- n/a: see vendor advisory (nvd)

## Mitigation

- Upgrade code.gitea.io/gitea to 1.12.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2020-14144. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-14144.md
Affected: code.gitea.io/gitea >= 1.1.0, < 1.12.6
Fixed in: 1.12.6

Steps:
1. Search this machine and project for code.gitea.io/gitea (Go), n/a: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2020-14144 being exploited?

There is no confirmed exploitation: CVE-2020-14144 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 99.11% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2020-14144?

High: CVSS 7.2 (v3.1, scored by NVD). Remote, login needed.

### Which versions are affected by CVE-2020-14144?

code.gitea.io/gitea \>= 1.1.0, \< 1.12.6.

### Is there a fix for CVE-2020-14144?

Yes. Fixed in 1.12.6. Upgrade code.gitea.io/gitea to 1.12.6 or later.

### How do I check if I'm affected by CVE-2020-14144?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2020-14144>
- patch: <https://github.com/go-gitea/gitea/pull/13058>
- patch: <https://github.com/go-gitea/gitea/commit/8fe8ab5cbf2977f3a01ea12361df2cd76dce3ea9>
- exploit: <http://packetstormsecurity.com/files/162122/Gitea-Git-Hooks-Remote-Code-Execution.html>
- exploit: <https://github.com/PandatiX/CVE-2021-28378>
- exploit: <https://github.com/PandatiX/CVE-2021-28378#notes>
- exploit: <https://www.exploit-db.com/exploits/49571>
- other: <https://github.com/go-gitea/gitea/releases>
- other: <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/>
- other: <https://docs.gitlab.com/ee/administration/server_hooks.html>
- other: <https://docs.github.com/en/enterprise-server%402.19/admin/policies/creating-a-pre-receive-hook-script>
- other: <https://docs.github.com/en/enterprise-server@2.19/admin/policies/creating-a-pre-receive-hook-script>
- other: <https://github.com/go-gitea/gitea>
- other: <https://podalirius.net/articles/exploiting-cve-2020-14144-gitea-authenticated-remote-code-execution>
- other: <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>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2020-14144>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-3h6c-c475-jm7v> (license: <https://creativecommons.org/licenses/by/4.0/>)
- Exploit-DB: Exploit metadata (ID and link only) from the Exploit Database <https://www.exploit-db.com/exploits/49571>

HTML: <https://flawdb.com/CVE-2020-14144> · JSON: <https://flawdb.com/api/v1/entries/CVE-2020-14144>
