{"id":"UBUNTU-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-02-04T03:07:45.999369Z","published":"2021-06-08T13:15:00Z","withdrawn":"2025-06-23T15:53:58Z","related":["CVE-2021-22212"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-22212"},{"type":"REPORT","url":"https://gitlab.com/NTPsec/ntpsec/-/issues/699"},{"type":"REPORT","url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1955859"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-22212"}],"affected":[{"package":{"name":"ntpsec","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/ntpsec@1.1.0+dfsg1-1ubuntu0.2?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.0+dfsg1-1","1.0.0+dfsg1-3","1.1.0+dfsg1-1","1.1.0+dfsg1-1ubuntu0.1","1.1.0+dfsg1-1ubuntu0.2"],"ecosystem_specific":{"ubuntu_priority":"low"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-22212.json"}},{"package":{"name":"ntpsec","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ntpsec@1.1.8+dfsg1-4build1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.3+dfsg1-2","1.1.7+dfsg1-1","1.1.7+dfsg1-2","1.1.8+dfsg1-1","1.1.8+dfsg1-3","1.1.8+dfsg1-4","1.1.8+dfsg1-4build1"],"ecosystem_specific":{"ubuntu_priority":"low"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-22212.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"}]}