
CVE catalog
CVE-2017-17458
mercurial affected and fixed versions
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.
- Severity
- Medium · CVSS 6.3
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 6.33% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debiantrixie | mercurial | 4.4.1-1 | FixedDistribution-reported fixed boundary | [CVE-2017-17458] |
| Debiantrixie | mercurial | 7.0.1-2 | Fixed | [CVE-2017-17458] |
| Debiansid | mercurial | 4.4.1-1 | FixedDistribution-reported fixed boundary | [CVE-2017-17458] |
| Debiansid | mercurial | 7.2.4-2 | Fixed | [CVE-2017-17458] |
| Debianforky | mercurial | 4.4.1-1 | FixedDistribution-reported fixed boundary | [CVE-2017-17458] |
| Debianforky | mercurial | 7.2.4-2 | Fixed | [CVE-2017-17458] |
| Debianbookworm-security | mercurial | 6.3.2-1+deb12u1 | Fixed | [CVE-2017-17458] |
| Debianbookworm | mercurial | 4.4.1-1 | FixedDistribution-reported fixed boundary | [CVE-2017-17458] |
| Debianbookworm | mercurial | 6.3.2-1+deb12u1 | Fixed | [CVE-2017-17458] |
Showing 9 fix observations. All 22 observations, including unknown and conflicting reports, are available below.
Provider details and historical evidence
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debianbookworm | mercurial | 4.4.1-1 | FixedDistribution-reported fixed boundary | [CVE-2017-17458] |
| Debianbookworm | mercurial | 6.3.2-1+deb12u1 | Fixed | [CVE-2017-17458] |
| Debianbookworm-security | mercurial | 6.3.2-1+deb12u1 | Fixed | [CVE-2017-17458] |
| Debianforky | mercurial | 4.4.1-1 | FixedDistribution-reported fixed boundary | [CVE-2017-17458] |
| Debianforky | mercurial | 7.2.4-2 | Fixed | [CVE-2017-17458] |
| Debiansid | mercurial | 4.4.1-1 | FixedDistribution-reported fixed boundary | [CVE-2017-17458] |
| Debiansid | mercurial | 7.2.4-2 | Fixed | [CVE-2017-17458] |
| Debiantrixie | mercurial | 4.4.1-1 | FixedDistribution-reported fixed boundary | [CVE-2017-17458] |
| Debiantrixie | mercurial | 7.0.1-2 | Fixed | [CVE-2017-17458] |
| Suselinux enterprise software development kit 11 sp4 | mercurial | 2.3.2-0.18.6.1 | UnknownSource applicability is not established | [SUSE-SU-2018:0127-1] |
| Suselinux enterprise software development kit 12 sp2 | mercurial | 2.8.2-15.6.1 | UnknownSource applicability is not established | [SUSE-SU-2018:0129-1] |
| Suselinux enterprise software development kit 12 sp3 | mercurial | 2.8.2-15.6.1 | UnknownSource applicability is not established | [SUSE-SU-2018:0129-1] |
| Ubuntu14.04 | mercurial | 2.6.3-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2017-17458] |
| Ubuntu14.04 | mercurial | 2.7.2-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2017-17458] |
| Ubuntu14.04 | mercurial | 2.8.1-2 | UnknownSource applicability is not established | [UBUNTU-CVE-2017-17458] |
| Ubuntu14.04 | mercurial | 2.8.2-1ubuntu1 | UnknownSource applicability is not established | [UBUNTU-CVE-2017-17458] |
| Ubuntu14.04 | mercurial | 2.8.2-1ubuntu1.3 | UnknownSource applicability is not established | [UBUNTU-CVE-2017-17458] |
| Ubuntu14.04 | mercurial | 2.8.2-1ubuntu1.4 | UnknownSource applicability is not established | [UBUNTU-CVE-2017-17458] |
| Ubuntu16.04 | mercurial | 3.4-1ubuntu2 | UnknownSource applicability is not established | [UBUNTU-CVE-2017-17458] |
| Ubuntu16.04 | mercurial | 3.6.2-1ubuntu2 | UnknownSource applicability is not established | [UBUNTU-CVE-2017-17458] |
| Ubuntu16.04 | mercurial | 3.7.3-1ubuntu1 | UnknownSource applicability is not established | [UBUNTU-CVE-2017-17458] |
| Ubuntu16.04 | mercurial | 3.7.3-1ubuntu1.1 | UnknownSource applicability is not established | [UBUNTU-CVE-2017-17458] |
Original provider fields
{
"package_releases": [
{
"name": "mercurial",
"status": "fixed",
"release": "sid",
"version": "7.2.4-2"
},
{
"name": "mercurial",
"status": "fixed",
"release": "forky",
"version": "7.2.4-2"
},
{
"name": "mercurial",
"status": "fixed",
"release": "trixie",
"version": "7.0.1-2"
},
{
"name": "mercurial",
"status": "fixed",
"release": "bookworm",
"version": "6.3.2-1+deb12u1"
},
{
"name": "mercurial",
"status": "fixed",
"release": "bookworm-security",
"version": "6.3.2-1+deb12u1"
}
],
"fixed_versions": [
{
"bug": null,
"name": "mercurial",
"type": "source",
"origin": null,
"release": "sid",
"urgency": "not yet assigned",
"fixed_version": "4.4.1-1"
},
{
"bug": null,
"name": "mercurial",
"type": "source",
"origin": null,
"release": "forky",
"urgency": "not yet assigned",
"fixed_version": "4.4.1-1"
},
{
"bug": null,
"name": "mercurial",
"type": "source",
"origin": null,
"release": "trixie",
"urgency": "not yet assigned",
"fixed_version": "4.4.1-1"
},
{
"bug": null,
"name": "mercurial",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "not yet assigned",
"fixed_version": "4.4.1-1"
}
],
"distribution_packages": [
{
"name": "mercurial",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.3.2-0.18.6.1"
}
]
}
],
"release": "linux enterprise software development kit 11 sp4",
"versions": [],
"ecosystem": "rpm",
"provider_url": "https://osv.dev/vulnerability/SUSE-SU-2018:0127-1",
"fixed_version": "2.3.2-0.18.6.1",
"provider_source": "pypi",
"provider_record_id": "SUSE-SU-2018:0127-1",
"provider_updated_at": "2026-02-04T02:54:10.025822Z",
"applicability_unknown": true
},
{
"name": "mercurial",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.8.2-15.6.1"
}
]
}
],
"release": "linux enterprise software development kit 12 sp2",
"versions": [],
"ecosystem": "rpm",
"provider_url": "https://osv.dev/vulnerability/SUSE-SU-2018:0129-1",
"fixed_version": "2.8.2-15.6.1",
"provider_source": "pypi",
"provider_record_id": "SUSE-SU-2018:0129-1",
"provider_updated_at": "2026-02-04T02:30:18.958547Z",
"applicability_unknown": true
},
{
"name": "mercurial",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.8.2-15.6.1"
}
]
}
],
"release": "linux enterprise software development kit 12 sp3",
"versions": [],
"ecosystem": "rpm",
"provider_url": "https://osv.dev/vulnerability/SUSE-SU-2018:0129-1",
"fixed_version": "2.8.2-15.6.1",
"provider_source": "pypi",
"provider_record_id": "SUSE-SU-2018:0129-1",
"provider_updated_at": "2026-02-04T02:30:18.958547Z",
"applicability_unknown": true
},
{
"name": "mercurial",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.8.2-1ubuntu1.4"
}
]
}
],
"release": "14.04",
"versions": [
"2.6.3-1",
"2.7.2-1",
"2.8.1-2",
"2.8.2-1ubuntu1",
"2.8.2-1ubuntu1.3"
],
"ecosystem": "deb",
"provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2017-17458",
"fixed_version": "2.8.2-1ubuntu1.4",
"provider_source": "pypi",
"provider_record_id": "UBUNTU-CVE-2017-17458",
"provider_updated_at": "2025-09-08T16:44:32Z",
"applicability_unknown": true
},
{
"name": "mercurial",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "3.7.3-1ubuntu1.1"
}
]
}
],
"release": "16.04",
"versions": [
"3.4-1ubuntu2",
"3.6.2-1ubuntu2",
"3.7.3-1ubuntu1"
],
"ecosystem": "deb",
"provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2017-17458",
"fixed_version": "3.7.3-1ubuntu1.1",
"provider_source": "pypi",
"provider_record_id": "UBUNTU-CVE-2017-17458",
"provider_updated_at": "2025-09-08T16:44:32Z",
"applicability_unknown": true
}
]
}OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [mercurial]Unknown
Details (4)
6.3.2-1+deb12u1· amd64 · bookwormFixed · Fixed:
4.4.1-1dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12
6.3.2-1+deb12u1· arm64 · bookwormFixed · Fixed:
4.4.1-1dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12
6.3.2-1+deb12u1· amd64 · bookworm-securityFixed · Fixed:
4.4.1-1dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12
6.3.2-1+deb12u1· arm64 · bookworm-securityFixed · Fixed:
4.4.1-1dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12
- [mercurial-common]Unknown
Source package: [mercurial]
Details (4)
6.3.2-1+deb12u1· all · bookwormFixed · Fixed:
4.4.1-1dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12
6.3.2-1+deb12u1· all · bookwormFixed · Fixed:
4.4.1-1dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12
6.3.2-1+deb12u1· all · bookworm-securityFixed · Fixed:
4.4.1-1dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12
6.3.2-1+deb12u1· all · bookworm-securityFixed · Fixed:
4.4.1-1dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12
[Debian 13 (Trixie)]
- [mercurial]Unknown
Details (2)
7.0.1-2· amd64 · trixieFixed · Fixed:
4.4.1-1dsa · mercurial · debian · 13
7.0.1-2· arm64 · trixieFixed · Fixed:
4.4.1-1dsa · mercurial · debian · 13
- [mercurial-common]Unknown
Source package: [mercurial]
Details (2)
7.0.1-2· all · trixieFixed · Fixed:
4.4.1-1dsa · mercurial · debian · 13
7.0.1-2· all · trixieFixed · Fixed:
4.4.1-1dsa · mercurial · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2018_0127-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2017-17458]
- [https://osv.dev/vulnerability/DLA-1224-1]
- [https://osv.dev/vulnerability/DLA-1414-1]
- [https://osv.dev/vulnerability/DLA-1414-2]
- [https://osv.dev/vulnerability/DLA-2293-1]
- [https://osv.dev/vulnerability/SUSE-SU-2018:0127-1]
- [https://osv.dev/vulnerability/SUSE-SU-2018:0129-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2017-17458]
- [https://security-tracker.debian.org/tracker/CVE-2017-17458]
- [https://security.access.redhat.com/data/csaf/v2/vex/2017/cve-2017-17458.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]