CVE-2016-3068 Mercurial arbitrary code execution via a crafted git ext:: URL
Remote attackers can execute arbitrary code by tricking users into cloning a subrepository with a crafted git ext:: URL.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2016-3068?
CVE-2016-3068 is a high-severity command injection vulnerability in Debian Debian Linux, published on 13 Apr 2016. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Mercurial before 3.7.3 allows remote attackers to execute arbitrary code via a crafted git ext:: URL when cloning a subrepository.
Weakness: CWE-20
Which versions are affected by CVE-2016-3068?
3 open source packages ship an affected version, including mercurial. It affects 14 products.
| Package | Affected | Fixed in |
|---|---|---|
mercurial PyPI | All versions | 3.7.3 |
mercurial PyPI | All versions | 3.7.3 |
mercurial PyPI | All versions | 3.7.3 |
Products include Debian Debian Linux, Fedoraproject Fedora, Mercurial Mercurial, Opensuse Leap, Opensuse Opensuse, Redhat Enterprise Linux Desktop and 8 more.
How do I fix CVE-2016-3068?
Upgrade mercurial to 3.7.3 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2016-3068 being exploited?
There is no known exploitation of CVE-2016-3068 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2016-3068, GHSA-j7c2-rqm3-c97m, PYSEC-2016-26, UBUNTU-CVE-2016-3068.