Skip to content
OpenAdvisories
Unscored Scanner template Public exploit CVE-2018-14912 EUVD-2018-6794GHSA-46c3-xc8j-9qg7

cgit_clone_objects in CGit before 1.2.1 has a directory traversal vulnerability when `enable-http-clone=1` is not turned off, as demonstrat…

Published Aug 3, 2018 · Updated Aug 5, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS cgit 1.1+git2.10.2-3ubuntu0.1 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS cgit 0.11.2.git2.3.2-1.1ubuntu0.1~esm1 USN-8757-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed cgit 1.2.3-1.10 openSUSE-SU-2024:10679-1
ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 1

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.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Advisories 4

References