CWE
78
Advisory Published
CVE Published
Advisory Published
Updated

CVE-2017-1000116: OS Command Injection

First published: Wed Aug 09 2017(Updated: )

Mercurial prior to 4.3 did not adequately sanitize hostnames passed to ssh, leading to possible shell-injection attacks.

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
redhat/mercurial<4.3
4.3
redhat/mercurial<4.2.3
4.2.3
pip/mercurial<4.3
4.3
Mercurial<4.3
Debian Linux=8.0
Debian Linux=9.0
Red Hat Enterprise Linux Desktop=7.0
Red Hat Enterprise Linux Server=7.0
Red Hat Enterprise Linux Server=7.4
Red Hat Enterprise Linux Server=7.6
Red Hat Enterprise Linux Server=7.4
Red Hat Enterprise Linux Server=7.5
Red Hat Enterprise Linux Server=7.6
Red Hat Enterprise Linux Server=7.4
Red Hat Enterprise Linux Server=7.6
Red Hat Enterprise Linux Workstation=7.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2017-1000116?

    CVE-2017-1000116 has a medium severity rating due to the potential for shell-injection attacks.

  • How do I fix CVE-2017-1000116?

    To resolve CVE-2017-1000116, upgrade Mercurial to version 4.3 or later.

  • Which versions of Mercurial are affected by CVE-2017-1000116?

    CVE-2017-1000116 affects Mercurial versions prior to 4.3.

  • Can CVE-2017-1000116 be exploited through subrepositories?

    Yes, CVE-2017-1000116 can be exploited through malicious ssh URL inputs in the .hgsub file.

  • Is there a workaround for CVE-2017-1000116?

    A workaround for CVE-2017-1000116 includes avoiding the use of untrusted .hgsub files until an upgrade can be performed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203