{"id":"UBUNTU-CVE-2018-12327","details":"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.","modified":"2026-01-30T01:00:25.720131Z","published":"2018-06-20T14:29:00Z","related":["USN-4229-1","USN-4229-2"],"upstream":["CVE-2018-12327"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-12327"},{"type":"REPORT","url":"https://gist.github.com/fakhrizulkifli/9b58ed8e0354e8deee50b0eebd1c011f"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4229-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4229-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-12327"}],"affected":[{"package":{"name":"ntp","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/ntp@1:4.2.6.p5+dfsg-3ubuntu2.14.04.13+esm1?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.2.6.p5+dfsg-3ubuntu2.14.04.13+esm1"}]}],"versions":["1:4.2.6.p5+dfsg-3ubuntu2","1:4.2.6.p5+dfsg-3ubuntu2.14.04.1","1:4.2.6.p5+dfsg-3ubuntu2.14.04.2","1:4.2.6.p5+dfsg-3ubuntu2.14.04.3","1:4.2.6.p5+dfsg-3ubuntu2.14.04.5","1:4.2.6.p5+dfsg-3ubuntu2.14.04.6","1:4.2.6.p5+dfsg-3ubuntu2.14.04.7","1:4.2.6.p5+dfsg-3ubuntu2.14.04.8","1:4.2.6.p5+dfsg-3ubuntu2.14.04.10","1:4.2.6.p5+dfsg-3ubuntu2.14.04.11","1:4.2.6.p5+dfsg-3ubuntu2.14.04.12","1:4.2.6.p5+dfsg-3ubuntu2.14.04.13"],"ecosystem_specific":{"binaries":[{"binary_version":"1:4.2.6.p5+dfsg-3ubuntu2.14.04.13+esm1","binary_name":"ntp"},{"binary_version":"1:4.2.6.p5+dfsg-3ubuntu2.14.04.13+esm1","binary_name":"ntpdate"}],"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-12327.json"}},{"package":{"name":"ntp","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ntp@1:4.2.8p4+dfsg-3ubuntu5.10?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.2.8p4+dfsg-3ubuntu5.10"}]}],"versions":["1:4.2.6.p5+dfsg-3ubuntu8","1:4.2.6.p5+dfsg-3ubuntu8.1","1:4.2.6.p5+dfsg-3ubuntu9","1:4.2.8p4+dfsg-3ubuntu1","1:4.2.8p4+dfsg-3ubuntu2","1:4.2.8p4+dfsg-3ubuntu3","1:4.2.8p4+dfsg-3ubuntu4","1:4.2.8p4+dfsg-3ubuntu5","1:4.2.8p4+dfsg-3ubuntu5.1","1:4.2.8p4+dfsg-3ubuntu5.2","1:4.2.8p4+dfsg-3ubuntu5.3","1:4.2.8p4+dfsg-3ubuntu5.4","1:4.2.8p4+dfsg-3ubuntu5.5","1:4.2.8p4+dfsg-3ubuntu5.6","1:4.2.8p4+dfsg-3ubuntu5.7","1:4.2.8p4+dfsg-3ubuntu5.8","1:4.2.8p4+dfsg-3ubuntu5.9"],"ecosystem_specific":{"binaries":[{"binary_version":"1:4.2.8p4+dfsg-3ubuntu5.10","binary_name":"ntp"},{"binary_version":"1:4.2.8p4+dfsg-3ubuntu5.10","binary_name":"ntpdate"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-12327.json"}},{"package":{"name":"ntp","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/ntp@1:4.2.8p10+dfsg-5ubuntu7.3+esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.2.8p10+dfsg-5ubuntu7.3+esm1"}]}],"versions":["1:4.2.8p10+dfsg-5ubuntu3","1:4.2.8p10+dfsg-5ubuntu4","1:4.2.8p10+dfsg-5ubuntu5","1:4.2.8p10+dfsg-5ubuntu6","1:4.2.8p10+dfsg-5ubuntu7","1:4.2.8p10+dfsg-5ubuntu7.1","1:4.2.8p10+dfsg-5ubuntu7.1+esm1","1:4.2.8p10+dfsg-5ubuntu7.1+esm2","1:4.2.8p10+dfsg-5ubuntu7.2","1:4.2.8p10+dfsg-5ubuntu7.2+esm1","1:4.2.8p10+dfsg-5ubuntu7.3"],"ecosystem_specific":{"binaries":[{"binary_version":"1:4.2.8p10+dfsg-5ubuntu7.3+esm1","binary_name":"ntp"},{"binary_version":"1:4.2.8p10+dfsg-5ubuntu7.3+esm1","binary_name":"ntpdate"},{"binary_version":"1:4.2.8p10+dfsg-5ubuntu7.3+esm1","binary_name":"sntp"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-12327.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"negligible"}]}