Description
Mercurial before 3.7.3 allows remote attackers to execute arbitrary code via a crafted git ext:: URL when cloning a subrepository.
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 | mercurial | 3.7.3-1 | — |
| Debian 13 | mercurial | 3.7.3-1 | — |
| Debian 12 | mercurial | 3.7.3-1 | — |
| Debian 8 | mercurial | 3.1.2-2+deb8u2 | DSA-3542-1 |
| Debian 7 | mercurial | 2.2.2-4+deb7u2 | DSA-3542-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | mercurial | 2.8.2-1ubuntu1.4 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | mercurial +3 | 2.6.2-6.el7_2 | RHSA-2016:0706 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP1 | mercurial | 2.8.2-6.1 | SUSE-SU-2016:1010-1 |
| SLES 12 | mercurial | 2.8.2-6.1 | SUSE-SU-2016:1010-1 |
| SLES 11 SP4 | mercurial | 2.3.2-0.11.1 | SUSE-SU-2016:1011-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | mercurial | 4.0-1.1 | openSUSE-SU-2024:10070-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | mercurial +3 | 2.6.2-6.el7_2 | ELSA-2016-0706 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | mercurial | < 3.7.3 | 3.7.3 | GHSA-j7c2-rqm3-c97m |
Advisories 6
- RHSA-2016:0706 Red Hat Security Advisory: mercurial security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-3542-1 mercurial - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2016:1010-1 Security update for mercurial SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10070-1 mercurial-4.0-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:1011-1 Security update for mercurial SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2016-0706 Important: mercurial security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · May 2, 2016
References
- FEDORA-2016-79604dde9f vendor-advisory
- GLSA-201612-19 vendor-advisory
- DSA-3542 vendor-advisory
- https://selenic.com/repo/hg-stable/rev/34d43cb85de8
- http://www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html
- openSUSE-SU-2016:1016 vendor-advisory
- RHSA-2016:0706 vendor-advisory
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_3.7.3_.282016-3-29.29
- http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html
- SUSE-SU-2016:1011 vendor-advisory
- SUSE-SU-2016:1010 vendor-advisory
- 85733 vdb-entry
- FEDORA-2016-b7f1f8e3bf vendor-advisory
- openSUSE-SU-2016:1073 vendor-advisory