CVE-2020-14144Gitea OS Command Injection
Arbitrary Code Execution in Gitea
Published Oct 16, 2020 · Updated Oct 24, 2026 · Also known as BIT-gitea-2020-14144, GHSA-3h6c-c475-jm7v
Key Facts
Patch immediately- CVE-2020-14144 is a high-severity vulnerability (CVSS 7.2 v3.1) affecting Gitea, code.gitea.io/gitea (go).
- It is not listed in any known-exploited vulnerabilities catalog. Public exploit code is available.
- EPSS estimates a 99% probability of exploitation in the next 30 days.
- Fixed versions are available, including code.gitea.io/gitea 1.12.6, Gitea 1.12.6, Gitea <=1.12.5.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Scores
CVSS v3.1
7.2
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS (30-day exploit likelihood)
99%
Higher than 99.9% of all scored CVEs
Exploit maturity
Weaponized
ATLAS score
70/100
Publication score, see How it works
Exploitation Verdict
KEV listed
Not listed
Federal due date
None
No federal due date
Ransomware use
Not reported
Attributed actors
None named
Exploit & Defence Guidance
Exploit maturity
Weaponized
Public exploit code
2
Proof-of-concept links
In-the-wild evidence
0
Reports of active use
Advisories And Exploit References
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 Products
5 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| GiteaGitea | >= 1.1.0 | 1.12.5 |
| code.gitea.io/giteago | >= 1.1.0 | 1.12.6 |
Patched Releases
code.gitea.io/gitea
1.12.6
Gitea
1.12.6, <=1.12.5
Timeline
Publicly disclosed
Oct 16, 2020
Last updated
Oct 24, 2026
Weakness Type
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
- advisorynvd.nist.gov · CVE-2020-14144
- advisoryGHSA advisory
- advisoryfzi.de · fsa-2020-3-schwachstelle-in-gitea-1125-und-gogs…
- exploitMSF gitea_git_hooks_rce.rb
- exploitMSF gogs_git_hooks_rce.rb
FAQ
Common Questions.
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).
Affected: Gitea versions >= 1.1.0; code.gitea.io/gitea (go) versions >= 1.1.0. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including code.gitea.io/gitea 1.12.6, Gitea 1.12.6, Gitea <=1.12.5.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2020-14144 On Your Attack Surface?
Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.
Request A Demo