Every CVESearch/Get API key

CVE-2008-2942

Mercurial Directory traversal vulnerability

6.8 MediumFix available

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 80th percentile. Fixed in mercurial 1.0.2.

What does this mean?
Severity
6.8 MediumCVSS 2.0, NVD
Exploit chance
1.90%EPSS, 80th percentile
Exploitation
None knownNot on CISA’s or ENISA’s lists
Fixed in
1.0.2mercurial +5 more

Description

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%

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

What each source reports

NVD Score used6.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 ListNo 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-5263No 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-pgwvNo 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
OSVNo 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-2942No 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-pgwvNo 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-1No 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-666No 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

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.

References

Show 21 moreShow less
MoveEnter Open