{"schemaVersion":3,"id":"CVE-2021-22212","aliases":["DEBIAN-CVE-2021-22212"],"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-08T12:07:02.000Z","modified":"2024-08-03T18:37:18.446Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.4,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","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},{"version":"3.1","versionLabel":"v3.1","source":"NVD","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":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00522,"percentile":0.43093,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00522},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00522,"percentile":0.43093}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00522,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00522,"percentile":0.43093}]},"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":[{"id":"CWE-327","name":"Use of a Broken or Risky Cryptographic Algorithm","description":"The product uses a broken or risky cryptographic algorithm or protocol.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/327.html"}],"affected":[{"vendor":"debian","product":"ntpsec","name":"ntpsec","label":"ntpsec","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ntpsec","purlType":"deb","versions":[{"text":"< 1.2.0+dfsg1-4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.2.0+dfsg1-4","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"34","noFixRecorded":false,"fixedIn":null}],"versionsText":"34","eol":{"isEol":true,"eolDate":"2022-06-07T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"34","label":"34","eolFrom":"2022-06-07T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"ntpsec","product":"ntpsec","name":"ntpsec","label":"ntpsec","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.2.0","eol":null,"hubHref":"/vendor/ntpsec/ntpsec"}],"affectedCount":3,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://gitlab.com/NTPsec/ntpsec/-/issues/699","label":"gitlab.com/NTPsec/ntpsec/-/issues/699","hostname":"gitlab.com","tags":["X Refsource MISC","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1955859","label":"bugzilla.redhat.com/show_bug.cgi?id=1955859","hostname":"bugzilla.redhat.com","tags":["X Refsource MISC","Issue Tracking","Patch","Third Party Advisory"]},{"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":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-22212","label":"security-tracker.debian.org/tracker/CVE-2021-22212","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:11103-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:11103-1","UBUNTU-CVE-2021-22212"]},"timeline":[{"kind":"published","date":"2021-06-08T12:07:02.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T18:37:18.446Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T10:56:50.860Z","stale":false,"partial":false}}