Skip to content

← Public intelligence

PyPI package

mercurial

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

18 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. Critical, CVSS 9.3PyPIAmendedPublished

    JGit Improper Input Validation vulnerability

    CVE-2014-9390 · GHSA-6vvc-c2m3-cjf3

    Affected
    • PyPI mercurial < 3.2.3
    Fixed in
    3.2.3· Vendor fix available
    Issue
    Git before 1.8.5.6, 1.9.x before 1.9.5, 2.0.x before 2.0.5, 2.1.x before 2.1.4, and 2.2.x before 2.2.1 on Windows and OS X; Mercurial before 3.2.3 on Windows and OS X; Apple Xcode before 6.2 beta 3; mine; libgit2; Egit; and JGit allow remote Git servers to execute arbitrary commands via a tree containing a crafted .git/config file with (1) an ignorable Unicode codepoint, (2) a git~1/config representation, or (3) mixed case that is improperly handled on a case-insensitive filesystem.

    Recommended action: Upgrade to 3.2.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  2. High, CVSS 8.7PyPIAmendedPublished

    Mercurial vulnerable to arbitrary code execution when converting Git repos

    CVE-2016-3105 · GHSA-49cw-434h-qc57

    Affected
    • PyPI mercurial < 3.8
    Fixed in
    3.8· Vendor fix available
    Issue
    The convert extension in Mercurial before 3.8 might allow context-dependent attackers to execute arbitrary code via a crafted git repository name.

    Recommended action: Upgrade to 3.8 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  3. High, CVSS 8.7PyPIAmendedPublished

    Mercurial arbitrary code execution vulnerability

    CVE-2016-3630 · GHSA-9vjf-jjcq-3gh7

    Affected
    • PyPI mercurial < 3.7.3
    Fixed in
    3.7.3· Vendor fix available
    Issue
    The binary delta decoder in Mercurial before 3.7.3 allows remote attackers to execute arbitrary code via a (1) clone, (2) push, or (3) pull command, related to (a) a list sizing rounding error and (b) short records.

    Recommended action: Upgrade to 3.7.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  4. High, CVSS 8.7PyPIAmendedPublished

    Mercurial vulnerable to arbitrary code execution via a crafted name when converting a Git repository

    CVE-2016-3069 · GHSA-8fm8-7365-5rh2

    Affected
    • PyPI mercurial < 3.7.3
    Fixed in
    3.7.3· Vendor fix available
    Issue
    Mercurial before 3.7.3 allows remote attackers to execute arbitrary code via a crafted name when converting a Git repository.

    Recommended action: Upgrade to 3.7.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  5. High, CVSS 8.7PyPIAmendedPublished

    Mercurial arbitrary code execution via a crafted git ext:: URL

    CVE-2016-3068 · GHSA-j7c2-rqm3-c97m

    Affected
    • PyPI mercurial < 3.7.3
    Fixed in
    3.7.3· Vendor fix available
    Issue
    Mercurial before 3.7.3 allows remote attackers to execute arbitrary code via a crafted git ext:: URL when cloning a subrepository.

    Recommended action: Upgrade to 3.7.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  6. Critical, CVSS 9.3PyPIAmendedPublished

    Mercurial vulnerable to arbitrary command execution via a crafted repository name in a clone command

    CVE-2014-9462 · GHSA-3pmw-h7j4-rf54

    Affected
    • PyPI mercurial < 3.2.4
    Fixed in
    3.2.4· Vendor fix available
    Issue
    The validaterepo function in sshpeer in Mercurial before 3.2.4 allows remote attackers to execute arbitrary commands via a crafted repository name in a clone command.

    Recommended action: Upgrade to 3.2.4 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  7. High, CVSS 8.8PyPIAmendedPublished

    Mercurial Out-of-bounds Read vulnerability

    CVE-2018-17983 · GHSA-p575-cf9h-wv42

    Affected
    • PyPI mercurial < 4.7.2
    Fixed in
    4.7.2· Vendor fix available
    Issue
    cext/manifest.c in Mercurial before 4.7.2 has an out-of-bounds read during parsing of a malformed manifest entry.

    Recommended action: Upgrade to 4.7.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  8. High, CVSS 8.7PyPIAmendedPublished

    Mercurial missing symlink check

    CVE-2017-1000115 · GHSA-hvr9-wr9p-grgr

    Affected
    • PyPI mercurial < 4.3.1
    Fixed in
    4.3.1· Vendor fix available
    Issue
    Mercurial prior to version 4.3 is vulnerable to a missing symlink check that can malicious repositories to modify files outside the repository

    Recommended action: Upgrade to 4.3.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  9. Critical, CVSS 9.3PyPIAmendedPublished

    Mercurial is vulnerable to shell injection attack

    CVE-2017-1000116 · GHSA-3qmg-c9vc-r47j

    Affected
    • PyPI mercurial < 4.3
    Fixed in
    4.3· Vendor fix available
    Issue
    Mercurial prior to 4.3 did not adequately sanitize hostnames passed to ssh, leading to possible shell-injection attacks.

    Recommended action: Upgrade to 4.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  10. Critical, CVSS 9.3PyPIAmendedPublished

    Mercurial vulnerable to arbitrary code injection

    CVE-2017-17458 · GHSA-6v56-cpg6-3rpx

    Affected
    • PyPI mercurial < 4.4.1
    Fixed in
    4.4.1· Vendor fix available
    Issue
    In Mercurial before 4.4.1, it is possible that a specially malformed repository can cause Git subrepositories to run arbitrary code in the form of a .git/hooks/post-update script checked into the repository. Typical use of Mercurial prevents construction of such repositories, but they can be created programmatically.

    Recommended action: Upgrade to 4.4.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  11. High, CVSS 8.7PyPIAmendedPublished

    Mercurial Improper Input Validation vulnerability

    CVE-2018-13346 · GHSA-9xv4-r2hf-26gh

    Affected
    • PyPI mercurial < 4.6.1
    Fixed in
    4.6.1· Vendor fix available
    Issue
    The mpatchapply function in mpatch.c in Mercurial before 4.6.1 incorrectly proceeds in cases where the fragment start is past the end of the original data, aka OVE-20180430-0004.

    Recommended action: Upgrade to 4.6.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  12. Critical, CVSS 9.3PyPIAmendedPublished

    Mercurial Incorrect Access Control vulnerability

    CVE-2018-1000132 · GHSA-4mr4-7vjv-9hm6

    Affected
    • PyPI mercurial < 4.5.1
    Fixed in
    4.5.1· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 4.5.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  13. High, CVSS 8.7PyPIAmendedPublished

    Mercurial Improper Input Validation vulnerability

    CVE-2018-13348 · GHSA-3v62-ww8w-758m

    Affected
    • PyPI mercurial < 4.6.1
    Fixed in
    4.6.1· Vendor fix available
    Issue
    The mpatchdecode function in mpatch.c in Mercurial before 4.6.1 mishandles certain situations where there should be at least 12 bytes remaining after the current position in the patch data, but actually are not, aka OVE-20180430-0001.

    Recommended action: Upgrade to 4.6.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  14. Critical, CVSS 9.3PyPIAmendedPublished

    Mercurial mishandles integer addition and subtraction

    CVE-2018-13347 · GHSA-3mjj-mr4f-qxmx

    Affected
    • PyPI mercurial < 4.6.1
    Fixed in
    4.6.1· Vendor fix available
    Issue
    mpatch.c in Mercurial before 4.6.1 mishandles integer addition and subtraction, aka OVE-20180430-0002.

    Recommended action: Upgrade to 4.6.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  15. UnratedPyPIAmendedPublished

    Mercurial Directory traversal vulnerability

    CVE-2008-2942 · GHSA-v2gw-x5jf-pgwv

    Affected
    • PyPI mercurial < 1.0.2
    Fixed in
    1.0.2· Vendor fix available
    Issue
    Directory traversal vulnerability in patch.py in Mercurial before 1.0.2 allows user-assisted attackers to modify arbitrary files via ".." (dot dot) sequences in a patch file.

    Recommended action: Upgrade to 1.0.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  16. Medium, CVSS 5.9PyPIAmendedPublished

    Mercurial Improper Certificate Validation vulnerability

    CVE-2010-4237 · GHSA-7gf7-7wx4-mxmw

    Affected
    • PyPI mercurial < 1.6.4
    Fixed in
    1.6.4· Vendor fix available
    Issue
    Mercurial before 1.6.4 fails to verify the Common Name field of SSL certificates which allows remote attackers who acquire a certificate signed by a Certificate Authority to perform a man-in-the-middle attack.

    Recommended action: Upgrade to 1.6.4 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  17. Medium, CVSS 5.9PyPIAmendedPublished

    Mercurial Path Traversal/Link Following vulnerability

    CVE-2019-3902 · GHSA-mq66-vcfc-8246

    Affected
    • PyPI mercurial < 4.9
    Fixed in
    4.9· Vendor fix available
    Issue
    A flaw was found in Mercurial before 4.9. It was possible to use symlinks and subrepositories to defeat Mercurial's path-checking logic and write files outside a repository.

    Recommended action: Upgrade to 4.9 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  18. High, CVSS 8.7PyPIAmendedPublished

    Mercurial has Incorrect Permission Assignment for Critical Resource

    CVE-2017-9462 · GHSA-ghjx-3jg5-h6r2

    Affected
    • PyPI mercurial < 4.1.3
    Fixed in
    4.1.3· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 4.1.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →