mercurial@2.8 vulnerabilities

Fast scalable distributed SCM (revision control, version control) system

  • latest version

    7.0.2

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    16 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the mercurial package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Out-of-Bounds Write

    mercurial is a distributed SCM tool written in Python.

    Affected versions of this package are vulnerable to Out-of-Bounds Write. The mpatch_apply 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.

    How to fix Out-of-Bounds Write?

    Upgrade mercurial to version 4.6.1 or higher.

    [,4.6.1)
    • C
    Integer Overflow or Wraparound

    mercurial is a distributed SCM tool written in Python.

    Affected versions of this package are vulnerable to Integer Overflow or Wraparound. mpatch.c in Mercurial mishandles integer addition and subtraction.

    How to fix Integer Overflow or Wraparound?

    Upgrade mercurial to version 4.6.1 or higher.

    [,4.6.1)
    • C
    Arbitrary Code Execution

    mercurial is a distributed SCM tool written in Python.

    Affected versions of this package are vulnerable to Arbitrary Code Execution. 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.

    How to fix Arbitrary Code Execution?

    Upgrade mercurial to version 4.4.1 or higher.

    [,4.4.1)
    • H
    Improper Input Validation

    mercurial is a distributed SCM tool written in Python.

    Affected versions of this package are vulnerable to Improper Input Validation. Mercurial was not sanitizing hostnames passed to ssh, allowing shell injection attacks on clients by specifying a hostname starting with -oProxyCommand.

    How to fix Improper Input Validation?

    Upgrade mercurial to version 4.3 or higher.

    [,4.3)
    • H
    Access Restriction Bypass

    mercurial is a distributed SCM tool written in Python.

    Affected versions of this package are vulnerable to Access Restriction Bypass. Mercurial is vulnerable to a missing symlink check that can allow malicious repositories to modify files outside the repository.

    How to fix Access Restriction Bypass?

    Upgrade mercurial to version 4.3 or higher.

    [,4.3)
    • H
    Integer Overflow or Wraparound

    mercurial is a distributed SCM tool written in Python.

    Affected versions of this package are vulnerable to Integer Overflow or Wraparound. The mpatch_decode function in mpatch.c in Mercurial mishandles certain situations where there should be at least 12 bytes remaining after the current position in the patch data, but actually are not.

    How to fix Integer Overflow or Wraparound?

    Upgrade mercurial to version 4.6.1 or higher.

    [,4.6.1)
    • C
    Out-of-bounds Read

    mercurial is a distributed SCM tool written in Python.

    Affected versions of this package are vulnerable to Out-of-bounds Read. cext/manifest.c in Mercurial before 4.7.2 has an out-of-bounds read during parsing of a malformed manifest entry.

    How to fix Out-of-bounds Read?

    Upgrade mercurial to version 4.7.2 or higher.

    [,4.7.2)
    • H
    Arbitrary File Overwrite

    mercurial is a distributed SCM tool written in Python.

    Affected versions of this package are vulnerable to Arbitrary File Overwrite. It is possible to use symlinks and subrepositories to defeat Mercurial's path-checking logic and write files outside of a repository.

    How to fix Arbitrary File Overwrite?

    Upgrade mercurial to version 4.9 or higher.

    [,4.9)
    • H
    Arbitrary Code Execution

    mercurial Fast scalable distributed SCM (revision control, version control) system

    Affected versions of this package are vulnerable to Arbitrary code Execution. The hg serve --stdio command allows remote authenticated users to launch the Python debugger, and consequently execute arbitrary code, by using --debugger flag as a repository name.

    How to fix Arbitrary Code Execution?

    Upgrade mercurial to version 4.1.3 or higher.

    [,4.1.3)
    • C
    HTTP Permission Bypass

    Mercurial is a distributed SCM tool.

    Affected versions of this package are vulnerable to HTTP Permission Bypass, which may allow an attacker to perform writes on repositories that should be read-only, or reads on repositories that shouldn't allow read access.

    How to fix HTTP Permission Bypass?

    Upgrade mercurial to version 4.5.2 or higher.

    [,4.5.2)
    • H
    Arbitrary Code Execution

    mercurial is a Fast scalable distributed SCM (revision control, version control) system The convert extension in Mercurial before 3.8 might allow context-dependent attackers to execute arbitrary code via a crafted git repository name.

    [2.6.2,3.8.1)
    • H
    Arbitrary Code Execution

    mercurial is a Fast scalable distributed SCM (revision control, version control) system Mercurial before 3.7.3 allows remote attackers to execute arbitrary code via a crafted name when converting a Git repository.

    [2.7.0,3.7.3)
    • H
    Arbitrary Code Execution

    mercurial is a Fast scalable distributed SCM (revision control, version control) system Mercurial before 3.7.3 allows remote attackers to execute arbitrary code via a crafted git ext:: URL when cloning a subrepository.

    [2.7.0,3.7.3)
    • H
    Arbitrary Code Execution

    mercurial is a Fast scalable distributed SCM (revision control, version control) system mercurial has two bound-checking errors in binary delta decoding. Those errors allow malicious users to launch remote code execution attacks.

    [2.7.0,3.7.3)
    • H
    Arbitrary Command Execution

    mercurial is a Fast scalable distributed SCM (revision control, version control) system 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.

    [,3.2.4)