CVE-2018-12327
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | ntp | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | ntp | Fix pending | 1:4.2.8p10+dfsg-5ubuntu7.3+esm1 (Ubuntu Pro) | UBUNTU-CVE-2018-12327 |
| Ubuntu 16.04 | ntp | Fixed | 1:4.2.8p4+dfsg-3ubuntu5.10 | UBUNTU-CVE-2018-12327 |
| Ubuntu 14.04 | ntp | Fix pending | 1:4.2.6.p5+dfsg-3ubuntu2.14.04.13+esm1 (Ubuntu Pro) | UBUNTU-CVE-2018-12327 |
| Red Hat Enterprise Linux 7 | ntp | Fixed | 0:4.2.6p5-29.el7 | RHSA-2019:2077 |
| Red Hat Enterprise Linux 7 | ntp-doc | Fixed | 0:4.2.6p5-29.el7 | RHSA-2019:2077 |
| Red Hat Enterprise Linux 7 | ntp-perl | Fixed | 0:4.2.6p5-29.el7 | RHSA-2019:2077 |
| Red Hat Enterprise Linux 7 | ntpdate | Fixed | 0:4.2.6p5-29.el7 | RHSA-2019:2077 |
| Red Hat Enterprise Linux 7 | sntp | Fixed | 0:4.2.6p5-29.el7 | RHSA-2019:2077 |
| Red Hat Enterprise Linux 6 | ntp | Fixed | 0:4.2.6p5-15.el6_10 | RHSA-2018:3854 |
| Red Hat Enterprise Linux 6 | ntp-doc | Fixed | 0:4.2.6p5-15.el6_10 | RHSA-2018:3854 |
| Red Hat Enterprise Linux 6 | ntp-perl | Fixed | 0:4.2.6p5-15.el6_10 | RHSA-2018:3854 |
| Red Hat Enterprise Linux 6 | ntpdate | Fixed | 0:4.2.6p5-15.el6_10 | RHSA-2018:3854 |
| Red Hat Enterprise Linux 5 | ntp | Will 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:
- https://access.redhat.com/errata/RHSA-2018:3854 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:3853 (vendor-advisory)
- https://security.gentoo.org/glsa/201903-15 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2019:2077 (vendor-advisory)
- https://usn.ubuntu.com/4229-1/ (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2018:3854
- https://gist.github.com/fakhrizulkifli/9b58ed8e0354e8deee50b0eebd1c011f
- http://www.securityfocus.com/bid/104517
- https://www.exploit-db.com/exploits/44909/
- https://access.redhat.com/errata/RHSA-2018:3853
- https://security.gentoo.org/glsa/201903-15
- https://access.redhat.com/errata/RHSA-2019:2077
- https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbux03962en_us
- https://usn.ubuntu.com/4229-1/
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.