Memory corruption in Network Time Protocol - CVE-2018-7183
Published: March 1, 2018 / Updated: March 1, 2018
Vulnerability identifier: #VU10802
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2018-7183
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vendor: ntp.org
Affected software:
Network Time Protocol
Network Time Protocol
Detailed vulnerability description
The vulnerability allows a remote unauthenticated attacker to execute arbitrary code on the target system.
The weakness exists in the decodearr() function of the ntpq monitoring and control program for ntpd used by the Network Time Protocol due to boundary error while attempting to decode an array in a response string when formatted data is being displayed. A remote attacker who is able to read an ntpq request while the request is being transmitted to a remote ntpd server can forge and send a specially crafted response to the targeted system prior to the remote ntpd server sending its response, trigger out-of-bounds write in the decodearr() function and inject and execute arbitrary code.
The weakness exists in the decodearr() function of the ntpq monitoring and control program for ntpd used by the Network Time Protocol due to boundary error while attempting to decode an array in a response string when formatted data is being displayed. A remote attacker who is able to read an ntpq request while the request is being transmitted to a remote ntpd server can forge and send a specially crafted response to the targeted system prior to the remote ntpd server sending its response, trigger out-of-bounds write in the decodearr() function and inject and execute arbitrary code.
How to mitigate CVE-2018-7183
Update to version 4.2.8p11.