Security mailing lists by PureSourceCode

CVE-2017-17458

CRITICAL 9.8CVSS 3.0

Mercurial vulnerable to arbitrary code injection

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.

Published
7 Dec 2017
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-78
Also known as
GHSA-6v56-cpg6-3rpxPYSEC-2017-90
Sources
NVDJSONOSV GHSA-6v56-cpg6-3rpxJSONOSV PYSEC-2017-90JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 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
NVD nvd@nist.gov (Primary) CVSS 3.0 CRITICAL 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.0 CRITICAL 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 10.0 AV:N/AC:L/Au:N/C:C/I:C/A:C

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD mercurial mercurial
cpe:2.3:a:mercurial:mercurial:*:*:*:*:*:*:*:*
< 4.4.1 4.4.1
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*
= 7.0
NVD debian debian_linux
cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
= 8.0
OSV PyPI mercurial < 4.4.1 4.4.1

References

History

  • 25 Nov 2026 20:20 UTC · NVD: first stored (published 7 Dec 2017)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Dec 2017)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 May 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.