CVE-2018-12327

Source
Severity Medium
Remote Yes
Type Arbitrary code execution
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.
Group Package Affected Fixed Severity Status Ticket
AVG-723 ntp 4.2.8.p11-2 Medium Vulnerable
References
https://gist.github.com/fakhrizulkifli/9b58ed8e0354e8deee50b0eebd1c011f
Notes
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.

Reproducer:
/usr/bin/ntpdc -4 \[`python2 -c 'print "A" * 300'`\]

Note that ntpdc aborts due to stack smashing being detected.