Every CVE Search/ Get API key

CVE-2008-2942

Mercurial Directory traversal vulnerability

6.8 MediumFix available

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.

Exploit likelihood

1.90%Down 0.8 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 6.8

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.

Record
CVE-2008-2942
CVSS 2.0
6.8 MediumAV:N/AC:M/Au:N/C:P/I:P/A:P
Weakness
CWE-22
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2008-2942
Updated
2026-11-02
EUVDEUVD-2022-5263 No score

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.

Record
EUVD-2022-5263
Updated
2026-11-03
GitHub AdvisoriesGHSA-v2gw-x5jf-pgwv No score

Mercurial Directory traversal vulnerability

Directory traversal vulnerability in patch.py in Mercurial before 1.0.2 allows user-assisted attackers to modify arbitrary files via ".." (dot dot) sequences in a patch file.

Record
GHSA-v2gw-x5jf-pgwv
Weakness
CWE-22
Updated
2026-11-02
OSV No score

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.

Record
CVE-2008-2942
Updated
2026-11-02
OSVDEBIAN-CVE-2008-2942 No score

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.

Record
DEBIAN-CVE-2008-2942
Updated
2026-11-02
OSVGHSA-v2gw-x5jf-pgwv No score

Mercurial Directory traversal vulnerability

Directory traversal vulnerability in patch.py in Mercurial before 1.0.2 allows user-assisted attackers to modify arbitrary files via ".." (dot dot) sequences in a patch file.

Record
GHSA-v2gw-x5jf-pgwv
Weakness
CWE-22
Updated
2026-11-02
OSVopenSUSE-SU-2024:10586-1 No score

mercurial-5.9.1-2.1 on GA media

These are all security issues fixed in the mercurial-5.9.1-2.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:10586-1
Updated
2026-11-02
OSVPYSEC-2026-666 No score

Mercurial Directory traversal vulnerability

Directory traversal vulnerability in patch.py in Mercurial before 1.0.2 allows user-assisted attackers to modify arbitrary files via ".." (dot dot) sequences in a patch file.

Record
PYSEC-2026-666
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
mercurial
PyPI
before 1.0.2
1.0.2
mercurial
Debian:12
before 1.0.1-2
1.0.1-2
mercurial
Debian:13
before 1.0.1-2
1.0.1-2
mercurial
Debian:14
before 1.0.1-2
1.0.1-2
mercurial
PyPI
before 1.0.2, plus listed versions
0.8.10.90.9.10.9.20.9.3
Show 4 moreShow less
0.9.40.9.51.01.0.1
1.0.2
mercurial
openSUSE:Tumbleweed
From an advisory covering 9 CVEs
before 5.9.1-2.1
5.9.1-2.1

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2008-2942 is a medium vulnerability (CVSS 6.8) in Mercurial, published June 30, 2008. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.90%, the 79th percentile. Fixed in mercurial 1.0.2.

References

Show 21 moreShow less
MoveEnter Open