{"id":"UBUNTU-CVE-2018-7183","details":"Buffer overflow in the decodearr function in ntpq in ntp 4.2.8p6 through 4.2.8p10 allows remote attackers to execute arbitrary code by leveraging an ntpq query and sending a response with a crafted array.","modified":"2026-01-30T02:49:24.425784Z","published":"2018-03-08T00:00:00Z","related":["USN-3707-1","USN-3707-2"],"upstream":["CVE-2018-7183"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-7183"},{"type":"REPORT","url":"http://www.kb.cert.org/vuls/id/961909"},{"type":"REPORT","url":"http://support.ntp.org/bin/view/Main/SecurityNotice#February_2018_ntp_4_2_8p11_NTP_S"},{"type":"REPORT","url":"http://support.ntp.org/bin/view/Main/NtpBug3414"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3707-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3707-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-7183"}],"affected":[{"package":{"name":"ntp","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/ntp@1:4.2.6.p5+dfsg-3ubuntu2.14.04.13?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.2.6.p5+dfsg-3ubuntu2.14.04.13"}]}],"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"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"1:4.2.6.p5+dfsg-3ubuntu2.14.04.13","binary_name":"ntp"},{"binary_version":"1:4.2.6.p5+dfsg-3ubuntu2.14.04.13","binary_name":"ntpdate"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-7183.json"}},{"package":{"name":"ntp","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ntp@1:4.2.8p4+dfsg-3ubuntu5.9?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.2.8p4+dfsg-3ubuntu5.9"}]}],"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"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"1:4.2.8p4+dfsg-3ubuntu5.9","binary_name":"ntp"},{"binary_version":"1:4.2.8p4+dfsg-3ubuntu5.9","binary_name":"ntpdate"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-7183.json"}},{"package":{"name":"ntp","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ntp@1:4.2.8p10+dfsg-5ubuntu7.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:4.2.8p10+dfsg-5ubuntu7.1"}]}],"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"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"1:4.2.8p10+dfsg-5ubuntu7.1","binary_name":"ntp"},{"binary_version":"1:4.2.8p10+dfsg-5ubuntu7.1","binary_name":"ntpdate"},{"binary_version":"1:4.2.8p10+dfsg-5ubuntu7.1","binary_name":"sntp"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-7183.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":"medium"}]}