← Vulnerability feed

Vulnerability record · CVE-2018-12327 · published 20 June 2018

CVE-2018-12327: Ntp out-of-bounds write vulnerability

Ntp · Ntp

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.

9.8 CVSS 3.0 Critical EPSS 28% · top 2.0% CWE-787 · Out-of-bounds write
9.8CVSS 3.0 base score, v2 7.5
28%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
18References, 4 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2018-12327 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2018-7183Ntp out-of-bounds write vulnerabilityBuffer 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 …EPSS 10%9.8CVE-2015-7705Ntp improper input validation vulnerabilityThe rate limiting feature in NTP 4.x before 4.2.8p4 and 4.3.x before 4.3.77 allows remote attackers to have unspecified impact via a large number of …EPSS 12%9.8CVE-2015-7853Ntp classic buffer overflow vulnerabilityThe datalen parameter in the refclock driver in NTP 4.2.x before 4.2.8p4, and 4.3.x before 4.3.77 allows remote attackers to execute arbitrary code o…EPSS 12%9.8CVE-2015-7871ntpd Crypto-NAK packets bypass authenticationntpd in NTP 4.2.x before 4.2.8p4 and 4.3.x before 4.3.77 mishandles Crypto-NAK packets, allowing remote attackers to bypass authentication. Because N…EPSS 82%analysed8.8CVE-2015-7849Ntp use after free vulnerabilityUse-after-free vulnerability in ntpd in NTP 4.2.x before 4.2.8p4, and 4.3.x before 4.3.77 allows remote authenticated users to possibly execute arbit…EPSS 17%8.8CVE-2015-7854Ntp classic buffer overflow vulnerabilityBuffer overflow in the password management functionality in NTP 4.2.x before 4.2.8p4, and 4.3.x before 4.3.77 allows remote authenticated users to ca…EPSS 15%8.8CVE-2017-6458Ntp memory buffer overflow vulnerabilityMultiple buffer overflows in the ctl_put* functions in NTP before 4.2.8p10 and 4.3.x before 4.3.94 allow remote authenticated users to have unspecifi…EPSS 6.5%8.8CVE-2017-6460Ntp memory buffer overflow vulnerabilityStack-based buffer overflow in the reslist function in ntpq in NTP before 4.2.8p10 and 4.3.x before 4.3.94 allows remote servers have unspecified imp…EPSS 2.7%

Source: NIST National Vulnerability Database (record CVE-2018-12327), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.