Vulnerabilities / CVE-2018-7183

critical

CVE-2018-7183

ntp: decodearr() can write beyond its buffer limit

Published Modified CWE 787
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.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat5.0CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L

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

Description

Buffer overflow in the decodearr function in ntpq in ntp 4.2.8p6 through 4.2.8p10 allows remote attackers to execute arbitrary code by leveraging an ntpq query and sending a response with a crafted array.

Affected packages and fixed versions

SourcePackageFixed in
Photon OS 1.0ntp4.2.8p11-1.ph1
amazon linux 1ntp, ntp-debuginfo, ntp-doc and 2 more4.2.8p11-1.37.amzn1
debian 11ntp1:4.2.8p11+dfsg-1
debian 7ntpno fix listed
debian 8ntpno fix listed
debian 9ntpno fix listed
ubuntu 14.04ntp1:4.2.6.p5+dfsg-3ubuntu2.14.04.13
ubuntu 14.04-ESMntp1:4.2.6.p5+dfsg-3ubuntu2.14.04.13
ubuntu 16.04ntp1:4.2.8p4+dfsg-3ubuntu5.9
ubuntu 16.04-ESMntp1:4.2.8p4+dfsg-3ubuntu5.9
ubuntu 17.10ntp1:4.2.8p10+dfsg-5ubuntu3.3
ubuntu 18.04ntp1:4.2.8p10+dfsg-5ubuntu7.1
Show all 18 entries from 14 sources
SourcePackageFixed in
Photon OS 1.0ntp4.2.8p11-1.ph1
amazon linux 1ntp4.2.8p11-1.37.amzn1
amazon linux 1ntp-debuginfo4.2.8p11-1.37.amzn1
amazon linux 1ntp-doc4.2.8p11-1.37.amzn1
amazon linux 1ntp-perl4.2.8p11-1.37.amzn1
amazon linux 1ntpdate4.2.8p11-1.37.amzn1
debian 11ntp1:4.2.8p11+dfsg-1
debian 7ntpno fix listed
debian 8ntpno fix listed
debian 9ntpno fix listed
ubuntu 14.04ntp1:4.2.6.p5+dfsg-3ubuntu2.14.04.13
ubuntu 14.04-ESMntp1:4.2.6.p5+dfsg-3ubuntu2.14.04.13
ubuntu 16.04ntp1:4.2.8p4+dfsg-3ubuntu5.9
ubuntu 16.04-ESMntp1:4.2.8p4+dfsg-3ubuntu5.9
ubuntu 17.10ntp1:4.2.8p10+dfsg-5ubuntu3.3
ubuntu 18.04ntp1:4.2.8p10+dfsg-5ubuntu7.1
ubuntu 18.04-ESMntp1:4.2.8p10+dfsg-5ubuntu7.1
ubuntu 18.10ntp1:4.2.8p11+dfsg-1ubuntu1

References

All 17 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.