Advisory

GHSA-v2gw-x5jf-pgwv

Also known as: CVE-2008-2942, PYSEC-2026-666

Summary

Mercurial Directory traversal vulnerability

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-05-01 23:55 UTC
Modified
2026-07-06 08:11 UTC

Affected packages and fixes

mercurial

PyPI · All systems

Affected

  • introduced 0, fixed 1.0.2 (ecosystem)

Fixed versions

1.0.2

Fix

  • Fixed version 1.0.2
    pip install --upgrade mercurial==1.0.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences