Description
Mercurial version 4.5 and earlier contains a Incorrect Access Control (CWE-285) vulnerability in Protocol server that can result in Unauthorized data access. This attack appear to be exploitable via network connectivity. This vulnerability appears to have been fixed in 4.5.1.
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.5.2-1 | — |
| Debian 13 | mercurial | 4.5.2-1 | — |
| Debian 12 | mercurial | 4.5.2-1 | — |
| Debian 9 | mercurial | 4.0-1+deb9u2 | DLA-2293-1 |
| Debian 8 | mercurial | 3.1.2-2+deb8u5 | DLA-1414-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 7 | mercurial | 2.2.2-4+deb7u7 | DLA-1331-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-10.el7 | RHSA-2019:2276 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | mercurial | 2.8.2-15.10.1 | SUSE-SU-2018:0933-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.7 | mercurial | 4.5.2-r0 | — |
| Alpine v3.6 | mercurial | 4.5.2-r0 | — |
| Alpine v3.5 | mercurial | 4.5.2-r0 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | mercurial +3 | 2.6.2-10.el7 | ELSA-2019-2276 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | mercurial | < 4.5.1 | 4.5.1 | GHSA-4mr4-7vjv-9hm6 |
Advisories 8
- WID-SEC-2022-0517 Red Hat Enterprise Linux: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 18, 2026
- RHSA-2019:2276 Red Hat Security Advisory: mercurial security update Red Hat Security Advisories (RHSA) · Jun 27, 2026
- DLA-2293-1 mercurial - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1331-1 mercurial - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1414-1 mercurial - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2018:0933-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
- ELSA-2019-2276 Moderate: mercurial security update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Aug 13, 2019
References
- [debian-lts-announce] 20180330 [SECURITY] [DLA 1331-1] mercurial security update mailing-list
- [debian-lts-announce] 20180705 [SECURITY] [DLA 1414-1] mercurial security update mailing-list
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.5.1_.2F_4.5.2_.282018-03-06.29
- RHSA-2019:2276 vendor-advisory
- [debian-lts-announce] 20200731 [SECURITY] [DLA 2293-1] mercurial security update mailing-list