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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
CVE-2008-2942 NameCVE-2008-2942 DescriptionDirectory 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. SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) Debian Bugs488628โฆ
CVE-2008-2942
| Name | 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| Debian Bugs | 488628 |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| mercurial (PTS) | bullseye | 5.6.1-4 | fixed |
| bullseye (security) | 5.6.1-4+deb11u1 | fixed | |
| bookworm, bookworm (security) | 6.3.2-1+deb12u1 | fixed | |
| trixie | 7.0.1-2 | fixed | |
| forky | 7.2-5 | fixed | |
| sid | 7.2.2-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| mercurial | source | etch | (not affected) | |||
| mercurial | source | (unstable) | 1.0.1-2 | low | 488628 |
Notes
[etch] - mercurial <not-affected> (Vulnerable functionality not present)
Apply commands
[etch] - mercurial <not-affected> (Vulnerable functionality not present)
OS impact
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 1.0.1-2 |
| sid | Fixed | 1.0.1-2 |
| forky | Fixed | 1.0.1-2 |
| bullseye | Fixed | 1.0.1-2 |
| bookworm | Fixed | 1.0.1-2 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| PyPI | mercurial | <1.0.2 | 1.0.2 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2008-2942
- https://exchange.xforce.ibmcloud.com/vulnerabilities/43551
- https://github.com/dscho/hg
- https://issues.rpath.com/browse/RPL-2633
- http://lists.opensuse.org/opensuse-security-announce/2008-07/msg00006.html
- http://secunia.com/advisories/31108
- http://secunia.com/advisories/31110
- http://secunia.com/advisories/31167
- http://security.gentoo.org/glsa/glsa-200807-09.xml
- http://wiki.rpath.com/Advisories:rPSA-2008-0211
- http://www.openwall.com/lists/oss-security/2008/06/30/1
- http://www.openwall.com/lists/oss-security/2008/07/01/1
- http://www.securityfocus.com/archive/1/493881/100/0/threaded
- http://www.securityfocus.com/bid/30072
- http://www.selenic.com/hg/rev/87c704ac92d4
- https://security-tracker.debian.org/tracker/CVE-2008-2942
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.