Mercurial vulnerabilities
20 vulnerabilities
Known vulnerabilities in Mercurial products, newest first, with CVSS severity, EPSS, KEV listings and ransomware use, across 2 products.
Products
2RoutineCVE-2025-2361mercurial · scm +17 moreMercurial SCM Web Interface cross site scriptingA vulnerability was found in Mercurial SCM 4.5.3/71.19.145.211. It has been declared as problematic. This vulnerability affects unknown code of the component Web Interface. The manipulation of the argument cmd leads to cross site scripting. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.CVSS5.3MediumEPSS0.52%PrioritiseCVE-2014-9390apple · xcode +18 moreapple xcodeGit 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 all versions before 08-12-2014; libgit2 all versions up to 0.21.2; Egit all versions before 08-12-2014; and JGit all versions before 08-12-2014 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.CVSS9.8CriticalEPSS88.81%RoutineCVE-2010-4237mercurial +2 moremercurial mercurialMercurial 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.CVSS5.9MediumEPSS0.81%RoutineCVE-2019-3902the mercurial project · mercurial +14 morethe mercurial project mercurialA 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.CVSS5.9MediumEPSS1.36%PrioritiseCVE-2018-17983mercurial +5 moremercurial mercurialcext/manifest.c in Mercurial before 4.7.2 has an out-of-bounds read during parsing of a malformed manifest entry.CVSS9.1CriticalEPSS2.01%PrioritiseCVE-2018-13348mercurial +3 moremercurial mercurialThe mpatch_decode 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.CVSS7.5HighEPSS2.15%PrioritiseCVE-2018-13347mercurial +3 moremercurial mercurialmpatch.c in Mercurial before 4.6.1 mishandles integer addition and subtraction, aka OVE-20180430-0002.CVSS9.8CriticalEPSS2.72%PrioritiseCVE-2018-13346mercurial +3 moremercurial mercurialThe 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, aka OVE-20180430-0004.CVSS7.5HighEPSS2.37%PrioritiseCVE-2018-1000132debian · debian_linux +6 moredebian debian_linuxMercurial 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.CVSS9.1CriticalEPSS2.67%PrioritiseCVE-2017-17458debian · debian_linux +9 moredebian debian_linuxIn 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.CVSS10.0CriticalEPSS6.39%PrioritiseCVE-2017-1000116debian · debian_linux +11 moredebian debian_linuxMercurial prior to 4.3 did not adequately sanitize hostnames passed to ssh, leading to possible shell-injection attacks.CVSS10.0CriticalEPSS6.54%PrioritiseCVE-2017-1000115debian · debian_linux +11 moredebian debian_linuxMercurial prior to version 4.3 is vulnerable to a missing symlink check that can malicious repositories to modify files outside the repositoryCVSS7.5HighEPSS4.95%PrioritiseCVE-2017-9462debian · debian_linux +18 moredebian debian_linuxIn 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.CVSS9.0CriticalEPSS21.68%RoutineCVE-2016-3105debian · debian_linux +8 moredebian debian_linuxThe convert extension in Mercurial before 3.8 might allow context-dependent attackers to execute arbitrary code via a crafted git repository name.CVSS8.8HighEPSS2.75%RoutineCVE-2016-3630debian · debian_linux +9 moredebian debian_linuxThe 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.CVSS8.8HighEPSS4.85%RoutineCVE-2016-3069debian · debian_linux +16 moredebian debian_linuxMercurial before 3.7.3 allows remote attackers to execute arbitrary code via a crafted name when converting a Git repository.CVSS8.8HighEPSS4.95%RoutineCVE-2016-3068debian · debian_linux +16 moredebian debian_linuxMercurial before 3.7.3 allows remote attackers to execute arbitrary code via a crafted git ext:: URL when cloning a subrepository.CVSS8.8HighEPSS5.41%PrioritiseCVE-2014-9462mercurial +6 moremercurial mercurialThe _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.CVSS7.5HighEPSS4.17%RoutineCVE-2008-4297mercurial +1 moremercurial mercurialMercurial before 1.0.2 does not enforce the allowpull permission setting for a pull operation from hgweb, which allows remote attackers to read arbitrary files from a repository via an "hg pull" request.CVSS5.0MediumEPSS2.70%RoutineCVE-2008-2942mercurial +2 moremercurial mercurialDirectory traversal vulnerability in patch.py in Mercurial 1.0.1 allows user-assisted attackers to modify arbitrary files via ".." (dot dot) sequences in a patch file.CVSS6.8MediumEPSS1.88%