Description
The binary delta decoder in Mercurial before 3.7.3 allows remote attackers to execute arbitrary code via a (1) clone, (2) push, or (3) pull command, related to (a) a list sizing rounding error and (b) short records.
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 | — |
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 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | mercurial | < 3.7.3 | 3.7.3 | GHSA-9vjf-jjcq-3gh7 |
Advisories 4
- 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
References
- FEDORA-2016-79604dde9f vendor-advisory
- GLSA-201612-19 vendor-advisory
- DSA-3542 vendor-advisory
- https://selenic.com/repo/hg-stable/rev/b9714d958e89
- https://selenic.com/repo/hg-stable/rev/b6ed2505d6cf
- openSUSE-SU-2016:1016 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
- FEDORA-2016-b7f1f8e3bf vendor-advisory
- openSUSE-SU-2016:1073 vendor-advisory