CVE-2008-2942Mercurial
Medium 6.8 No auth needed
Follow: this CVE · Mercurial · Mercurial We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 2.0
- 6.8
- EPSS
- 1.9% probability of exploitation in 30 days · percentile 80
- Auth required
- No
- Published
- Jun 30, 2008
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- Vector
AV:N/AC:M/Au:N/C:P/I:P/A:P
What happens
Directory traversal vulnerability in patch.py in Mercurial 1.0.1 allows user-assisted attackers to modify arbitrary files via ".." (dot dot) sequences in a patch file.
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 |
< 1.0.2 |
1.0.2 |
pip install "mercurial>=1.0.2" |
| PyPI | mercurial |
< 1.0.2 |
1.0.2 |
pip install "mercurial>=1.0.2" |
Per OSV / GitHub Advisories (GHSA-v2gw-x5jf-pgwv, PYSEC-2026-666). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mercurial | mercurial | 1.0.1 |
Official sources
References
Links published by the sources. Open them with care.