CVEfocus › CVE database › CVE-2018-12327

CVE-2018-12327

CVSS 7.0 HighEPSS 27.5% (higher than 98% of CVEs)Published 2018-06-20Updated 2024-08-05Assigner: mitre

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.

What to do

Likely to be exploited: EPSS gives a 28% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Red Hat, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

10Fixed
2Fix pending
1Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04ntpNot affected
vulnerable_code_not_present
Ubuntu 18.04ntpFix pending1:4.2.8p10+dfsg-5ubuntu7.3+esm1 (Ubuntu Pro)UBUNTU-CVE-2018-12327
Ubuntu 16.04ntpFixed1:4.2.8p4+dfsg-3ubuntu5.10UBUNTU-CVE-2018-12327
Ubuntu 14.04ntpFix pending1:4.2.6.p5+dfsg-3ubuntu2.14.04.13+esm1 (Ubuntu Pro)UBUNTU-CVE-2018-12327
Red Hat Enterprise Linux 7ntpFixed0:4.2.6p5-29.el7RHSA-2019:2077
Red Hat Enterprise Linux 7ntp-docFixed0:4.2.6p5-29.el7RHSA-2019:2077
Red Hat Enterprise Linux 7ntp-perlFixed0:4.2.6p5-29.el7RHSA-2019:2077
Red Hat Enterprise Linux 7ntpdateFixed0:4.2.6p5-29.el7RHSA-2019:2077
Red Hat Enterprise Linux 7sntpFixed0:4.2.6p5-29.el7RHSA-2019:2077
Red Hat Enterprise Linux 6ntpFixed0:4.2.6p5-15.el6_10RHSA-2018:3854
Red Hat Enterprise Linux 6ntp-docFixed0:4.2.6p5-15.el6_10RHSA-2018:3854
Red Hat Enterprise Linux 6ntp-perlFixed0:4.2.6p5-15.el6_10RHSA-2018:3854
Red Hat Enterprise Linux 6ntpdateFixed0:4.2.6p5-15.el6_10RHSA-2018:3854
Red Hat Enterprise Linux 5ntpWill not fix
Will not fix

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.