Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2018-12327: Stack-based buffer overflow in ntpq and ntpdc of NTP version 4.2.8p11 allows an attacker to achieve code execu

69
This week
CRITICAL 9.8REMOTEDOWNGRADE

CVE-2018-12327 is a critical-severity flaw (CVSS 9.8) affecting ntp. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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.

Why this priority

  • Critical severity
  • EPSS top 2%: very likely to be exploited
  • Public exploit reference
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance27.5% (top 2%)
CISA exploited listNo
WeaknessCWE-787
Published2018-06-20
Last modified2026-06-17
Publisher (CNA): MITRE · Vendor: ntp

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

ntp ntp DOWNGRADE
Affected: 4.2.8 p11
Fixed in: no fixed release known
Safe to downgrade to: a release before 4.2.8
1. Check installed version
apt-cache policy ntp || rpm -q ntp || ntp --version
2. No fixed release: DOWNGRADE to a release before 4.2.8 (Debian / Ubuntu)
apt-cache madison ntp sudo apt install ntp=<VERSION_BEFORE_4.2.8> sudo apt-mark hold ntp
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list ntp sudo dnf downgrade ntp-<VERSION_BEFORE_4.2.8> sudo dnf versionlock add ntp
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.

Exact fixes by distribution

A distro patch exists: prefer upgrading over downgrading.
Fedora ELN · fuse-sshfs · FIXED · 3.7.6-3.eln159 · FEDORA-2026-bcb7be7c5c · source
sudo dnf upgrade --advisory=FEDORA-2026-bcb7be7c5c
Fedora 46 · python-odata-query · FIXED · 0.10.1-1.fc46 · FEDORA-2026-eab44dc513 · source
sudo dnf upgrade --advisory=FEDORA-2026-eab44dc513
Ubuntu 20.04 · ntp · NOT AFFECTED
Ubuntu 22.04 · ntp · NOT AFFECTED
RHEL 6 · ntp · FIXED · ntp-4.2.6p5-15.el6_10
sudo dnf upgrade --advisory=RHSA-2018:3854 rpm -q ntp
RHEL 6.7 Extended Update Support · ntp · FIXED · ntp-4.2.6p5-5.el6_7.6
sudo dnf upgrade --advisory=RHSA-2018:3853 rpm -q ntp
RHEL 7 · ntp · FIXED · ntp-4.2.6p5-29.el7
sudo dnf upgrade --advisory=RHSA-2019:2077 rpm -q ntp
RHEL 7.6 Extended Update Support · ntp · FIXED · ntp-4.2.6p5-28.el7_6.1
sudo dnf upgrade --advisory=RHSA-2020:1470 rpm -q ntp
RHEL 5 · ntp · DEFERRED
Amazon Linux 2 · see advisory · FIXED · ALAS2-2019-1367 · source
sudo yum update --advisory=ALAS2-2019-1367
Amazon Linux 1 · see advisory · FIXED · ALAS-2018-1083 · source
sudo yum update --advisory=ALAS-2018-1083

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2018-12327?

ntp: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.

Is CVE-2018-12327 being exploited?

CVE-2018-12327 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2018-12327 affect?

CVE-2018-12327 affects ntp. Severity is critical (CVSS 9.8). 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 un

How urgent is CVE-2018-12327?

Priority 69/100. Critical severity; EPSS top 2%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.