CVE-2020-14144
Gitea Git Hook Remote Code Execution Vulnerability
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.
INFO
Published Date :
Oct. 16, 2020, 2:15 p.m.
Last Modified :
Aug. 4, 2024, 1:15 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
1.2
Public PoC/Exploit Available at Github
CVE-2020-14144 has a 4 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2020-14144
.
URL | Resource |
---|---|
http://packetstormsecurity.com/files/162122/Gitea-Git-Hooks-Remote-Code-Execution.html | Exploit Third Party Advisory VDB Entry |
https://docs.github.com/en/enterprise-server%402.19/admin/policies/creating-a-pre-receive-hook-script | |
https://docs.gitlab.com/ee/administration/server_hooks.html | Third Party Advisory |
https://github.com/PandatiX/CVE-2021-28378 | Exploit Third Party Advisory |
https://github.com/PandatiX/CVE-2021-28378#notes | Exploit Third Party Advisory |
https://github.com/go-gitea/gitea/pull/13058 | Third Party Advisory |
https://github.com/go-gitea/gitea/releases | Release Notes Third Party Advisory |
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/ | Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Tool to automate code execution on the server running Gogs git service.
Python
None
A script to exploit CVE-2020-14144 - GiTea authenticated Remote Code Execution using git hooks
gitea rce git hook cve-2020-14144
Python
Front page README of my GitHub profile
config github-config
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2020-14144
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2020-14144
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
Aug. 04, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
May. 17, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Apr. 11, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Mar. 21, 2024
Action Type Old Value New Value Added Tag MITRE disputed -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Changed Description ** DISPUTED ** 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." 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. Added Reference MITRE https://docs.github.com/en/enterprise-server%402.19/admin/policies/creating-a-pre-receive-hook-script [No types assigned] Removed Reference MITRE https://docs.github.com/en/[email protected]/admin/policies/creating-a-pre-receive-hook-script -
Modified Analysis by [email protected]
Nov. 30, 2021
Action Type Old Value New Value Changed Reference Type http://packetstormsecurity.com/files/162122/Gitea-Git-Hooks-Remote-Code-Execution.html No Types Assigned http://packetstormsecurity.com/files/162122/Gitea-Git-Hooks-Remote-Code-Execution.html Exploit, Third Party Advisory, VDB Entry Changed Reference Type https://docs.github.com/en/[email protected]/admin/policies/creating-a-pre-receive-hook-script No Types Assigned https://docs.github.com/en/[email protected]/admin/policies/creating-a-pre-receive-hook-script Third Party Advisory Changed Reference Type https://docs.gitlab.com/ee/administration/server_hooks.html No Types Assigned https://docs.gitlab.com/ee/administration/server_hooks.html Third Party Advisory Changed Reference Type https://github.com/PandatiX/CVE-2021-28378 No Types Assigned https://github.com/PandatiX/CVE-2021-28378 Exploit, Third Party Advisory Changed Reference Type https://github.com/PandatiX/CVE-2021-28378#notes No Types Assigned https://github.com/PandatiX/CVE-2021-28378#notes Exploit, Third Party Advisory -
CVE Modified by [email protected]
Nov. 17, 2021
Action Type Old Value New Value Added Reference https://github.com/PandatiX/CVE-2021-28378#notes [No Types Assigned] -
CVE Modified by [email protected]
Nov. 10, 2021
Action Type Old Value New Value Removed Reference https://github.com/PandatiX/CVE-2021-28378#notes [No Types Assigned] -
CVE Modified by [email protected]
Nov. 04, 2021
Action Type Old Value New Value Added Reference https://github.com/PandatiX/CVE-2021-28378#notes [No Types Assigned] -
CVE Modified by [email protected]
Sep. 24, 2021
Action Type Old Value New Value Added Reference https://github.com/PandatiX/CVE-2021-28378 [No Types Assigned] -
CVE Modified by [email protected]
Apr. 08, 2021
Action Type Old Value New Value Added Reference http://packetstormsecurity.com/files/162122/Gitea-Git-Hooks-Remote-Code-Execution.html [No Types Assigned] -
CVE Modified by [email protected]
Nov. 09, 2020
Action Type Old Value New Value Changed Description ** DISPUTED ** The git hook feature in Gitea 1.1.0 through 1.12.5 allows for authenticated remote code execution. 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." ** DISPUTED ** 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." -
CVE Modified by [email protected]
Oct. 21, 2020
Action Type Old Value New Value Changed Description The git hook feature in Gitea 1.1.0 through 1.12.5 allows for authenticated remote code execution. ** DISPUTED ** The git hook feature in Gitea 1.1.0 through 1.12.5 allows for authenticated remote code execution. 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." Added Reference https://docs.gitlab.com/ee/administration/server_hooks.html [No Types Assigned] Added Reference https://docs.github.com/en/[email protected]/admin/policies/creating-a-pre-receive-hook-script [No Types Assigned] -
Initial Analysis by [email protected]
Oct. 19, 2020
Action Type Old Value New Value Added CVSS V2 NIST (AV:N/AC:L/Au:S/C:P/I:P/A:P) Added CVSS V3.1 NIST AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/go-gitea/gitea/pull/13058 No Types Assigned https://github.com/go-gitea/gitea/pull/13058 Third Party Advisory Changed Reference Type https://github.com/go-gitea/gitea/releases No Types Assigned https://github.com/go-gitea/gitea/releases Release Notes, Third Party Advisory Changed Reference Type 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/ No Types Assigned 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/ Third Party Advisory Added CWE NIST CWE-78 Added CPE Configuration OR *cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:* versions from (including) 1.1.0 up to (including) 1.12.5
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2020-14144
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2020-14144
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
97.28 }} -0.04%
score
0.99889
percentile