CVE-2020-14144
Arbitrary Code Execution in Gitea
Also known as BIT-gitea-2020-14144, EDB-49571, GHSA-3h6c-c475-jm7v
Mitigation
- Upgrade code.gitea.io/gitea to 1.12.6 or later.
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)
Vulnerability facts
- Affected
- code.gitea.io/gitea >= 1.1.0, < 1.12.6
- Fixed in
- 1.12.6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, login needed
- CVSS
- 7.2 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 99.11% chance of exploitation in 30 days (percentile 100, 2026-11-26)
- CWE
- CWE-78
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go code.gitea.io/gitea | >= 1.1.0, < 1.12.6 | 1.12.6 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Vendor advisories
Patches
Exploits and PoCs
Other
- https://github.com/go-gitea/gitea/releases
- 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/
- https://docs.gitlab.com/ee/administration/server_hooks.html
- https://docs.github.com/en/enterprise-server%402.19/admin/policies/creating-a-pre-receive-hook-script
- https://docs.github.com/en/enterprise-server@2.19/admin/policies/creating-a-pre-receive-hook-script
- https://github.com/go-gitea/gitea
- https://podalirius.net/articles/exploiting-cve-2020-14144-gitea-authenticated-remote-code-execution
- 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
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-26).
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.