CVE-2018-14912 in cgit project cgit

LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.

What the vulnerability is

cgit_clone_objects in CGit before 1.2.1 has a directory traversal vulnerability when `enable-http-clone=1` is not turned off, as demonstrated by a cgit/cgit.cgi/git/objects/?path=../ request.

Affected software: cgit project cgit, debian linux

Scores

What LogPulse has for it

How to mitigate it

Upgrade cgit to 1.2.1 or later (CVE-2018-14912)

Patch or upgrade. cgit before 1.2.1 with enable-http-clone on (the default) returns any file the web server can read through the objects view. 1.2.1 fixes it.

Applies to: cgit before 1.2.1.

  1. Check the cgit version (footer of a cgit page, or the package version).
  2. Upgrade cgit to 1.2.1 or later through the distribution package or from source.
  3. If you cannot upgrade at once, set enable-http-clone=0 in cgitrc.

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.

Start free with LogPulse