{"id":"CVE-2021-22212","aliases":["ALPINE-CVE-2021-22212","DEBIAN-CVE-2021-22212","EUVD-2021-9358","GHSA-57r9-f9gp-9f2x","openSUSE-SU-2024:11103-1"],"status":"published","title":"ntpkeygen can generate keys that ntpd fails to parse. NTPsec 1.2.0 allows ntpkeygen to generate...","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.","severity":{"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","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00522,"percentile":0.448,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-327"],"published":"2021-06-08T12:07:02Z","modified":"2026-11-03T06:32:27Z","fixes":[{"ecosystem":"Alpine:v3.14","package":"ntpsec","fixed_in":["1.2.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"ntpsec","fixed_in":["1.2.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"ntpsec","fixed_in":["1.2.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"ntpsec","fixed_in":["1.2.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"ntpsec","fixed_in":["1.2.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"ntpsec","fixed_in":["1.2.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"ntpsec","fixed_in":["1.2.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"ntpsec","fixed_in":["1.2.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"ntpsec","fixed_in":["1.2.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"ntpsec","fixed_in":["1.2.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"ntpsec","fixed_in":["1.2.1-r0"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"ntpsec","fixed_in":["1.2.0+dfsg1-4"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"ntpsec","fixed_in":["1.2.0+dfsg1-4"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"ntpsec","fixed_in":["1.2.0+dfsg1-4"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.14","package":"ntpsec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"ntpsec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"ntpsec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"ntpsec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"ntpsec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"ntpsec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"ntpsec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"ntpsec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"ntpsec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"ntpsec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"ntpsec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1-r0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"ntpsec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0+dfsg1-4"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"ntpsec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0+dfsg1-4"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"ntpsec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0+dfsg1-4"}]}]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"ntpsec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.1-1.2"}]}],"bundled":5}],"products":[{"vendor":"fedoraproject","product":"fedora"},{"vendor":"ntpsec","product":"ntpsec"}],"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"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22212"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/"},{"url":"https://github.com/advisories/GHSA-57r9-f9gp-9f2x"},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-22212","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-22212","tags":["advisory"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2018-7182","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-6442","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-6443","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-6445","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-22212","tags":["web"]}],"sources":{"cve":[{"id":"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.","status":"published","published":"2021-06-08T12:07:02Z","modified":"2024-08-03T18:37:18.446Z","cvss":[{"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","level":"medium","assessor":"cna"}],"updated_at":"2026-11-02T14:32:58.028461Z"}],"euvd":[{"id":"EUVD-2021-9358","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.","status":"published","published":"2021-06-08T12:07:02Z","modified":"2024-08-03T18:37:18Z","cvss":[{"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","level":"medium"}],"updated_at":"2026-11-03T03:25:03.183524Z"}],"ghsa":[{"id":"GHSA-57r9-f9gp-9f2x","title":"ntpkeygen can generate keys that ntpd fails to parse. NTPsec 1.2.0 allows ntpkeygen to generate...","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.","status":"published","published":"2022-05-24T19:04:22Z","modified":"2023-01-29T05:06:28Z","cvss":[{"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","level":"high"}],"cwes":["CWE-327"],"updated_at":"2026-11-02T14:46:01.927509Z"}],"nvd":[{"id":"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.","status":"published","published":"2021-06-08T13:15:07.567Z","modified":"2026-06-17T03:36:48.917Z","cvss":[{"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","level":"medium","assessor":"secondary"},{"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","level":"high","assessor":"primary"},{"version":"2.0","score":5.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-327"],"updated_at":"2026-11-02T14:06:54.439974Z"}],"osv":[{"id":"ALPINE-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.","status":"published","published":"2021-06-08T13:15:07.567Z","modified":"2026-11-03T06:32:27.380716243Z","cvss":[{"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","level":"high"}],"updated_at":"2026-11-03T07:17:57.723967Z"},{"id":"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.","status":"published","published":"2021-06-08T13:15:07.567Z","modified":"2026-10-24T10:50:11.344493787Z","cvss":[{"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","level":"high"}],"updated_at":"2026-11-02T15:44:18.367807Z"},{"id":"DEBIAN-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.","status":"published","published":"2021-06-08T13:15:07.567Z","modified":"2026-10-23T18:03:11.704547223Z","cvss":[{"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","level":"high"}],"updated_at":"2026-11-02T15:45:34.637046Z"},{"id":"openSUSE-SU-2024:11103-1","title":"libntpc1-1.2.1-1.2 on GA media","description":"These are all security issues fixed in the libntpc1-1.2.1-1.2 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T03:54:48.418846Z","updated_at":"2026-11-02T16:58:34.894275Z"}]}}
