{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-22212","id":"CVE-2021-22212","title":"ntpkeygen can generate keys that ntpd fails to parse","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, p","descriptionLong":"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.","published":"2021-06-08T12:07:02.000Z","updated":"2026-10-24T10:50:11.344493787Z","reserved":"2021-01-05T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitLab","metric":{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"GitLab"},"metrics":[{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"GitLab"},{"version":"3.1","score":4,"vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N","rating":"medium","source":"gitlab.com"},{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"high","source":"OSV"},{"version":"2.0","score":5.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":["ntpsec"],"affectedProducts":[{"vendor":"NTPsec","product":"ntpsec","defaultStatus":null,"versions":[{"status":"affected","version":"=1.2.0"}],"platforms":[]}],"packages":[],"cwes":["CWE-327"],"aliases":[],"references":[{"url":"https://gitlab.com/NTPsec/ntpsec/-/issues/699","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1955859","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00522,"epssPercentile":0.45065,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-22212","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22212","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-22212","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-22212","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}