{"api_version":"1","generated_at":"2026-07-13T00:06:36+00:00","cve":"CVE-2021-22212","urls":{"html":"https://cve.report/CVE-2021-22212","api":"https://cve.report/api/cve/CVE-2021-22212.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-22212","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-22212"},"summary":{"title":"CVE-2021-22212","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.","state":"PUBLIC","assigner":"cve@gitlab.com","published_at":"2021-06-08 13:15:00","updated_at":"2023-11-07 03:30:00"},"problem_types":["CWE-327"],"metrics":[],"references":[{"url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json","name":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json","refsource":"CONFIRM","tags":[],"title":"2021/CVE-2021-22212.json · master · GitLab.org / cves · GitLab","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/","name":"FEDORA-2021-3ffc890685","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: ntpsec-1.2.1-3.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/","name":"FEDORA-2021-3ffc890685","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: ntpsec-1.2.1-3.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://gitlab.com/NTPsec/ntpsec/-/issues/699","name":"https://gitlab.com/NTPsec/ntpsec/-/issues/699","refsource":"MISC","tags":[],"title":"Not Found","mime":"text/html","httpstatus":"404","archivestatus":"404"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1955859","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1955859","refsource":"MISC","tags":[],"title":"1955859 – ntpd compiled without refclock support","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-22212","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22212","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Maciej Zenczykowski","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"22212","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"22212","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ntpsec","cpe5":"ntpsec","cpe6":"1.2.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-22212","qid":"180039","title":"Debian Security Update for ntpsec (CVE-2021-22212)"},{"cve":"CVE-2021-22212","qid":"281705","title":"Fedora Security Update for ntpsec (FEDORA-2021-3ffc890685)"},{"cve":"CVE-2021-22212","qid":"501888","title":"Alpine Linux Security Update for ntpsec"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ID":"CVE-2021-22212","ASSIGNER":"cve@gitlab.com","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"vendor_name":"NTPsec","product":{"product_data":[{"product_name":"ntpsec","version":{"version_data":[{"version_value":"=1.2.0"}]}}]}}]}},"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","url":"https://gitlab.com/NTPsec/ntpsec/-/issues/699","refsource":"MISC"},{"name":"https://bugzilla.redhat.com/show_bug.cgi?id=1955859","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1955859","refsource":"MISC"},{"name":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json","url":"https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json","refsource":"CONFIRM"},{"refsource":"FEDORA","name":"FEDORA-2021-3ffc890685","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/"}]},"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":{"vectorString":"AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N","attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"NONE","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"REQUIRED","version":"3.1","baseScore":3.9,"baseSeverity":"MEDIUM"}},"credit":[{"lang":"eng","value":"Maciej Zenczykowski"}]},"nvd":{"publishedDate":"2021-06-08 13:15:00","lastModifiedDate":"2023-11-07 03:30:00","problem_types":["CWE-327"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":7.4,"baseSeverity":"HIGH"},"exploitabilityScore":2.2,"impactScore":5.2},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":5.8},"severity":"MEDIUM","exploitabilityScore":8.6,"impactScore":4.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:ntpsec:ntpsec:1.2.0:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"22212","Ordinal":"196913","Title":"CVE-2021-22212","CVE":"CVE-2021-22212","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"22212","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"22212","Ordinal":"2","NoteData":"2021-06-08","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"22212","Ordinal":"3","NoteData":"2021-06-25","Type":"Other","Title":"Modified"}]}}}