CVE-2018-1000132: Critical severity mercurial vulnerability

Published Mar 8, 2018
·
Updated

Mercurial version 4.5 and earlier contains a Incorrect Access Control (CWE-285) vulnerability in Protocol server that can result in Unauthorized data access. This attack appear to be exploitable via network connectivity. This vulnerability appears to have been fixed in 4.5.1.

Other sources

Quote from release notes:

All versions of Mercurial prior to 4.5.2 have vulnerabilities in the HTTP server that allow permissions bypass to:

Perform writes on repositories that should be read-only Perform reads on repositories that shouldn't allow read access

The nature of the vulnerabilities is:

Wire protocol commands that didn't explicitly declare their permissions had no permissions checking done. The web.{allow-pull, allow-push, denyread, etc} config options governing access control were never consulted when running these commands. This allowed permissions bypass for impacted commands.

The batch wire protocol command did not list its permission requirements nor did it enforce permissions on individual sub-commands.

The implication of these vulnerabilities is that no permissions checking was performed on commands and this could lead to accessing data that web. config options were supposed to prevent access to or modifying data (via wire protocol commands that can mutate data) without authorization. A Mercurial HTTP server in its default configuration is supposed to be read-only. However, a well-crafted batch command could invoke commands that perform writes.

Upstream patch:

https://www.mercurial-scm.org/repo/hg/rev/2ecb0fc535b1

References:

https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial4.5.1.2F4.5.2.282018-03-06.29

Red Hat

Affected Software

5 affected componentsFixes available
redhat/mercurial<4.5.2
4.5.2
pip/mercurial<4.5.1
4.5.1
Mercurial Mercurial<4.5.1
Debian Debian Linux=7.0
Debian Debian Linux=8.0

Event History

Mar 14, 2018
CVE Published
via MITRE·01:00 PM
Data Sourced
via MITRE·01:00 PM
Description
May 13, 2022
Advisory Published
via GitHub·01:24 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2018-1000132?

CVE-2018-1000132 is a vulnerability in Mercurial version 4.5 and earlier that allows unauthorized data access through the protocol server.

2

How severe is CVE-2018-1000132?

CVE-2018-1000132 has a severity rating of 9.1 (critical).

3

How can I exploit CVE-2018-1000132?

CVE-2018-1000132 can be exploited through network connectivity.

4

How can I fix CVE-2018-1000132?

CVE-2018-1000132 has been fixed in version 4.5.1 of Mercurial, so updating to 4.5.1 or later will resolve the vulnerability.

5

Where can I find more information about CVE-2018-1000132?

You can find more information about CVE-2018-1000132 at the following references: [Link 1](https://access.redhat.com/errata/RHSA-2019:2276), [Link 2](https://lists.debian.org/debian-lts-announce/2018/03/msg00034.html), [Link 3](https://lists.debian.org/debian-lts-announce/2018/07/msg00005.html).

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203