{"schemaVersion":4,"id":"UBUNTU-CVE-2021-22212","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-06-08T13:15:00.000Z","modified":"2026-02-04T03:07:45.999Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.4,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","computed":true,"selection":"version-preference"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.4,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":5.6,"impact":8.7,"computed":true}]},"epss":{"probability":null,"percentile":null,"severity":"unknown","asOf":null,"change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[],"last30":[]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[],"affected":[{"vendor":"ubuntu","product":"ntpsec","name":"ntpsec","label":"ntpsec","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ntpsec","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://ubuntu.com/security/CVE-2021-22212","label":"ubuntu.com/security/CVE-2021-22212","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://gitlab.com/NTPsec/ntpsec/-/issues/699","label":"gitlab.com/NTPsec/ntpsec/-/issues/699","hostname":"gitlab.com","tags":["REPORT"]},{"url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json","label":"gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json","hostname":"gitlab.com","tags":["REPORT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1955859","label":"bugzilla.redhat.com/show_bug.cgi?id=1955859","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-22212","label":"www.cve.org/CVERecord?id=CVE-2021-22212","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CVE-2021-22212"]},"timeline":[{"kind":"published","date":"2021-06-08T13:15:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-02-04T03:07:45.999Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 7.4 (OSV · Ubuntu); no exploitation reported by the 5 checked sources; EPSS not yet published","nextStep":"Check applicability and the vendor advisory: no fix release is recorded here","rank":[0,0,0,0,0,74],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"cvss","source":"osv_ubuntu","date":"2026-02-04T03:07:45.999Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1","headline":true}],"epss":{"value":null,"date":null,"stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T18:02:24.413Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T18:02:24.914Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T18:02:25.108Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T18:01:03.617Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T18:02:22.672Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T18:02:22.204Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T18:30:30.070Z","stale":false,"partial":false}}