CVE-2018-12327
ntp: Stack-based buffer overflow in ntpq and ntpdc allows denial of service or code execution
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (low), Amazon (low), Oracle (low), Ubuntu (low).
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 1.0 | ntp | 4.2.8p12-1.ph1 |
| Photon OS 2.0 | ntp | 4.2.8p12-1.ph2 |
| amazon linux 1 | ntp, ntp-debuginfo, ntp-doc and 2 more | 4.2.8p12-1.39.amzn1 |
| amazon linux 2 | ntp, ntp-debuginfo, ntp-doc and 3 more | 4.2.6p5-29.amzn2.0.1 |
| debian 11 | ntp | no fix listed |
| Oracle Linux 6 | ntp, ntp-doc, ntp-perl and 1 more | 4.2.6p5-15.0.1.el6_10 |
| Oracle Linux 7 | ntp, ntp-doc, ntp-perl and 2 more | 4.2.6p5-29.0.1.el7 |
| ubuntu 14.04-ESM | ntp | 1:4.2.6.p5+dfsg-3ubuntu2.14.04.13+esm1 |
| ubuntu 16.04 | ntp | 1:4.2.8p4+dfsg-3ubuntu5.10 |
| ubuntu 16.04-ESM | ntp | 1:4.2.8p4+dfsg-3ubuntu5.10 |
| ubuntu 18.04-ESM | ntp | 1:4.2.8p10+dfsg-5ubuntu7.3+esm1 |
Show all 27 entries from 11 sources
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 1.0 | ntp | 4.2.8p12-1.ph1 |
| Photon OS 2.0 | ntp | 4.2.8p12-1.ph2 |
| amazon linux 1 | ntp | 4.2.8p12-1.39.amzn1 |
| amazon linux 1 | ntp-debuginfo | 4.2.8p12-1.39.amzn1 |
| amazon linux 1 | ntp-doc | 4.2.8p12-1.39.amzn1 |
| amazon linux 1 | ntp-perl | 4.2.8p12-1.39.amzn1 |
| amazon linux 1 | ntpdate | 4.2.8p12-1.39.amzn1 |
| amazon linux 2 | ntp | 4.2.6p5-29.amzn2.0.1 |
| amazon linux 2 | ntp-debuginfo | 4.2.6p5-29.amzn2.0.1 |
| amazon linux 2 | ntp-doc | 4.2.6p5-29.amzn2.0.1 |
| amazon linux 2 | ntp-perl | 4.2.6p5-29.amzn2.0.1 |
| amazon linux 2 | ntpdate | 4.2.6p5-29.amzn2.0.1 |
| amazon linux 2 | sntp | 4.2.6p5-29.amzn2.0.1 |
| debian 11 | ntp | no fix listed |
| Oracle Linux 6 | ntp | 4.2.6p5-15.0.1.el6_10 |
| Oracle Linux 6 | ntp-doc | 4.2.6p5-15.0.1.el6_10 |
| Oracle Linux 6 | ntp-perl | 4.2.6p5-15.0.1.el6_10 |
| Oracle Linux 6 | ntpdate | 4.2.6p5-15.0.1.el6_10 |
| Oracle Linux 7 | ntp | 4.2.6p5-29.0.1.el7 |
| Oracle Linux 7 | ntp-doc | 4.2.6p5-29.0.1.el7 |
| Oracle Linux 7 | ntp-perl | 4.2.6p5-29.0.1.el7 |
| Oracle Linux 7 | ntpdate | 4.2.6p5-29.0.1.el7 |
| Oracle Linux 7 | sntp | 4.2.6p5-29.0.1.el7 |
| ubuntu 14.04-ESM | ntp | 1:4.2.6.p5+dfsg-3ubuntu2.14.04.13+esm1 |
| ubuntu 16.04 | ntp | 1:4.2.8p4+dfsg-3ubuntu5.10 |
| ubuntu 16.04-ESM | ntp | 1:4.2.8p4+dfsg-3ubuntu5.10 |
| ubuntu 18.04-ESM | ntp | 1:4.2.8p10+dfsg-5ubuntu7.3+esm1 |
References
- http://www.securityfocus.com/bid/104517
- https://access.redhat.com/errata/RHSA-2018:3853
- https://access.redhat.com/errata/RHSA-2018:3854
- https://access.redhat.com/errata/RHSA-2019:2077
- https://access.redhat.com/security/cve/CVE-2018-12327
- https://gist.github.com/fakhrizulkifli/9b58ed8e0354e8deee50b0eebd1c011f
- https://linux.oracle.com/cve/CVE-2018-12327.html
- https://linux.oracle.com/errata/ELSA-2019-2077.html
All 16 references
- https://nvd.nist.gov/vuln/detail/CVE-2018-12327
- https://security.gentoo.org/glsa/201903-15
- https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbux03962en_us
- https://ubuntu.com/security/notices/USN-4229-1
- https://ubuntu.com/security/notices/USN-4229-2
- https://usn.ubuntu.com/4229-1/
- https://www.cve.org/CVERecord?id=CVE-2018-12327
- https://www.exploit-db.com/exploits/44909/