Description
The convert extension in Mercurial before 3.8 might allow context-dependent attackers to execute arbitrary code via a crafted git repository name.
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.8.1-1 | — |
| Debian 13 | mercurial | 3.8.1-1 | — |
| Debian 12 | mercurial | 3.8.1-1 | — |
| Debian 8 | mercurial | 3.1.2-2+deb8u3 | DSA-3570-1 |
| Debian 7 | mercurial | 2.2.2-4+deb7u3 | DLA-459-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | mercurial | 3.7.3-1ubuntu1.1 | — |
| Ubuntu 14.04 LTS | mercurial | 2.8.2-1ubuntu1.4 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP1 | mercurial | 2.8.2-9.1 | SUSE-SU-2016:1442-1 |
| SLES 12 | mercurial | 2.8.2-9.1 | SUSE-SU-2016:1442-1 |
| SLES 11 SP4 | mercurial | 2.3.2-0.14.2 | SUSE-SU-2016:1443-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | mercurial | 4.0-1.1 | openSUSE-SU-2024:10070-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | mercurial | < 3.8 | 3.8 | GHSA-49cw-434h-qc57 |
| PyPI | mercurial | < 3.8-rc | 3.8-rc | PYSEC-2016-28 |
Advisories 5
- DLA-459-1 mercurial - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3570-1 mercurial - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10070-1 mercurial-4.0-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:1443-1 Security update for mercurial SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2016:1442-1 Security update for mercurial SUSE / openSUSE Security Updates · Feb 4, 2026
References
- GLSA-201612-19 vendor-advisory
- 90536 vdb-entry
- https://selenic.com/hg/rev/a56296f55a5e
- openSUSE-SU-2016:1336 vendor-advisory
- SSA:2016-123-01 vendor-advisory
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_3.8_.2F_3.8.1_.282016-5-1.29
- DSA-3570 vendor-advisory