CVE-2017-17458

mercurial: arbitrary command execution in mercurial repo with a git submodule

Published Dec 7, 2017 CVSS 3.0 · 9.8 Critical EPSS 6.3% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

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
History

No history.

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 5, 2024, 8:51 PM
Reserved
Dec 7, 2017, 12:00 AM
Status
Modified
Published
Dec 7, 2017, 6:29 PM
Modified
Jun 17, 2026, 1:10 AM
Severity
Moderate
Public date
Nov 3, 2017, 12:00 AM