Live threats

All CVEs / Mercurial

CVE-2008-2942Mercurial

Medium 6.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mercurial.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
mercurialmercurial1.0.1

Official sources

References

Links published by the sources. Open them with care.