CVE-2017-9462: Mercurial has Incorrect Permission Assignment for Critical Resource

CVE-2017-9462 · Severity: low · CVSS 3.1 · Published 2017-06-06

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.

Technologies: mercurial (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2017-9462 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2017-9462 being exploited in the wild.
How severe is CVE-2017-9462?
Low severity, with a CVSS score of 3.1, published 6 June 2017.
Which products and versions are affected?
mercurial (PyPI) ECOSYSTEM:introduced=0,fixed=4.1.3.
Is there a fix for CVE-2017-9462?
Yes. mercurial (PyPI): upgrade to 4.1.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2017-9462?
Check whether you run mercurial (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • mercurial (PyPI): upgrade to 4.1.3 or later
    pip install "mercurial>=4.1.3"

Affected products

  • mercurial (PyPI) ECOSYSTEM:introduced=0,fixed=4.1.3

Identifiers

  • CVE-2017-9462
  • GHSA-ghjx-3jg5-h6r2
  • PYSEC-2017-91

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.