CVE Database›CVE-2014-9293

CVE-2014-9293

ntp: automatic generation of weak default key in config_auth()

Loading…

Severity

Moderate

Red Hat Product Security

4

CVSS 2.0

Review impact separately from score.

Published · December 19, 2014

Updated · November 21, 2025

Description

It was found that ntpd automatically generated weak keys for its internal use if no ntpdc request authentication key was specified in the ntp.conf configuration file. A remote attacker able to match the configured IP restrictions could guess the generated key, and possibly use it to send ntpdc query or configuration requests.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Issue these commands to explicitly generate a strong key and add it to the ntpd configuration:

echo trustedkey 65535 >> /etc/ntp.conf
printf "65535\tM\t%s\n" $(tr -cd a-zA-Z0-9 < /dev/urandom | head -c 16) >> /etc/ntp/keys

The generated key has about 95 bits of entropy.

CVSS / CWE

CVSS 2.0 · 4
AV:N/AC:H/Au:N/C:P/I:P/A:N

CWE-338 · Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)