CVE-2020-14144 in gitea
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
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 software: gitea
Scores
- CVSS: 7.2 (high)
- EPSS: 99.11% chance of exploitation in the next 30 days
- CISA KEV: Not listed
- Published: 2020-10-16
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): No
- Mitigation: Yes, see below
How to mitigate it
Upgrade Gitea to 1.12.6 or later and limit git hook rights (CVE-2020-14144)
Patch or upgrade. In Gitea 1.1.0 to 1.12.5 a user with the git hook permission can run shell commands on the server through a repository hook. 1.12.6 turns web-editable git hooks off by default.
Applies to: Gitea 1.1.0 to 1.12.5.
- Check the Gitea version under Site Administration.
- Upgrade to Gitea 1.12.6 or later.
- Keep DISABLE_GIT_HOOKS = true in the [security] section of app.ini unless hooks are needed.
- Review which users have the 'may create git hooks' permission and remove it where it is not needed.
Sources:
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.