CVE-2008-2942: Path Traversal

Published Jun 30, 2008
·
Updated

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.

Other sources

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.

Affected Software

2 affected componentsFixes available
pip/mercurial<1.0.2
1.0.2
Mercurial Mercurial=1.0.1

Event History

Jun 30, 2008
CVE Published
via MITRE·08:00 PM
Data Sourced
via MITRE·08:00 PM
Description
May 1, 2022
Advisory Published
11:55 PM

Frequently Asked Questions

1

What is the severity of CVE-2008-2942?

CVE-2008-2942 has a medium severity level due to the potential for unauthorized file modifications.

2

How do I fix CVE-2008-2942?

To fix CVE-2008-2942, upgrade Mercurial to version 1.0.2 or later.

3

What causes the vulnerability CVE-2008-2942?

CVE-2008-2942 is caused by a directory traversal vulnerability in the patch.py file of Mercurial prior to version 1.0.2.

4

What versions of Mercurial are affected by CVE-2008-2942?

CVE-2008-2942 affects Mercurial version 1.0.1 and earlier.

5

Can exploiting CVE-2008-2942 lead to further attacks?

Yes, exploiting CVE-2008-2942 could potentially allow attackers to compromise other files on the system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203