Skip to content
OpenAdvisories
Unscored Public exploit CVE-2018-12327 EUVD-2018-4301GHSA-gmx7-j3pp-2gxp

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 pr…

Published Jun 20, 2018 · Updated Aug 5, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 ntp No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS ntp 1:4.2.8p4+dfsg-3ubuntu5.10 USN-4229-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS ntp 1:4.2.8p10+dfsg-5ubuntu7.3+esm1 USN-4229-2
Ubuntu Pro 14.04 LTS ntp 1:4.2.6.p5+dfsg-3ubuntu2.14.04.13+esm1 USN-4229-1
ReleasePackageFixed inAdvisory
RHEL 7 ntp +4 4.2.6p5-29.el7 RHSA-2019:2077
RHEL 6 ntp +3 4.2.6p5-15.el6_10 RHSA-2018:3854
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 7.6 EUS ntp +4 4.2.6p5-28.el7_6.1 RHSA-2020:1470
RHEL 6.7 EUS ntp +3 4.2.6p5-5.el6_7.6 RHSA-2018:3853
ReleasePackageFixed inAdvisory
SLES 15 ntp 4.2.8p12-4.3.2 SUSE-SU-2018:3386-1
SLES 12 SP3 ntp 4.2.8p12-64.8.2 SUSE-SU-2018:3342-1
SLES 12 SP2 ntp 4.2.8p12-64.8.2 SUSE-SU-2018:3342-1
SLES 12 SP1 ntp 4.2.8p12-64.8.2 SUSE-SU-2018:3342-1
SLES 12 ntp 4.2.8p12-46.29.2 SUSE-SU-2018:3351-1
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 11 SP4 ntp 4.2.8p12-64.7.1 SUSE-SU-2018:3352-1
SLES 11 SP3 ntp 4.2.8p12-48.21.1 SUSE-SU-2018:3356-1
SLES for SAP 12 SP3 ntp 4.2.8p12-64.8.2 SUSE-SU-2018:3342-1
SLES for SAP 12 SP2 ntp 4.2.8p12-64.8.2 SUSE-SU-2018:3342-1
SLES for SAP 12 SP1 ntp 4.2.8p12-64.8.2 SUSE-SU-2018:3342-2
SLES for SAP 11 SP4 ntp 4.2.8p12-64.7.1 SUSE-SU-2018:3352-1
SUSE OpenStack Cloud 7 ntp 4.2.8p12-64.8.2 SUSE-SU-2018:3342-1
SUSE Linux Enterprise Point of Sale 11 SP3 ntp 4.2.8p12-48.21.1 SUSE-SU-2018:3356-1
SUSE Enterprise Storage 4 ntp 4.2.8p12-64.8.2 SUSE-SU-2018:3342-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ntp 4.2.8p15-7.2 openSUSE-SU-2024:11102-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 ntp +4 4.2.6p5-29.amzn2.0.1 ALAS2-2019-1367

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 ntp +4 4.2.6p5-29.0.1.el7 ELSA-2019-2077

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 16

References