CVE-2017-9462
published 2017-06-06CVE-2017-9462: In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and consequently execute arbitrary code, by…
high8.8CVSS 3.1
AVNACLPRLUINSUCHIHAH
EXPLOIT
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.
Affected
24 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | mercurial | < mercurial 4.3.1-1 (bookworm) | mercurial 4.3.1-1 (bookworm) |
| mercurial | mercurial | < 4.1.3 | 4.1.3 |
| mercurial | mercurial | >= 0 < 4.3.1-1 | 4.3.1-1 |
| mercurial | mercurial | >= 0 < 4.3.1-1 | 4.3.1-1 |
| mercurial | mercurial | >= 0 < 4.3.1-1 | 4.3.1-1 |
| mercurial | mercurial | >= 0 < 4.3.1-1 | 4.3.1-1 |
| mercurial | mercurial | >= 0 < 4.1.3 | 4.1.3 |
| redhat | enterprise_linux_desktop | — | — |
| redhat | enterprise_linux_desktop | — | — |
| redhat | enterprise_linux_server | — | — |
| redhat | enterprise_linux_server | — | — |
| redhat | enterprise_linux_server_aus | — | — |
| redhat | enterprise_linux_server_aus | — | — |
| redhat | enterprise_linux_server_aus | — | — |
| redhat | enterprise_linux_server_eus | — | — |
| redhat | enterprise_linux_server_eus | — | — |
| redhat | enterprise_linux_server_eus | — | — |
| redhat | enterprise_linux_server_eus | — | — |
| redhat | enterprise_linux_server_tus | — | — |
| redhat | enterprise_linux_server_tus | — | — |
| redhat | enterprise_linux_workstation | — | — |
| redhat | enterprise_linux_workstation | — | — |
CVSS provenance
nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv8.8HIGH
GHSA
Mercurial has Incorrect Permission Assignment for Critical Resource
ghsa·2018-07-13
CVE-2017-9462 [HIGH] CWE-732 Mercurial has Incorrect Permission Assignment for Critical Resource
Mercurial has Incorrect Permission Assignment for Critical Resource
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.
OSV
Mercurial has Incorrect Permission Assignment for Critical Resource
osv·2018-07-13
CVE-2017-9462 [HIGH] Mercurial has Incorrect Permission Assignment for Critical Resource
Mercurial has Incorrect Permission Assignment for Critical Resource
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.
OSV
CVE-2017-9462: In Mercurial before 4
osv·2017-06-06·CVSS 8.8
CVE-2017-9462 [HIGH] CVE-2017-9462: In Mercurial before 4
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.
Red Hat
mercurial: Python debugger accessible to authorized users
vendor_redhat·2017-04-18·CVSS 8.8
CVE-2017-9462 [HIGH] CWE-284 mercurial: Python debugger accessible to authorized users
mercurial: Python debugger accessible to authorized users
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.
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.
Debian
CVE-2017-9462: mercurial - In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users ...
vendor_debian·2017·CVSS 8.8
CVE-2017-9462 [HIGH] CVE-2017-9462: mercurial - In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users ...
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.
Scope: local
bookworm: resolved (fixed in 4.3.1-1)
bullseye: resolved (fixed in 4.3.1-1)
forky: resolved (fixed in 4.3.1-1)
sid: resolved (fixed in 4.3.1-1)
trixie: resolved (fixed in 4.3.1-1)
No detection rules found.
Bugzilla
CVE-2017-9462 mercurial: Python debugger accessible to authorized users
bugzilla·2017-06-07·CVSS 8.8
CVE-2017-9462 [HIGH] CVE-2017-9462 mercurial: Python debugger accessible to authorized users
CVE-2017-9462 mercurial: Python debugger accessible to authorized users
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
Discussion:
Created mercurial tracking bugs for this issue:
Affects: fedora-all [bug 1459485]
---
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
Bugzilla
CVE-2017-9462 mercurial: Python debugger accessible to authorized users [fedora-all]
bugzilla·2017-06-07·CVSS 8.8
CVE-2017-9462 [HIGH] CVE-2017-9462 mercurial: Python debugger accessible to authorized users [fedora-all]
CVE-2017-9462 mercurial: Python debugger accessible to authorized users [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported v
http://www.debian.org/security/2017/dsa-3963http://www.securityfocus.com/bid/99123https://access.redhat.com/errata/RHSA-2017:1576https://bugs.debian.org/861243https://lists.debian.org/debian-lts-announce/2018/07/msg00005.htmlhttps://security.gentoo.org/glsa/201709-18https://www.mercurial-scm.org/repo/hg/rev/77eaf9539499https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.1.3_.282017-4-18.29http://www.debian.org/security/2017/dsa-3963http://www.securityfocus.com/bid/99123https://access.redhat.com/errata/RHSA-2017:1576https://bugs.debian.org/861243https://lists.debian.org/debian-lts-announce/2018/07/msg00005.htmlhttps://security.gentoo.org/glsa/201709-18https://www.mercurial-scm.org/repo/hg/rev/77eaf9539499https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.1.3_.282017-4-18.29
2017-06-06
Published