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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | cgit | 1.1+git2.10.2-3.1 | — |
| Debian 13 | cgit | 1.1+git2.10.2-3.1 | — |
| Debian 12 | cgit | 1.1+git2.10.2-3.1 | — |
| Debian 9 | cgit | 1.1+git2.10.2-3+deb9u1 | DSA-4263-1 |
| Debian 8 | cgit | 0.10.2.git2.0.1-3+deb8u2 | DLA-1459-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | cgit | 1.1+git2.10.2-3ubuntu0.1 | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | cgit | 0.11.2.git2.3.2-1.1ubuntu0.1~esm1 | USN-8757-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | cgit | 1.2.3-1.10 | openSUSE-SU-2024:10679-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.8 | cgit | 1.1-r4 | — |
| Alpine v3.7 | cgit | 1.1-r3 | — |
| Alpine v3.6 | cgit | 1.1-r2 | — |
| Alpine v3.5 | cgit | 1.0-r2 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
cgit Directory Traversal
auxiliary/scanner/http/cgit_traversal
Exploit-DB 1
- cgit 1.2.1 - Directory Traversal (Metasploit) EDB-45195 · webapps · Aug 14, 2018
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- cgit < 1.2.1 - Directory Traversal http/cves/2018/CVE-2018-14912.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Advisories 4
- USN-8757-1 cgit vulnerability Ubuntu Security Notices (USN) · Sep 14, 2026
- DSA-4263-1 cgit - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1459-1 cgit - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10679-1 cgit-1.2.3-1.10 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026