Advisory

PYSEC-2026-666

Also known as: CVE-2008-2942, GHSA-v2gw-x5jf-pgwv

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

Not rated by the source.

Dates

Published
2026-07-02 14:13 UTC
Modified
2026-07-06 08:00 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: PyPA Advisory Database · CC BY 4.0

Sources & licences