HIGH7.2
GHSA-3h6c-c475-jm7v
Arbitrary Code Execution in Gitea
Quick fix
GHSA-3h6c-c475-jm7v — code.gitea.io/gitea: upgrade to the fixed version with the command below.
go get code.gitea.io/gitea@v1.12.6Details
The git hook feature in Gitea 1.1.0 through 1.12.5 allows for authenticated remote code execution.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-14144[ADVISORY]
- https://github.com/go-gitea/gitea/pull/13058[WEB]
- https://github.com/go-gitea/gitea/commit/8fe8ab5cbf2977f3a01ea12361df2cd76dce3ea9[WEB]
- https://docs.github.com/en/enterprise-server%402.19/admin/policies/creating-a-pre-receive-hook-script[WEB]
- https://docs.github.com/en/enterprise-server@2.19/admin/policies/creating-a-pre-receive-hook-script[WEB]
- https://docs.gitlab.com/ee/administration/server_hooks.html[WEB]
- https://github.com/PandatiX/CVE-2021-28378[WEB]
- https://github.com/PandatiX/CVE-2021-28378#notes[WEB]
- https://github.com/go-gitea/gitea[PACKAGE]
- https://github.com/go-gitea/gitea/releases[WEB]
- https://podalirius.net/articles/exploiting-cve-2020-14144-gitea-authenticated-remote-code-execution[WEB]
- https://www.exploit-db.com/exploits/49571[WEB]
- 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[WEB]
- http://packetstormsecurity.com/files/162122/Gitea-Git-Hooks-Remote-Code-Execution.html[WEB]