GitHub Advisoryadvisory · PyPI

GHSA-6v56-cpg6-3rpx Mercurial vulnerable to arbitrary code injection

CRITICAL Published 2022-05-13 Modified 2024-09-25 Official page ↗
Aliases
CVE-2017-17458
Ecosystem
PyPI
Packages
mercurial
Severity
Critical
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-78
Reviewed
2024-05-01

Affected packages

• PyPI mercurial: < 4.4.1 → fixed in 4.4.1

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.

Related

Alias · CVE (1)

  • CVE-2017-17458 In Mercurial before 4.4.1, it is possible that a specially malformed repository can cause Git subrepositories to run arbitrary code in the… vulnerability

Weakness · CWE (1)

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness

References