CVE-2018-17983Mercurial
Critical 9.1 No auth needed
Follow: this CVE · Mercurial · Mercurial We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.0
- 9.1
- EPSS
- 2.0% probability of exploitation in 30 days · percentile 82
- Auth required
- No
- Published
- Oct 4, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-125
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
What happens
cext/manifest.c in Mercurial before 4.7.2 has an out-of-bounds read during parsing of a malformed manifest entry.
What to do
- Apply the vendor's security update for Mercurial.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | mercurial |
< 4.7.2 |
4.7.2 |
pip install "mercurial>=4.7.2" |
| PyPI | mercurial |
< 4.7.2 |
4.7.2 |
pip install "mercurial>=4.7.2" |
Per OSV / GitHub Advisories (GHSA-p575-cf9h-wv42, PYSEC-2018-91). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mercurial | mercurial | < 4.7.2 |
Official sources
References
Links published by the sources. Open them with care.
- www.mercurial-scm.org Patch
- www.mercurial-scm.org Release Notes