CVE-2020-14144 is a high-severity (CVSS 7.2) OS Command Injection vulnerability in code.gitea.io/gitea. 6 public exploit references exist, so weaponization risk is real. A fix is available for code.gitea.io/gitea — see the affected versions and patch details below.
Arbitrary Code Execution in Gitea
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2020-14144 by exploitation likelihood (EPSS) against impact (CVSS). In the shaded patch-first corner (EPSS 50%+, CVSS 7.0+).
Where this sits among everything scored
Of 395,249 CVEs with a current EPSS score, this one falls in the ≥ 90% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
code.gitea.io/giteaReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | code.gitea.io/gitea | ≥ 1.1.0&&< 1.12.6 | 1.12.6go get code.gitea.io/gitea@v1.12.6 |
Affected Products
giteagiteaResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authe…
The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authe…
The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authe…
The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authe…
The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authe…
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for code.gitea.io/gitea, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update code.gitea.io/gitea to 1.12.6 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2020-14144 is resolved across your whole dependency graph.
Workarounds
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
How to detect CVE-2020-14144
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2020-14144 -u https://target- Template
- Gitea 1.1.0 - 1.12.5 - Remote Code Execution
- Severity
- high
- Impact
- Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code on the target system.
- Remediation
- Fixed in version 1.16.7.
Template by ProjectDiscovery nuclei-templates (theamanrawat), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2020-14144 in your dependencies?
Find it across Go, including transitive dependencies.