← Vulnerability feed

Vulnerability record · CVE-2014-9295 · published 20 December 2014

CVE-2014-9295: NTP ntpd stack buffer overflows allow remote code execution

Ntp · Ntp

NTP before 4.2.8 contains multiple stack-based buffer overflows in ntpd, reachable through crafted packets in the crypto_recv (Autokey), ctl_putdata, and configure functions. Because ntpd typically runs with elevated privileges and is reachable over the network, a successful overflow can lead to remote code execution on the host.

7.5 CVSS 2.0 High EPSS 79% · top 0.4% CWE-119 · Memory buffer overflow
7.5CVSS 2.0 base score
79%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
56References, 6 tagged exploit
17 Jun 2026Last modified by NVD

Description

Multiple stack-based buffer overflows in ntpd in NTP before 4.2.8 allow remote attackers to execute arbitrary code via a crafted packet, related to (1) the crypto_recv function when the Autokey Authentication feature is used, (2) the ctl_putdata function, and (3) the configure function.

AV:N/AC:L/Au:N/C:P/I:P/A:P

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

high priorityRemote, unauthenticated code execution in a widely deployed network service with public exploit references and very high EPSS, though not listed in KEV.

What it is

NTP before 4.2.8 contains multiple stack-based buffer overflows in ntpd, reachable through crafted packets in the crypto_recv (Autokey), ctl_putdata, and configure functions. Because ntpd typically runs with elevated privileges and is reachable over the network, a successful overflow can lead to remote code execution on the host.

Impact

A remote attacker can corrupt stack memory and potentially execute arbitrary code with the privileges of the ntpd process, which is often root. This can lead to full host compromise or service disruption.

Attack surface

The flaw is reached over the network via crafted NTP packets; the CVSS vector AV:N/AC:L/Au:N indicates no authentication or user interaction is required. The Autokey path specifically requires that feature to be enabled, while the ctl_putdata and configure paths relate to control and configuration handling.

Exploitation

CISA KEV does not list this CVE, but EPSS is very high (0.79069, 99.577th percentile) and several references are tagged Exploit, indicating public exploit material exists.

What to do

  • Upgrade ntpd to NTP 4.2.8 or later, or apply the vendor patch for your distribution.
  • If Autokey is not required, disable it to remove the crypto_recv attack path.
  • Restrict network access to NTP ports (UDP 123 and control/query ports) to trusted sources only.
  • Run ntpd with the least privileges possible and isolate it from sensitive systems.
  • Monitor vendor advisories (Red Hat, SUSE, Oracle, HPE, etc.) and apply their updated packages.

Detection

  • Inspect ntpd logs for crashes, restarts, or abnormal termination that may indicate a buffer overflow attempt.
  • Monitor network traffic for malformed or unusually large NTP packets, especially to control/query and Autokey-related ports.
  • Use host-based detection to watch for unexpected child processes or code execution originating from the ntpd process.
  • Check for known exploit signatures against NTP traffic if your IDS/IPS supports them.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://advisories.mageia.org/MGASA-2014-0541.html
http://bk1.ntp.org/ntp-dev/?PAGE=patch&REV=548acc4dN1TbM1tRJrbPcA4yc1aTdA Exploit
http://bk1.ntp.org/ntp-dev/?PAGE=patch&REV=548acdf3tUSFizXcv_X4b77Jt_Y-cg Exploit
http://bk1.ntp.org/ntp-dev/?PAGE=patch&REV=548acf55dxKfhb6MuYQwzu8eDlS97g Exploit
http://bugs.ntp.org/show_bug.cgi?id=2667
http://bugs.ntp.org/show_bug.cgi?id=2668
http://bugs.ntp.org/show_bug.cgi?id=2669
http://lists.opensuse.org/opensuse-security-announce/2014-12/msg00020.html
http://marc.info/?l=bugtraq&m=142469153211996&w=2
http://marc.info/?l=bugtraq&m=142590659431171&w=2
http://marc.info/?l=bugtraq&m=142853370924302&w=2
http://marc.info/?l=bugtraq&m=144182594518755&w=2
http://rhn.redhat.com/errata/RHSA-2014-2025.html
http://rhn.redhat.com/errata/RHSA-2015-0104.html
http://secunia.com/advisories/62209
http://support.ntp.org/bin/view/Main/SecurityNotice Vendor Advisory
http://www.kb.cert.org/vuls/id/852879 Third Party AdvisoryUS Government Resource
http://www.mandriva.com/security/advisories?name=MDVSA-2015:003
http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html
http://www.securityfocus.com/bid/71761
http://www1.huawei.com/en/security/psirt/security-bulletins/security-advisories/hw-417665.htm
https://bugzilla.redhat.com/show_bug.cgi?id=1176037
https://h20564.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c04790232
https://h20564.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c04916783
https://help.ecostruxureit.com/display/public/UADCO8x/StruxureWare+Data+Center+Operation+Software+Vulnerability+Fixes
https://kc.mcafee.com/corporate/index?page=content&id=SB10103
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20141222-ntpd
https://www.arista.com/en/support/advisories-notices/security-advisories/1047-security-advisory-8
http://advisories.mageia.org/MGASA-2014-0541.html
http://bk1.ntp.org/ntp-dev/?PAGE=patch&REV=548acc4dN1TbM1tRJrbPcA4yc1aTdA Exploit
http://bk1.ntp.org/ntp-dev/?PAGE=patch&REV=548acdf3tUSFizXcv_X4b77Jt_Y-cg Exploit
http://bk1.ntp.org/ntp-dev/?PAGE=patch&REV=548acf55dxKfhb6MuYQwzu8eDlS97g Exploit
http://bugs.ntp.org/show_bug.cgi?id=2667
http://bugs.ntp.org/show_bug.cgi?id=2668
http://bugs.ntp.org/show_bug.cgi?id=2669
http://lists.opensuse.org/opensuse-security-announce/2014-12/msg00020.html
http://marc.info/?l=bugtraq&m=142469153211996&w=2
http://marc.info/?l=bugtraq&m=142590659431171&w=2
http://marc.info/?l=bugtraq&m=142853370924302&w=2
http://marc.info/?l=bugtraq&m=144182594518755&w=2

Track CVE-2014-9295 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2018-12327Ntp out-of-bounds write vulnerabilityStack-based buffer overflow in ntpq and ntpdc of NTP version 4.2.8p11 allows an attacker to achieve code execution or escalate to higher privileges v…EPSS 28%9.8CVE-2018-7183Ntp out-of-bounds write vulnerabilityBuffer 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 …EPSS 10%9.8CVE-2015-7705Ntp improper input validation vulnerabilityThe rate limiting feature in NTP 4.x before 4.2.8p4 and 4.3.x before 4.3.77 allows remote attackers to have unspecified impact via a large number of …EPSS 12%9.8CVE-2015-7853Ntp classic buffer overflow vulnerabilityThe datalen parameter in the refclock driver in NTP 4.2.x before 4.2.8p4, and 4.3.x before 4.3.77 allows remote attackers to execute arbitrary code o…EPSS 12%9.8CVE-2015-7871ntpd Crypto-NAK packets bypass authenticationntpd in NTP 4.2.x before 4.2.8p4 and 4.3.x before 4.3.77 mishandles Crypto-NAK packets, allowing remote attackers to bypass authentication. Because N…EPSS 82%analysed8.8CVE-2015-7849Ntp use after free vulnerabilityUse-after-free vulnerability in ntpd in NTP 4.2.x before 4.2.8p4, and 4.3.x before 4.3.77 allows remote authenticated users to possibly execute arbit…EPSS 17%8.8CVE-2015-7854Ntp classic buffer overflow vulnerabilityBuffer overflow in the password management functionality in NTP 4.2.x before 4.2.8p4, and 4.3.x before 4.3.77 allows remote authenticated users to ca…EPSS 15%8.8CVE-2017-6458Ntp memory buffer overflow vulnerabilityMultiple buffer overflows in the ctl_put* functions in NTP before 4.2.8p10 and 4.3.x before 4.3.94 allow remote authenticated users to have unspecifi…EPSS 6.5%

Source: NIST National Vulnerability Database (record CVE-2014-9295), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.