{"id":"CVE-2021-22212","details":"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.","modified":"2026-07-08T05:57:31.476195749Z","published":"2021-06-08T13:15:07.567Z","related":["openSUSE-SU-2024:11103-1"],"database_specific":{"unresolved_ranges":[{"extracted_events":[{"introduced":"34"},{"last_affected":"34"}],"source":"CPE_STRING","vendor_product":"fedoraproject:fedora","cpes":["cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"]}]},"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/"},{"type":"ADVISORY","url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json"},{"type":"FIX","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1955859"},{"type":"FIX","url":"https://gitlab.com/NTPsec/ntpsec/-/issues/699"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ntpsec/ntpsec","events":[{"introduced":"1feb8f90dd30ae573bf79205af53879a6e1e60c4"},{"last_affected":"1feb8f90dd30ae573bf79205af53879a6e1e60c4"}],"database_specific":{"extracted_events":[{"introduced":"1.2.0"},{"last_affected":"1.2.0"}],"source":"CPE_STRING","cpe":"cpe:2.3:a:ntpsec:ntpsec:1.2.0:*:*:*:*:*:*:*"}}],"versions":["1.2.0","NTPsec_1_2_0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-22212.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"}]}