CVE-2009-0159
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…
Check your servers for CVE-2009-0159
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2009-0159 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 13.2%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 97.0% of all scored CVEs. Scores of 30 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2009-0159 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2009-0159RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2009-0159Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2009-0159
trivy image --scanners vuln IMAGE | grep CVE-2009-0159
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
45 of 46 references. The list leaves out addresses that are not web links and those after the first 300; all of them are in the record on cve.org.
Advisories
- USN-777-1 usn.ubuntu.com · vendor advisory
- 35137 secunia.com · third party advisory
- 34608 secunia.com · third party advisory
- 35166 secunia.com · third party advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=490617 bugzilla.redhat.com
- http://support.apple.com/kb/HT3549 support.apple.com
- 37471 secunia.com · third party advisory
- DSA-1801 debian.org · vendor advisory
- FEDORA-2009-5275 redhat.com · vendor advisory
- 35308 secunia.com · third party advisory
- http://bugs.pardus.org.tr/show_bug.cgi?id=9532 bugs.pardus.org.tr
- 35253 secunia.com · third party advisory
20 more
- http://www.vmware.com/security/advisories/VMSA-2009-0016.html vmware.com
- 35074 secunia.com · third party advisory
- 35138 secunia.com · third party advisory
- APPLE-SA-2009-05-12 lists.apple.com · vendor advisory
- SSA:2009-154-01 slackware.com · vendor advisory
- SSRT101144 marc.info · vendor advisory
- FEDORA-2009-5273 redhat.com · vendor advisory
- SUSE-SR:2009:011 lists.opensuse.org · vendor advisory
- 35630 secunia.com · third party advisory
- TA09-133A us-cert.gov · third party advisory
- RHSA-2009:1651 rhn.redhat.com · vendor advisory
- RHSA-2009:1040 rhn.redhat.com · vendor advisory
- MDVSA-2009:092 mandriva.com · vendor advisory
- 35416 secunia.com · third party advisory
- https://support.ntp.org/bugs/show_bug.cgi?id=1144 support.ntp.org
- 35336 secunia.com · third party advisory
- RHSA-2009:1039 rhn.redhat.com · vendor advisory
- 35169 secunia.com · third party advisory
- GLSA-200905-08 gentoo.org · vendor advisory
- http://ntp.bkbits.net:8080/ntp-stable/?PAGE=gnupatch&REV=1.1565 ntp.bkbits.net
Other references
- oval:org.mitre.oval:def:9634 oval.cisecurity.org · vdb entry, signature
- 34481 securityfocus.com · vdb entry
- oval:org.mitre.oval:def:8386 oval.cisecurity.org · vdb entry, signature
- oval:org.mitre.oval:def:19392 oval.cisecurity.org · vdb entry, signature
- 20091120 VMSA-2009-0016 VMware vCenter and ESX update release and vMA patch release address multiple security issue… securityfocus.com · mailing list
- ntp-cookedprint-bo(49838) exchange.xforce.ibmcloud.com · vdb entry
- 53593 osvdb.org · vdb entry
- 1022033 securitytracker.com · vdb entry
- oval:org.mitre.oval:def:8665 oval.cisecurity.org · vdb entry, signature
- ADV-2009-1297 vupen.com · vdb entry
- oval:org.mitre.oval:def:5411 oval.cisecurity.org · vdb entry, signature
- ADV-2009-0999 vupen.com · vdb entry
- ADV-2009-3316 vupen.com · vdb entry
Source: the record CVE-2009-0159 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse