CVE-2009-0159: Buffer Overflow

Published Mar 17, 2009
·
Updated

Apple Security Team reported a stack buffer overflow exists in the ntpq program. When the ntpq program is used to request peer information from a remote time server, a maliciously crafted response may lead to an unexpected application termination or arbitrary code execution.

Problem exists in cookedprint() function in ntpq.c, when server-supplied numeric value is sprintf-ed to the buffer that is not large enough to hold string representation of the maximum possible value.

Other sources

Stack-based buffer overflow in the cookedprint function in ntpq/ntpq.c in ntpq in NTP before 4.2.4p7-RC2 allows remote NTP servers to execute arbitrary code via a crafted response.

Affected Software

29 affected components
NTP ntp<=4.2.4p7
NTP ntp=4.0.72
NTP ntp=4.0.73
NTP ntp=4.0.90
NTP ntp=4.0.91
NTP ntp=4.0.92
NTP ntp=4.0.93
NTP ntp=4.0.94
NTP ntp=4.0.95
NTP ntp=4.0.96
NTP ntp=4.0.97
NTP ntp=4.0.98
NTP ntp=4.0.99
NTP ntp=4.1.0
NTP ntp=4.1.2
NTP ntp=4.2.0
NTP ntp=4.2.2
NTP ntp=4.2.2p1
NTP ntp=4.2.2p2
NTP ntp=4.2.2p3
NTP ntp=4.2.2p4
NTP ntp=4.2.4
NTP ntp=4.2.4p0
NTP ntp=4.2.4p1
NTP ntp=4.2.4p2
NTP ntp=4.2.4p3
NTP ntp=4.2.4p4
NTP ntp=4.2.4p5
NTP ntp=4.2.4p6

Event History

Mar 17, 2009
Data Sourced
10:44 AM
DescriptionSeverityAffected Software
Apr 14, 2009
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2009-0159?

CVE-2009-0159 is considered a critical vulnerability due to the potential for arbitrary code execution.

2

How do I fix CVE-2009-0159?

To fix CVE-2009-0159, update to a version of the NTP software that is not affected, generally versions after 4.2.4p7.

3

What systems are affected by CVE-2009-0159?

CVE-2009-0159 affects multiple versions of NTP including 4.0.72, 4.0.98, and several others prior to the patched versions.

4

Can CVE-2009-0159 be exploited remotely?

Yes, CVE-2009-0159 can be exploited remotely when the ntpq program interacts with a malicious time server.

5

What data could be compromised by CVE-2009-0159?

CVE-2009-0159 could potentially allow attackers to execute arbitrary code and gain unauthorized access to affected systems.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203