ID CVE-2016-3630
Summary 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.
References
Vulnerable Configurations
  • Fedora 22
    cpe:2.3:o:fedoraproject:fedora:22
  • Fedora Project Fedora 23
    cpe:2.3:o:fedoraproject:fedora:23
  • openSUSE Leap 42.1
    cpe:2.3:o:opensuse:leap:42.1
  • Mercurial Mercurial 3.7.2
    cpe:2.3:a:mercurial:mercurial:3.7.2
  • Debian Linux 7.0
    cpe:2.3:o:debian:debian_linux:7.0
  • Debian Linux 8.0 (Jessie)
    cpe:2.3:o:debian:debian_linux:8.0
  • SUSE Linux Enterprise Debuginfo 11 Service Pack 4
    cpe:2.3:a:suse:linux_enterprise_debuginfo:11:sp4
  • cpe:2.3:a:suse:linux_enterprise_software_development_kit:11.0:sp4
    cpe:2.3:a:suse:linux_enterprise_software_development_kit:11.0:sp4
  • OpenSUSE 13.2
    cpe:2.3:o:opensuse:opensuse:13.2
  • SUSE Linux Enterprise Software Development Kit (SDK) 12
    cpe:2.3:o:suse:linux_enterprise_software_development_kit:12
  • SUSE Linux Enterprise Software Development Kit (SDK) 12 Service Pack 1
    cpe:2.3:o:suse:linux_enterprise_software_development_kit:12:sp1
CVSS
Base: 6.8 (as of 29-07-2016 - 08:43)
Impact:
Exploitability:
CWE CWE-19
CAPEC
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • XML Nested Payloads
    Applications often need to transform data in and out of the XML format by using an XML parser. It may be possible for an attacker to inject data that may have an adverse effect on the XML parser when it is being processed. By nesting XML data and causing this data to be continuously self-referential, an attacker can cause the XML parser to consume more resources while processing, causing excessive memory consumption and CPU utilization. An attacker's goal is to leverage parser failure to his or her advantage. In most cases this type of an attack will result in a denial of service due to an application becoming unstable, freezing, or crash. However it may be possible to cause a crash resulting in arbitrary code execution, leading to a jump from the data plane to the control plane [R.230.1].
  • XML Oversized Payloads
    Applications often need to transform data in and out of the XML format by using an XML parser. It may be possible for an attacker to inject data that may have an adverse effect on the XML parser when it is being processed. By supplying oversized payloads in input vectors that will be processed by the XML parser, an attacker can cause the XML parser to consume more resources while processing, causing excessive memory consumption and CPU utilization, and potentially cause execution of arbitrary code. An attacker's goal is to leverage parser failure to his or her advantage. In many cases this type of an attack will result in a denial of service due to an application becoming unstable, freezing, or crash. However it is possible to cause a crash resulting in arbitrary code execution, leading to a jump from the data plane to the control plane [R.231.1].
  • XML Client-Side Attack
    Client applications such as web browsers that process HTML data often need to transform data in and out of the XML format by using an XML parser. It may be possible for an attacker to inject data that may have an adverse effect on the XML parser when it is being processed. These adverse effects may include the parser crashing, consuming too much of a resource, executing too slowly, executing code supplied by an attacker, allowing usage of unintended system functionality, etc. An attacker's goal is to leverage parser failure to his or her advantage. In some cases it may be possible to jump from the data plane to the control plane via bad data being passed to an XML parser. [R.484.1]
  • XML Parser Attack
    Applications often need to transform data in and out of the XML format by using an XML parser. It may be possible for an attacker to inject data that may have an adverse effect on the XML parser when it is being processed. These adverse effects may include the parser crashing, consuming too much of a resource, executing too slowly, executing code supplied by an attacker, allowing usage of unintended system functionality, etc. An attacker's goal is to leverage parser failure to his or her advantage. In some cases it may be possible to jump from the data plane to the control plane via bad data being passed to an XML parser. [R.99.1]
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
nessus via4
  • NASL family FreeBSD Local Security Checks
    NASL id FREEBSD_PKG_E1085B15F60911E5A2300014A5A57822.NASL
    description Mercurial reports : CVE-2016-3630: Remote code execution in binary delta decoding CVE-2016-3068: Arbitrary code execution with Git subrepos CVE-2016-3069: Arbitrary code execution when converting Git repos
    last seen 2018-11-13
    modified 2018-11-10
    plugin id 90291
    published 2016-04-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=90291
    title FreeBSD : mercurial -- multiple vulnerabilities (e1085b15-f609-11e5-a230-0014a5a57822)
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2016-452.NASL
    description mercurial was updated to fix three security issues. These security issues were fixed : - CVE-2016-3069: Arbitrary code execution when converting Git repos (bsc#973176). - CVE-2016-3068: Arbitrary code execution with Git subrepos (bsc#973177). - CVE-2016-3630: Remote code execution in binary delta decoding (bsc#973175).
    last seen 2019-02-21
    modified 2016-10-13
    plugin id 90485
    published 2016-04-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=90485
    title openSUSE Security Update : mercurial (openSUSE-2016-452)
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2016-467.NASL
    description mercurial was updated to fix three security issues. These security issues were fixed : - CVE-2016-3069: Arbitrary code execution when converting Git repos (bsc#973176). - CVE-2016-3068: Arbitrary code execution with Git subrepos (bsc#973177). - CVE-2016-3630: Remote code execution in binary delta decoding (bsc#973175).
    last seen 2019-02-21
    modified 2016-10-13
    plugin id 90559
    published 2016-04-18
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=90559
    title openSUSE Security Update : mercurial (openSUSE-2016-467)
  • NASL family Slackware Local Security Checks
    NASL id SLACKWARE_SSA_2016-092-01.NASL
    description New mercurial packages are available for Slackware 13.0, 13.1, 13.37, 14.0, 14.1, and -current to fix security issues.
    last seen 2019-02-21
    modified 2016-10-19
    plugin id 90319
    published 2016-04-05
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=90319
    title Slackware 13.0 / 13.1 / 13.37 / 14.0 / 14.1 / current : mercurial (SSA:2016-092-01)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2016-B7F1F8E3BF.NASL
    description Security fix for CVE-2016-3630, CVE-2016-3068, CVE-2016-3069 and minor upgrade Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2016-10-18
    plugin id 90416
    published 2016-04-08
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=90416
    title Fedora 23 : mercurial-3.5.2-1.fc23 (2016-b7f1f8e3bf)
  • NASL family Amazon Linux Local Security Checks
    NASL id ALA_ALAS-2016-697.NASL
    description It was discovered that Mercurial failed to properly check Git sub-repository URLs. A Mercurial repository that includes a Git sub-repository with a specially crafted URL could cause Mercurial to execute arbitrary code. (CVE-2016-3068) 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. (CVE-2016-3630) It was discovered that the Mercurial convert extension failed to sanitize special characters in Git repository names. A Git repository with a specially crafted name could cause Mercurial to execute arbitrary code when the Git repository was converted to a Mercurial repository. (CVE-2016-3069)
    last seen 2019-02-21
    modified 2018-04-18
    plugin id 90866
    published 2016-05-04
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=90866
    title Amazon Linux AMI : mercurial (ALAS-2016-697)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201612-19.NASL
    description The remote host is affected by the vulnerability described in GLSA-201612-19 (Mercurial: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in Mercurial. Please review the CVE identifier and bug reports referenced for details. Impact : A remote attacker could possibly execute arbitrary code with the privileges of the process. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2016-12-07
    plugin id 95605
    published 2016-12-07
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=95605
    title GLSA-201612-19 : Mercurial: Multiple vulnerabilities
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2016-79604DDE9F.NASL
    description Security fix for CVE-2016-3630, CVE-2016-3068, CVE-2016-3069 and minor upgrade Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2016-10-18
    plugin id 90414
    published 2016-04-08
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=90414
    title Fedora 22 : mercurial-3.5.2-1.fc22 (2016-79604dde9f)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-3542.NASL
    description Several vulnerabilities have been discovered in Mercurial, a distributed version control system. The Common Vulnerabilities and Exposures project identifies the following issues : - CVE-2016-3068 Blake Burkhart discovered that Mercurial allows URLs for Git subrepositories that could result in arbitrary code execution on clone. - CVE-2016-3069 Blake Burkhart discovered that Mercurial allows arbitrary code execution when converting Git repositories with specially crafted names. - CVE-2016-3630 It was discovered that Mercurial does not properly perform bounds-checking in its binary delta decoder, which may be exploitable for remote code execution via clone, push or pull.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 90370
    published 2016-04-07
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=90370
    title Debian DSA-3542-1 : mercurial - security update
refmap via4
confirm
debian DSA-3542
fedora
  • FEDORA-2016-79604dde9f
  • FEDORA-2016-b7f1f8e3bf
gentoo GLSA-201612-19
suse
  • SUSE-SU-2016:1010
  • SUSE-SU-2016:1011
  • openSUSE-SU-2016:1016
  • openSUSE-SU-2016:1073
Last major update 03-10-2016 - 22:08
Published 13-04-2016 - 12:59
Last modified 30-10-2018 - 12:27
Back to Top