Severity
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/go-gitea/gitea ↗ | |
| 1d652913425c5e296d60e6ee268a2c1f59a3379a through aa1d9ef6cba71c80170ec8c9ef424cb780fa6481 | No fix listed |
Also listed as affected (22)
| |
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.
References
- Webdocs.github.com/en/enterprise-server%402.19/admin/policies/creating-a-pre-receive-hook-script ↗
- Advisorydocs.gitlab.com/ee/administration/server_hooks.html ↗
- Advisorygithub.com/go-gitea/gitea/pull/13058 ↗
- Advisorygithub.com/go-gitea/gitea/releases ↗
- Advisorywww.fzi.de/en/news/news/detail-en/artikel/fsa-2020-3-schwachstelle-in-gitea-1125-und-gogs-0122-ermoeglicht-ausfuehrung-von-code-nach-authent/ ↗
- EVIDENCEpacketstormsecurity.com/files/162122/Gitea-Git-Hooks-Remote-Code-Execution.html ↗
- EVIDENCEgithub.com/PandatiX/CVE-2021-28378 ↗
- EVIDENCEgithub.com/PandatiX/CVE-2021-28378#notes ↗