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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| code.gitea.io/gitea (Go) | from 1.1.0 before 1.12.6 | GitHub Advisory Database |
| gitea gitea | from 1.1.0 up to 1.12.5 | NVD |
| gitea (Bitnami) | from 1.1.0 before 1.12.6 | Bitnami Vulnerability Database |
All scores
| GitHub | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.5medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
| Bitnami Vulnerability Database | high 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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-14144 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3h6c-c475-jm7v changed 2024-04-22 | CC-BY-4.0 |
| NVD | CVE-2020-14144 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GITEA-2020-14144 changed 2026-09-08 | Apache-2.0 |