CVE-2008-2942

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.

Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
1.901%
chance of exploitation in the next 30 days
higher than 80% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2008-06-30Published by the CNA20:00 UTC
  2. 2022-05-01GitHub advisory published (GHSA-v2gw-x5jf-pgwv)5053 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-v2gw-x5jf-pgwv, affected packages:

PackageVulnerable versionsFixed in
PyPI mercurialbefore 1.0.21.0.2

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
mercurial mercurial1.0.1no fix listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources