Description
cext/manifest.c in Mercurial before 4.7.2 has an out-of-bounds read during parsing of a malformed manifest entry.
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.7.2-1 | — |
| Debian 13 | mercurial | 4.7.2-1 | — |
| Debian 12 | mercurial | 4.7.2-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | mercurial | 4.5.3-1ubuntu2.2 | USN-5102-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | mercurial | 3.7.3-1ubuntu1.2+esm2 | USN-5102-2 |
| Ubuntu Pro 14.04 LTS | mercurial | 2.8.2-1ubuntu1.4+esm1 | USN-5102-2 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 | mercurial | 4.5.2-3.6.1 | SUSE-SU-2018:3430-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | mercurial | 5.9.1-2.1 | openSUSE-SU-2024:10586-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | mercurial | < 4.7.2 | 4.7.2 | GHSA-p575-cf9h-wv42 |
Advisories 4
- USN-5102-2 mercurial vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- USN-5102-1 mercurial vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
- SUSE-SU-2018:3430-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