Vulnerabilities · 2020 · Gitea
CVE-2020-14144
Gitea vulnerability
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
Gitea. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Gitea runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- packetstormsecurity.com/files/162122/Gitea-Git-Hooks-Remote-Code-Execution.html · Exploit
- docs.gitlab.com/ee/administration/server_hooks.html · Third Party Advisory
- github.com/PandatiX/CVE-2021-28378 · Exploit
- github.com/PandatiX/CVE-2021-28378#notes · Exploit
- github.com/go-gitea/gitea/pull/13058 · Third Party Advisory
- github.com/go-gitea/gitea/releases · Third Party Advisory
- www.fzi.de/en/news/news/detail-en/artikel/fsa-2020-3-schwachstelle-in-gitea-1125-und-gogs- · Third Party Advisory
- docs.github.com/en/enterprise-server%402.19/admin/policies/creating-a-pre-receive-hook-scr
- nvd.nist.gov/vuln/detail/CVE-2020-14144
- cve.org/CVERecord?id=CVE-2020-14144
More vulnerabilities in Gitea products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.