CVE-2021-22212 Weak cryptography in ntpsec
NTPsec allows generation of keys with special characters that are mishandled, leading to weak keys and potential man-in-the-middle attacks.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-22212?
CVE-2021-22212 is a medium-severity vulnerability in Fedoraproject Fedora, published on 8 Jun 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
ntpkeygen can generate keys that ntpd fails to parse. NTPsec 1.2.0 allows ntpkeygen to generate keys with '#' characters. ntpd then either pads, shortens the key, or fails to load these keys entirely, depending on the key type and the placement of the '#'. This results in the administrator not being able to use the keys as expected or the keys are shorter than expected and easier to brute-force, possibly resulting in MITM attacks between ntp clients and ntp servers. For short AES128 keys, ntpd generates a warning that it is padding them.
Weakness: CWE-327
Which versions are affected by CVE-2021-22212?
It affects 2 products.
Products include Fedoraproject Fedora, Ntpsec Ntpsec.
How do I fix CVE-2021-22212?
Upgrade to a fixed version.
Is CVE-2021-22212 being exploited?
There is no known exploitation of CVE-2021-22212 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as DEBIAN-CVE-2021-22212, GHSA-57r9-f9gp-9f2x.