Description
Mercurial prior to version 4.3 is vulnerable to a missing symlink check that can malicious repositories to modify files outside the repository
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 | 4.3.1-1 | — |
| Debian 13 | mercurial | 4.3.1-1 | — |
| Debian 12 | mercurial | 4.3.1-1 | — |
| Debian 9 | mercurial | 4.0-1+deb9u1 | DSA-3963-1 |
| Debian 8 | mercurial | 3.1.2-2+deb8u4 | DSA-3963-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 7 | mercurial | 2.2.2-4+deb7u5 | DLA-1072-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 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | mercurial +3 | 2.6.2-8.el7_4 | RHSA-2017:2489 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | mercurial | 2.8.2-15.3.1 | SUSE-SU-2017:2251-1 |
| SLES 12 SP2 | mercurial | 2.8.2-15.3.1 | SUSE-SU-2017:2251-1 |
| SLES 11 SP4 | mercurial | 2.3.2-0.18.3.1 | SUSE-SU-2017:2250-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | mercurial | 5.9.1-2.1 | openSUSE-SU-2024:10586-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.6 | mercurial | 4.3.1-r0 | — |
| Alpine v3.5 | mercurial | 4.3.1-r0 | — |
| Alpine v3.4 | mercurial | 4.3.1-r0 | — |
| Alpine v3.3 | mercurial | 4.3.1-r0 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | mercurial +3 | 2.6.2-8.el7_4 | ELSA-2017-2489 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | mercurial | < 4.3.1 | 4.3.1 | GHSA-hvr9-wr9p-grgr |
| PyPI | mercurial | < 4.3 | 4.3 | PYSEC-2017-88 |
Advisories 7
- RHSA-2017:2489 Red Hat Security Advisory: mercurial security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-3963-1 mercurial - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1072-1 mercurial - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2017:2250-1 Security update for mercurial SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10586-1 mercurial-5.9.1-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2017:2251-1 Security update for mercurial SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2017-2489 Important: mercurial security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Aug 17, 2017
References
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.3_.2F_4.3.1_.282017-08-10.29
- 100290 vdb-entry
- DSA-3963 vendor-advisory
- RHSA-2017:2489 vendor-advisory
- GLSA-201709-18 vendor-advisory