CVE-2020-14144
JSON

7.2high

Arbitrary Code Execution in Gitea

Severity
7.2high CVSS:3.1 by NVD
Exploit likelihood
99.1% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-3h6c-c475-jm7vBIT-GITEA-2020-14144

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

Product or packageVersionsReported by
Unspecified productn/aCVE List
code.gitea.io/gitea (Go)from 1.1.0 before 1.12.6GitHub Advisory Database
gitea giteafrom 1.1.0 up to 1.12.5NVD
gitea (Bitnami)from 1.1.0 before 1.12.6Bitnami Vulnerability Database

All scores

GitHub7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
NVD7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
NVD6.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:P/A:P
Bitnami Vulnerability Databasehigh rating

Classification

What each source says

CVE List

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.

GitHub Advisory Database

The git hook feature in Gitea 1.1.0 through 1.12.5 allows for authenticated remote code execution.

NVD (es)

** EN DISPUTA ** La funcionalidad git hook en Gitea versiones 1.1.0 hasta 1.12.5 podría permitir la ejecución de código remoto autenticado en entornos de clientes donde la documentación no fue entendida (por ejemplo, un punto de vista es que la peligrosidad de esta característica debería ser documentada inmediatamente encima de la línea ENABLE_GIT_HOOKS en el archivo de configuración). NOTA: El proveedor ha indicado que no se trata de una vulnerabilidad y afirma: "Se trata de una funcionalidad del software que se limita a un subconjunto muy limitado de cuentas". Si le das a alguien el privilegio de ejecutar un código arbitrario en tu servidor, puede ejecutar un código arbitrario en tu servidor. Proporcionamos advertencias muy claras a los usuarios sobre esta funcionalidad y lo que proporciona.

References

https://github.com/go-gitea/gitea/releasesadvisory, release-notes, third-party-advisory, 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/advisory, third-party-advisory
https://github.com/go-gitea/gitea/pull/13058advisory, third-party-advisory, web
https://docs.gitlab.com/ee/administration/server_hooks.htmladvisory, third-party-advisory, web
https://docs.github.com/en/enterprise-server%402.19/admin/policies/creating-a-pre-receive-hook-scriptweb
http://packetstormsecurity.com/files/162122/Gitea-Git-Hooks-Remote-Code-Execution.htmladvisory, exploit, third-party-advisory, vdb-entry, web
https://github.com/PandatiX/CVE-2021-28378advisory, exploit, third-party-advisory, web
https://github.com/PandatiX/CVE-2021-28378#notesadvisory, exploit, third-party-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2020-14144advisory, web
https://github.com/go-gitea/gitea/commit/8fe8ab5cbf2977f3a01ea12361df2cd76dce3ea9web
https://docs.github.com/en/enterprise-server@2.19/admin/policies/creating-a-pre-receive-hook-scriptweb
https://github.com/go-gitea/giteapackage

Sources

SourceRecordLicence
CVE ListCVE-2020-14144 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-3h6c-c475-jm7v changed 2024-04-22CC-BY-4.0
NVDCVE-2020-14144 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GITEA-2020-14144 changed 2026-09-08Apache-2.0