Skip to main content
← All vulnerabilities
CVE-2020-14144GHSA-3H6C-C475-JM7VBIT-GITEA-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 do

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.12.6
1 Metasploit module, 2 proofs of concept on GitHub, 1 Nuclei template

Summary

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.

Timeline

  1. CVE published
  2. Record last updated
  3. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • n/a n/a

    Version range not reported

  • code.gitea.io/giteaGo

    From 1.1.0 · fixed in 1.12.6

References 12

GitHub · go-gitea/gitea

fzi.de

docs.gitlab.com

docs.github.com

packetstormsecurity.com

GitHub · PandatiX/CVE-2021-28378

GitHub · rapid7/metasploit-framework

GitHub · projectdiscovery/nuclei-templates

GitHub · Mohnad-AL-saif/Gitea-Git-Hooks-RCE-CVE-2020-14144-

GitHub · p0dalirius/CVE-2020-14144-GiTea-git-hooks-rce