Advisory

GHSA-6v56-cpg6-3rpx

Also known as: CVE-2017-17458, PYSEC-2017-90

Summary

Mercurial vulnerable to arbitrary code injection

Details

In Mercurial before 4.4.1, it is possible that a specially malformed repository can cause Git subrepositories to run arbitrary code in the form of a .git/hooks/post-update script checked into the repository. Typical use of Mercurial prevents construction of such repositories, but they can be created programmatically.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-05-13 01:24 UTC
Modified
2024-09-25 18:03 UTC

Affected packages and fixes

mercurial

PyPI · All systems

Affected

  • introduced 0, fixed 4.4.1 (ecosystem)

Fixed versions

4.4.1

Fix

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

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