{"id":"CVE-2021-22212","state":"PUBLISHED","title":"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 ","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.","publishedAt":"2021-06-08T12:07:02.000Z","updatedAt":"2024-08-03T18:37:18.446Z","severity":{"score":4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N","source":"GitLab"},"assigner":"GitLab","products":["NTPsec ntpsec"],"affected":[{"vendor":"NTPsec","product":"ntpsec","versions":[{"version":"=1.2.0","status":"affected"}]}],"references":["https://gitlab.com/NTPsec/ntpsec/-/issues/699","https://bugzilla.redhat.com/show_bug.cgi?id=1955859","https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/"],"weaknesses":[],"ingestedAt":"2026-10-29T19:48:02.192Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/22xxx/CVE-2021-22212.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-22212","state":"PUBLISHED","datePublished":"2021-06-08T12:07:02.000Z","dateUpdated":"2024-08-03T18:37:18.446Z","assignerShortName":"GitLab","assignerOrgId":"ceab7361-8a18-47b1-92ba-4d7d25f6715a","dateReserved":"2021-01-05T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"NTPsec","product":"ntpsec","versions":[{"version":"=1.2.0","status":"affected"}]}],"references":[{"url":"https://gitlab.com/NTPsec/ntpsec/-/issues/699","tags":["x_refsource_MISC"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1955859","tags":["x_refsource_MISC"]},{"url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/","name":"FEDORA-2021-3ffc890685","tags":["vendor-advisory","x_refsource_FEDORA"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":4,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"description":"Improper filtering of special elements in ntpsec","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"GitLab","dateUpdated":"2021-06-26T02:06:11.000Z","orgId":"ceab7361-8a18-47b1-92ba-4d7d25f6715a"},"credits":[{"lang":"en","value":"Maciej Zenczykowski"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@gitlab.com","ID":"CVE-2021-22212","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"ntpsec","version":{"version_data":[{"version_value":"=1.2.0"}]}}]},"vendor_name":"NTPsec"}]}},"credit":[{"lang":"eng","value":"Maciej Zenczykowski"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":3.9,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Improper filtering of special elements in ntpsec"}]}]},"references":{"reference_data":[{"name":"https://gitlab.com/NTPsec/ntpsec/-/issues/699","refsource":"MISC","url":"https://gitlab.com/NTPsec/ntpsec/-/issues/699"},{"name":"https://bugzilla.redhat.com/show_bug.cgi?id=1955859","refsource":"MISC","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1955859"},{"name":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json","refsource":"CONFIRM","url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json"},{"name":"FEDORA-2021-3ffc890685","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://gitlab.com/NTPsec/ntpsec/-/issues/699","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1955859","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/","name":"FEDORA-2021-3ffc890685","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T18:37:18.446Z"}}]}}}