Skip to content
OpenAdvisories
Medium CVE-2008-2942 EUVD-2022-5263GHSA-v2gw-x5jf-pgwvPYSEC-2026-666

Mercurial Directory traversal vulnerability

Published Jun 30, 2008 · Updated Aug 7, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 mercurial 1.0.1-2 —
Debian 13 mercurial 1.0.1-2 —
Debian 12 mercurial 1.0.1-2 —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed mercurial 5.9.1-2.1 openSUSE-SU-2024:10586-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI mercurial < 1.0.2 1.0.2 GHSA-v2gw-x5jf-pgwv

Advisories 1

References