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.
Advisories
Source ID Title
Debian DLA Debian DLA DLA-1224-1 mercurial security update
Debian DLA Debian DLA DLA-1414-1 mercurial security update
Debian DLA Debian DLA DLA-1414-2 mercurial regression update
Debian DLA Debian DLA DLA-2293-1 mercurial security update
Github GHSA Github GHSA GHSA-6v56-cpg6-3rpx Mercurial vulnerable to arbitrary code injection
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

No history.

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2024-08-05T20:51:31.432Z

Reserved: 2017-12-07T00:00:00

Link: CVE-2017-17458

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2017-12-07T18:29:00.203

Modified: 2025-04-20T01:37:25.860

Link: CVE-2017-17458

cve-icon Redhat

Severity : Moderate

Publid Date: 2017-11-03T00:00:00Z

Links: CVE-2017-17458 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses