Vulnerabilities / CVE-2018-17983

critical

CVE-2018-17983

mercurial: Out-of-bounds read in cext/manifest.c

Published Modified CWE 125
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
GHSA8.8CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat4.3CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by GHSA (high), Red Hat (medium), Ubuntu (medium).

Description

cext/manifest.c in Mercurial before 4.7.2 has an out-of-bounds read during parsing of a malformed manifest entry.

Affected packages and fixed versions

SourcePackageFixed in
Photon OS 1.0mercurial4.5.3-2.ph1
Photon OS 2.0mercurial4.5.3-2.ph2
Photon OS 3.0mercurial4.7.1-3.ph3
debian 11mercurial4.7.2-1
debian 12mercurial4.7.2-1
debian 13mercurial4.7.2-1
debian 14mercurial4.7.2-1
echomercurial4.7.2-1
pip::GitHub Security Advisory pipmercurial4.7.2
ubuntu 16.04-ESMmercurial3.7.3-1ubuntu1.1+esm1
ubuntu 18.04mercurial4.5.3-1ubuntu2.2
ubuntu 18.04-ESMmercurial4.5.3-1ubuntu2.2

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.