Input validation error in Mercurial - CVE-2015-7545

 

Input validation error in Mercurial - CVE-2015-7545

Published: April 13, 2016 / Updated: July 28, 2020


Vulnerability identifier: #VU32315
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2015-7545
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

The (1) git-remote-ext and (2) unspecified other remote helper programs in Git before 2.3.10, 2.4.x before 2.4.10, 2.5.x before 2.5.4, and 2.6.x before 2.6.1 do not properly restrict the allowed protocols, which might allow remote attackers to execute arbitrary code via a URL in a (a) .gitmodules file or (b) unknown other sources in a submodule.


Affected software

Mercurial
Amazon Linux AMI
Gentoo Linux
Fedora
Slackware Linux
mercurial (Alpine package)
git (Alpine package)
git

How to mitigate CVE-2015-7545

Install update from vendor's website.

Mercurial - addressed in versions 2.5.4, 2.6.1
mercurial (Alpine package) - update to 3.4-r1
git (Alpine package) - update to 2.4.1-r1
git - addressed in versions 1.8.2.1-2.el5, 2.1.0-6.fc21, 2.4.3-7.fc22, 2.5.0-2.fc23

External References

Related Security Bulletins