CVE-2018-12327

CRITICAL

NTP 4.2.8p11 - Stack-based Buffer Overflow via IPv4/IPv6 Command-line Parameter

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2018-12327. PoCs published by Fakhri Zulkifli.

AI-analyzed exploit summary This exploit demonstrates a stack-based buffer overflow in ntpq and ntpdc (NTP 4.2.8p11 and earlier) via a long string argument for IPv4/IPv6 command-line parameters, leading to potential code execution or privilege escalation.

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.

Exploits (1)

exploitdb WORKING POC
by Fakhri Zulkifli · textdoslinux
https://www.exploit-db.com/exploits/44909

This exploit demonstrates a stack-based buffer overflow in ntpq and ntpdc (NTP 4.2.8p11 and earlier) via a long string argument for IPv4/IPv6 command-line parameters, leading to potential code execution or privilege escalation.

Classification
Working Poc 90%
Attack Type
Rce | Lpe
Complexity
Trivial
Reliability
Reliable
Target: NTP ntpq and ntpdc 4.2.8p11 and earlier
No auth needed
Prerequisites: Local access to the target system · NTP ntpq or ntpdc installed
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (9)

Core 9
Core References
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:3854
Exploit, Third Party Advisory x_refsource_misc
https://gist.github.com/fakhrizulkifli/9b58ed8e0354e8deee50b0eebd1c011f
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/104517
Exploit, Third Party Advisory, VDB Entry exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/44909/
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:3853
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/201903-15
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2019:2077
Vendor Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/4229-1/

Scores

CVSS v3 9.8
EPSS 0.2904
EPSS Percentile 97.9%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-787
Status published
Products (1)
ntp/ntp 4.2.8 p11
Published Jun 20, 2018
Tracked Since Feb 18, 2026