Bug 1459482 (CVE-2017-9462)

Summary: CVE-2017-9462 mercurial: Python debugger accessible to authorized users
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: mads, ndbecker2, pstodulk
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: mercurial 4.1.3 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the way "hg serve --stdio" command in Mercurial handled command-line options. A remote, authenticated attacker could use this flaw to execute arbitrary code on the Mercurial server by using specially crafted command-line options.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:14:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1459485, 1460964, 1460965, 1460966, 1460967    
Bug Blocks: 1459488    

Description Adam Mariš 2017-06-07 09:23:41 UTC
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.

Reference:

https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.1.3_.282017-4-18.29

Upstream patch:

https://www.mercurial-scm.org/repo/hg/rev/77eaf9539499

Comment 1 Adam Mariš 2017-06-07 09:24:10 UTC
Created mercurial tracking bugs for this issue:

Affects: fedora-all [bug 1459485]

Comment 9 errata-xmlrpc 2017-06-27 07:31:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6
  Red Hat Enterprise Linux 7

Via RHSA-2017:1576 https://access.redhat.com/errata/RHSA-2017:1576