CVE-2017-17458

Current Description

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.

Basic Data

PublishedDecember 07, 2017
Last ModifiedJuly 31, 2020
Assignercve@mitre.org
Data TypeCVE
Data FormatMITRE
Data Version4.0
Problem TypeCWE-78
CVE Data Version4.0

Base Metric V2

CVSS 2 - Version2.0
CVSS 2 - Vector StringAV:N/AC:L/Au:N/C:C/I:C/A:C
CVSS 2 - Access VectorNETWORK
CVSS 2 - Access ComplexityLOW
CVSS 2 - AuthenticationNONE
CVSS 2 - Confidentiality ImpactCOMPLETE
CVSS 2 - Availability ImpactCOMPLETE
CVSS 2 - Base Score10.0
SeverityHIGH
Exploitability Score10.0
Impact Score10.0
Obtain All Privilegefalse
Obtain User Privilegefalse
Obtain Other Privilegefalse

Base Metric V3

CVSS 3 - Version3.0
CVSS 3 - Vector StringCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 3 - Attack VectorNETWORK
CVSS 3 - Attack ComplexityLOW
CVSS 3 - Privileges RequiredNONE
CVSS 3 - User InteractionNONE
CVSS 3 - ScopeUNCHANGED
CVSS 3 - Confidentiality ImpactHIGH
CVSS 3 - Integrity ImpactHIGH
CVSS 3 - Availability ImpactHIGH
CVSS 3 - Base Score9.8
CVSS 3 - Base SeverityCRITICAL
Exploitability Score3.9
Base SeverityCRITICAL

Configurations

  • OR - Configuration 1
    Cpe VersionPartVendorProductVersionUpdateEditionLanguageSW EditionTarget SWTarget HWOtherVersion Start IncludingVersion End IncludingVersion Start ExcludingVersion End Excluding
    2.3ApplicationMercurialMercurial********4.4.1
  • OR - Configuration 2
    Cpe VersionPartVendorProductVersionUpdateEditionLanguageSW EditionTarget SWTarget HWOtherVersion Start IncludingVersion End IncludingVersion Start ExcludingVersion End Excluding
    2.3OSDebianDebian Linux7.0*******
    2.3OSDebianDebian Linux8.0*******

Vulnerable Software List

VendorProductVersions
Debian Debian Linux 7.0, 8.0
Mercurial Mercurial *

References

NameSourceURLTags
102926http://www.securityfocus.com/bid/102926BIDThird Party Advisory VDB Entry
https://bz.mercurial-scm.org/show_bug.cgi?id=5730https://bz.mercurial-scm.org/show_bug.cgi?id=5730MISCIssue Tracking Third Party Advisory
https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.htmlhttps://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.htmlCONFIRMThird Party Advisory
[debian-lts-announce] 20171228 [SECURITY] [DLA 1224-1] mercurial security updatehttps://lists.debian.org/debian-lts-announce/2017/12/msg00027.htmlMLISTMailing List Third Party Advisory
[debian-lts-announce] 20180705 [SECURITY] [DLA 1414-1] mercurial security updatehttps://lists.debian.org/debian-lts-announce/2018/07/msg00005.htmlMLISTMailing List Third Party Advisory
[debian-lts-announce] 20180727 [SECURITY] [DLA 1414-2] mercurial regression updatehttps://lists.debian.org/debian-lts-announce/2018/07/msg00041.htmlMLISTMailing List Third Party Advisory
[debian-lts-announce] 20200731 [SECURITY] [DLA 2293-1] mercurial security updatehttps://lists.debian.org/debian-lts-announce/2020/07/msg00032.htmlMLIST
https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.htmlhttps://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.htmlMISCVendor Advisory
https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29MISCVendor Advisory