# CVE-2018-12327

- Priority: **Prioritise**
- Reason: Public exploit (exploit-database, 20-06-2018)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2018-06-20 · Modified: 2024-08-05
- Aliases: MGASA-2018-0371, RHSA-2018:3853, RHSA-2018:3854, RHSA-2019:2077, RHSA-2020:1470, UBUNTU-CVE-2018-12327, USN-4229-1, USN-4229-2, DEBIAN-CVE-2018-12327
- Record: https://cvemate.com/vulnerability/CVE-2018-12327 · JSON: https://cvemate.com/vulnerability/CVE-2018-12327/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 27.051%, percentile 98.09%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (github, exploit-database)

## Affected

- debian ntp (Debian): All versions (No fix recorded)
- ubuntu ntp (Ubuntu): \< 1:4.2.6.p5+dfsg-3ubuntu2.14.04.13+esm1 \| \< 1:4.2.8p4+dfsg-3ubuntu5.10 \| \< 1:4.2.8p10+dfsg-5ubuntu7.3+esm1
- mageia ntp (Mageia): \< 4.2.8p12-1.mga6
- ntp ntp: 4.2.8:p11
- redhat ntp (Red Hat): \< 0:4.2.6p5-5.el6\_7.6 \| \< 0:4.2.6p5-15.el6\_10 \| \< 0:4.2.6p5-29.el7 \| \< 0:4.2.6p5-28.el7\_6.1
- redhat ntp-debuginfo (Red Hat): \< 0:4.2.6p5-5.el6\_7.6 \| \< 0:4.2.6p5-15.el6\_10 \| \< 0:4.2.6p5-29.el7 \| \< 0:4.2.6p5-28.el7\_6.1
- redhat ntp-doc (Red Hat): \< 0:4.2.6p5-5.el6\_7.6 \| \< 0:4.2.6p5-15.el6\_10 \| \< 0:4.2.6p5-29.el7 \| \< 0:4.2.6p5-28.el7\_6.1
- redhat ntp-perl (Red Hat): \< 0:4.2.6p5-5.el6\_7.6 \| \< 0:4.2.6p5-15.el6\_10 \| \< 0:4.2.6p5-29.el7 \| \< 0:4.2.6p5-28.el7\_6.1
- redhat ntpdate (Red Hat): \< 0:4.2.6p5-5.el6\_7.6 \| \< 0:4.2.6p5-15.el6\_10 \| \< 0:4.2.6p5-29.el7 \| \< 0:4.2.6p5-28.el7\_6.1
- redhat sntp (Red Hat): \< 0:4.2.6p5-29.el7 \| \< 0:4.2.6p5-28.el7\_6.1

## References (first 20 of 28)

- <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/>
- <https://advisories.mageia.org/MGASA-2018-0371.html>
- <https://bugs.mageia.org/show_bug.cgi?id=23505>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/437XM4CMBCMPK7D2RSEUZIRLFZD5ZNRD/>
- <https://access.redhat.com/security/updates/classification/#low>
- <https://bugzilla.redhat.com/show_bug.cgi?id=1593580>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2018/rhsa-2018_3853.json>
- <https://access.redhat.com/security/cve/CVE-2018-12327>
- <https://www.cve.org/CVERecord?id=CVE-2018-12327>
- <https://nvd.nist.gov/vuln/detail/CVE-2018-12327>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2018/rhsa-2018_3854.json>
- <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/7.7_release_notes/index>

---

Data as of 2026-12-05T06:59:37.592Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
