CVE-2018-14912
cgit_clone_objects in CGit before 1.2.1 has a directory traversal vulnerability when `enable-http...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2018-14912- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:P/I:N/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2018-14912- Updated
- 2026-11-02
EUVDEUVD-2018-6794 No score
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.
- Record
EUVD-2018-6794- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-46c3-xc8j-9qg7
7.5
cgit_clone_objects in CGit before 1.2.1 has a directory traversal vulnerability when `enable-http...
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.
- Record
GHSA-46c3-xc8j-9qg7- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVALPINE-CVE-2018-14912
7.5
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.
- Record
ALPINE-CVE-2018-14912- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSV
7.5
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.
- Record
CVE-2018-14912- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
Show 5 moreShow less
OSVDEBIAN-CVE-2018-14912
7.5
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.
- Record
DEBIAN-CVE-2018-14912- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-14912
7.5
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.
- Record
UBUNTU-CVE-2018-14912- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVMGASA-2018-0351 No score
Updated cgit packages fix security vulnerability
Jann Horn discovered a directory traversal vulnerability in cgit, a fast web frontend for git repositories written in C. A remote attacker can take advantage of this flaw to retrieve arbitrary files via a specially crafted request, when 'enable-http-clone=1' (default) is not turned off.
- Record
MGASA-2018-0351- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10679-1 No score
cgit-1.2.3-1.10 on GA media
These are all security issues fixed in the cgit-1.2.3-1.10 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10679-1- Updated
- 2026-11-02
OSVUSN-8757-1 No score
cgit vulnerability
It was discovered that cgit incorrectly handled repository paths when HTTP cloning was enabled. A remote attacker could possibly use this issue to access files outside the repository and obtain sensitive information.
- Record
USN-8757-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
cgitAlpine:v3.5 |
before 1.0-r2 | 1.0-r2 |
cgitAlpine:v3.6 |
before 1.1-r2 | 1.1-r2 |
cgitAlpine:v3.7 |
before 1.1-r3 | 1.1-r3 |
cgitAlpine:v3.8 |
before 1.1-r4 | 1.1-r4 |
cgitDebian:12 |
before 1.1+git2.10.2-3.1 | 1.1+git2.10.2-3.1 |
cgitDebian:13 |
before 1.1+git2.10.2-3.1 | 1.1+git2.10.2-3.1 |
cgitDebian:14 |
before 1.1+git2.10.2-3.1 | 1.1+git2.10.2-3.1 |
cgitDebian:8 |
before 0.10.2.git2.0.1-3+deb8u2, plus listed versions 0.10.2.git2.0.1-30.10.2.git2.0.1-3+deb8u1 |
0.10.2.git2.0.1-3+deb8u2 |
cgitDebian:9 |
before 1.1+git2.10.2-3+deb9u1, plus listed versions 1.1+git2.10.2-3 |
1.1+git2.10.2-3+deb9u1 |
cgitMageia:6 |
before 0.12-3.1.mga6 | 0.12-3.1.mga6 |
cgitUbuntu:Pro:16.04:LTS |
before 0.11.2.git2.3.2-1.1ubuntu0.1~esm1, plus listed versions 0.11.2.git2.3.2-10.11.2.git2.3.2-1.1 |
0.11.2.git2.3.2-1.1ubuntu0.1~esm1 |
cgitUbuntu:18.04:LTS |
before 1.1+git2.10.2-3ubuntu0.1, plus listed versions 1.1+git2.10.2-31.1+git2.10.2-3build1 |
1.1+git2.10.2-3ubuntu0.1 |
cgitopenSUSE:Tumbleweed |
before 1.2.3-1.10 | 1.2.3-1.10 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | cgit 1.2.1 - Directory Traversal (Metasploit) | 2018-08-14 |
| Metasploit | cgit Directory Traversal | 2018-08-03 |
| Nuclei | cgit < 1.2.1 - Directory Traversal |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, Metasploit, Nuclei, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-14912 is a high vulnerability (CVSS 7.5) in Cgit Project Cgit, published August 3, 2018. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 91.9%, the 99th percentile. Fixed in cgit 1.0-r2.
References
lists.debian.org/debian-lts-announce/2018/08/msg00005.html
exploit-db.com/exploits/45195
debian.org/security/2018/dsa-4263
bugs.chromium.org/p/project-zero/issues/detail?id=1627
lists.zx2c4.com/pipermail/cgit/2018-August/004176.html
nvd.nist.gov/vuln/detail/CVE-2018-14912
Show 10 moreShow less
github.com/advisories/GHSA-46c3-xc8j-9qg7
security.alpinelinux.org/vuln/CVE-2018-14912
security-tracker.debian.org/tracker/CVE-2018-14912
advisories.mageia.org/MGASA-2018-0351.html
bugs.mageia.org/show_bug.cgi?id=23398
ubuntu.com/security/CVE-2018-14912
git.zx2c4.com/cgit/commit?id=53efaf30b50f095cad8c160488c74bba3e3b2680
cve.org/CVERecord?id=CVE-2018-14912
ubuntu.com/security/notices/USN-8757-1
suse.com/security/cve/CVE-2018-14912