RCE in Gitea

CVE-2020-14144

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.

Vulnerability class: Command Injection (OS Command Injection)

EPSS: 0.954 (99.9th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H.

Affected products

  • Gitea
  • N/a — versions n/a

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2020-14144?
CVE-2020-14144 is a high-severity vulnerability in Gitea, classified under OS Command Injection. CVSS score: 7.2/10. Published 2020-10-16.
How severe is CVE-2020-14144?
High severity. CVSS v3 base score is 7.2 out of 10.
Is CVE-2020-14144 known to be exploited?
10 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.