CVE-2018-12327
Stack-based buffer overflow in ntpq and ntpdc of NTP version 4.2.8p11 allows an attacker to achieve code execution or escalate to higher…
Check your servers for CVE-2018-12327
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2018-12327 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Stack-based buffer overflow in ntpq and ntpdc of NTP version 4.2.8p11 allows an attacker to achieve code execution or escalate to higher privileges via a long string as the argument for an IPv4 or IPv6 command-line parameter. NOTE: It is unclear whether there are any common situations in which ntpq or ntpdc is used with a command line from an untrusted source.
Exploitation
EPSS 27.0%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 98.4% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2018-12327 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2018-12327RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2018-12327Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2018-12327
trivy image --scanners vuln IMAGE | grep CVE-2018-12327
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- RHSA-2018:3854 access.redhat.com · vendor advisory
- RHSA-2018:3853 access.redhat.com · vendor advisory
- GLSA-201903-15 security.gentoo.org · vendor advisory
- RHSA-2019:2077 access.redhat.com · vendor advisory
- https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbux03962en_us support.hpe.com
- USN-4229-1 usn.ubuntu.com · vendor advisory
Exploits and proof of concept
- 44909 exploit-db.com · exploit
Other references
- https://gist.github.com/fakhrizulkifli/9b58ed8e0354e8deee50b0eebd1c011f gist.github.com
- 104517 securityfocus.com · vdb entry
Source: the record CVE-2018-12327 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse