{"id":"CVE-2021-22212","aliases":["CVE-2021-22212"],"related":[],"kind":"vulnerability","state":"published","title":"ntpkeygen can generate keys that ntpd fails to parse.","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"ntpkeygen puede generar claves que ntpd no puede analizar. NTPsec versión 1.2.0 permite a ntpkeygen generar claves con caracteres \"#\". ntpd entonces rellena, acorta la clave, o comete un fallo al cargar estas claves por completo, dependiendo del tipo de clave y la colocación del \"#\". Esto hace que el administrador no pueda usar las claves como se esperaba o que las claves sean más cortas de lo esperado y más fáciles de forzar, resultando posiblemente en ataques MITM entre clientes ntp y servidores ntp. Para claves AES128 cortas, ntpd genera una advertencia de que las está rellenando","source":"nvd"}],"published":"2021-06-08T12:07:02.000Z","modified":"2026-06-17T03:36:48.917Z","severity":{"scorer":"GitLab","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N","score":4,"rating":"MEDIUM"},"severities":[{"scorer":"GitLab","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N","score":4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-327"],"affected":[{"ranges":[{"version":"=1.2.0","status":"affected"}],"vendor":"NTPsec","product":"ntpsec","source":"cvelist"},{"ranges":[{"status":"affected","version":"1.2.0"}],"vendor":"ntpsec","product":"ntpsec","cpe":"cpe:2.3:a:ntpsec:ntpsec:1.2.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"34"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://gitlab.com/NTPsec/ntpsec/-/issues/699","tags":["issue-tracking","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1955859","tags":["issue-tracking","patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]}],"credits":["Maciej Zenczykowski"],"assigner":"GitLab","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-22212","url":"https://www.cve.org/CVERecord?id=CVE-2021-22212","licence":"CVE Terms of Use","modified":"2024-08-03T18:37:18.446Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-22212","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22212","licence":"Public domain","modified":"2026-06-17T03:36:48.917Z"}],"updatedAt":"2026-11-25T22:58:01.684Z","epss":{"score":0.00522,"percentile":0.45783,"date":"2026-12-01T12:00:22.000Z"}}