Vulnerability record · CVE-2018-14912 · published 3 August 2018
CVE-2018-14912: CGit directory traversal in HTTP clone objects endpoint
Cgit Project · Cgit
CGit before 1.2.1 contains a directory traversal flaw in cgit_clone_objects when enable-http-clone is left enabled. A crafted request such as cgit/cgit.cgi/git/objects/?path=../ lets an unauthenticated remote user read files outside the intended repository object path. Because cgit is commonly exposed as a public web front end for Git repositories, the flaw matters for any instance that has not disabled HTTP cloning.
Description
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.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Automated analysis
high priorityUnauthenticated remote file disclosure with public exploit code and very high EPSS, but no KEV listing and no evidence of ransomware use.
What it is
CGit before 1.2.1 contains a directory traversal flaw in cgit_clone_objects when enable-http-clone is left enabled. A crafted request such as cgit/cgit.cgi/git/objects/?path=../ lets an unauthenticated remote user read files outside the intended repository object path. Because cgit is commonly exposed as a public web front end for Git repositories, the flaw matters for any instance that has not disabled HTTP cloning.
Impact
An attacker can read arbitrary files reachable by the cgit process, exposing repository data and any sensitive files readable by that service account. The CVSS vector confirms high confidentiality impact with no integrity or availability effect.
Attack surface
Reached over the network through the cgit HTTP interface, specifically the git/objects/ endpoint when enable-http-clone is not turned off. No authentication or user interaction is required per the CVSS vector (AV:N/AC:L/PR:N/UI:N).
Exploitation
Public exploit references exist (Project Zero issue and Exploit-DB 45195), and EPSS is very high at 0.9288 (99.8th percentile), though the CVE is not listed in CISA KEV.
What to do
- Upgrade CGit to 1.2.1 or later, or apply the vendor patch referenced in the cgit mailing list advisory.
- If immediate upgrade is not possible, disable HTTP cloning by setting enable-http-clone=0 in cgitrc.
- Apply the Debian security updates (DSA-4263 and the LTS announcement) for affected Debian packages.
- Restrict network access to cgit instances that do not need to serve HTTP clones publicly.
- Run cgit under a low-privilege account with no access to sensitive files outside the repository tree.
Detection
- Search web access logs for requests to git/objects/ containing path=../ or other traversal sequences.
- Alert on URL-encoded traversal patterns (%2e%2e) or repeated ../ segments in cgit request paths.
- Monitor for unusual file reads by the cgit process user outside the repository directory.
- Review cgit configuration to confirm enable-http-clone status across all instances.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://bugs.chromium.org/p/project-zero/issues/detail?id=1627 | ExploitIssue TrackingThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2018/08/msg00005.html | Third Party Advisory |
| https://lists.zx2c4.com/pipermail/cgit/2018-August/004176.html | Vendor Advisory |
| https://www.debian.org/security/2018/dsa-4263 | Third Party Advisory |
| https://www.exploit-db.com/exploits/45195/ | ExploitThird Party AdvisoryVDB Entry |
| https://bugs.chromium.org/p/project-zero/issues/detail?id=1627 | ExploitIssue TrackingThird Party Advisory |
| https://lists.debian.org/debian-lts-announce/2018/08/msg00005.html | Third Party Advisory |
| https://lists.zx2c4.com/pipermail/cgit/2018-August/004176.html | Vendor Advisory |
| https://www.debian.org/security/2018/dsa-4263 | Third Party Advisory |
| https://www.exploit-db.com/exploits/45195/ | ExploitThird Party AdvisoryVDB Entry |
Track CVE-2018-14912 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.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2018-14912), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.