Advisory

GHSA-ghjx-3jg5-h6r2

Also known as: CVE-2017-9462, PYSEC-2017-91

Summary

Mercurial has Incorrect Permission Assignment for Critical Resource

Details

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and consequently execute arbitrary code, by using --debugger as a repository name.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2018-07-13 15:17 UTC
Modified
2024-10-01 19:35 UTC

Affected packages and fixes

mercurial

PyPI · All systems

Affected

  • introduced 0, fixed 4.1.3 (ecosystem)

Fixed versions

4.1.3

Fix

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

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