{"cve":"CVE-2017-17458","nvd":{"published":"2017-12-07T18:29:00.203","modified":"2026-06-17T01:10:49.500","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-78"],"references":["http://www.securityfocus.com/bid/102926","https://bz.mercurial-scm.org/show_bug.cgi?id=5730","https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html","https://lists.debian.org/debian-lts-announce/2017/12/msg00027.html","https://lists.debian.org/debian-lts-announce/2018/07/msg00005.html"],"products":["debian:debian_linux","mercurial:mercurial"],"source":"nvd","synced_at":"2026-10-19T20:47:56.471723566+00:00"},"epss":{"cve":"CVE-2017-17458","score":0.06331,"percentile":0.93628,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-6v56-cpg6-3rpx","url":"https://osv.dev/vulnerability/GHSA-6v56-cpg6-3rpx","summary":"Mercurial vulnerable to arbitrary code injection","modified":"2024-09-25T18:03:31.790861Z","packages":[{"ecosystem":"PyPI","name":"mercurial","purl":"pkg:pypi/mercurial","ranges":["<4.4.1"],"fixed":["4.4.1"]}]},{"id":"PYSEC-2017-90","url":"https://osv.dev/vulnerability/PYSEC-2017-90","summary":"","modified":"2026-06-10T17:01:22.982575802Z","packages":[{"ecosystem":"PyPI","name":"mercurial","purl":"pkg:pypi/mercurial","ranges":["<4.4.1"],"fixed":["4.4.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}