← Vulnerability feed

Vulnerability record · CVE-2020-14144 · published 16 October 2020

CVE-2020-14144: Gitea git hook feature allows authenticated remote code execution

Gitea · Gitea

Gitea 1.1.0 through 1.12.5 ships a git hook feature that can execute arbitrary commands on the server when enabled. The vendor disputes this as a vulnerability, arguing it is intended functionality restricted to a very limited subset of privileged accounts and covered by warnings in the documentation. The dispute matters because defenders must decide whether to treat hook execution as a misconfiguration risk or a code flaw.

7.2 CVSS 3.1 High EPSS 95% · top 0.1% CWE-78 · OS command injection
7.2CVSS 3.1 base score, v2 6.5
95%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
16References, 6 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: medium.

high priorityCVSS 7.2 and an EPSS above the 99th percentile with public exploit references make this worth urgent attention, even though the vendor disputes it and exploitation requires high privileges.

What it is

Gitea 1.1.0 through 1.12.5 ships a git hook feature that can execute arbitrary commands on the server when enabled. The vendor disputes this as a vulnerability, arguing it is intended functionality restricted to a very limited subset of privileged accounts and covered by warnings in the documentation. The dispute matters because defenders must decide whether to treat hook execution as a misconfiguration risk or a code flaw.

Impact

An attacker with an account holding the privilege to configure git hooks gains arbitrary command execution on the Gitea server, with high impact to confidentiality, integrity and availability. The vendor's position is that such an account already has code execution by design.

Attack surface

Reached over the network through the Gitea web interface or repository hook configuration, requiring high privileges (PR:H) and no user interaction. The CVSS vector is AV:N/AC:L/PR:H/UI:N/S:U, so only authenticated accounts with hook permissions can reach it.

Exploitation

Not listed in CISA KEV, but EPSS is very high at 0.95357 (99.864th percentile) and public exploit references exist, including a Packet Storm advisory and GitHub proof-of-concept material. The record does not state whether exploitation has been observed in the wild.

What to do

  • Upgrade Gitea to a release after 1.12.5; check the project release notes for the version that changes hook handling.
  • Disable or restrict the git hook feature (ENABLE_GIT_HOOKS) unless it is explicitly required.
  • Limit hook configuration privileges to the smallest possible set of trusted accounts and review who currently holds them.
  • Run Gitea with least privilege and isolate it so that command execution does not reach sensitive hosts or data.
  • Document and communicate the risk of the hook feature to administrators so it is not enabled unintentionally.

Detection

  • Monitor Gitea audit and application logs for changes to repository hook configuration or hook files.
  • Alert on new or modified hook scripts in Gitea repository directories and on unexpected child processes spawned by the Gitea service account.
  • Review accounts with hook or repository administration privileges for unexpected grants or use.
  • Correlate Gitea web requests to hook configuration endpoints with subsequent process execution on the host.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2020-14144 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2026-60004Gitea diffpatch API code injection enables remote code executionGitea before 1.27.1 allows remote code execution through the diffpatch API by way of Git hook installation. The flaw is a code injection issue (CWE-9…KEVEPSS 24%analysed9.8CVE-2022-42968Gitea argument injection vulnerabilityGitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.EPSS 1.2%9.8CVE-2021-45331Gitea improper authentication vulnerabilityAn Authentication Bypass vulnerability exists in Gitea before 1.5.0, which could let a malicious user gain privileges. If captured, the TOTP code for…EPSS 1.4%9.8CVE-2021-45330Gitea vulnerabilityAn issue exsits in Gitea through 1.15.7, which could let a malicious user gain privileges due to client side cookies not being deleted and the sessio…EPSS 1.4%9.8CVE-2021-45327Gitea interpretation conflict vulnerabilityGitea before 1.11.2 is affected by Trusting HTTP Permission Methods on the Server Side when referencing the vulnerable admin or user API. which could…EPSS 2.1%9.8CVE-2020-28991Gitea vulnerabilityGitea 0.9.99 through 1.12.x before 1.12.6 does not prevent a git protocol path that specifies a TCP port number and also contains newlines (with URL …EPSS 1.7%9.8CVE-2019-11576Gitea improper authentication vulnerabilityGitea before 1.8.0 allows 1FA for user accounts that have completed 2FA enrollment. If a user's credentials are known, then an attacker could send th…EPSS 1.8%9.8CVE-2018-18926Gitea vulnerabilityGitea before 1.5.4 allows remote code execution because it does not properly validate session IDs. This is related to session ID handling in the go-m…EPSS 3.0%

Source: NIST National Vulnerability Database (record CVE-2020-14144), CISA KEV, FIRST EPSS (scores of 2026-09-23). This page is refreshed as NVD updates the record.