
CVE catalog
CVE-2021-22212
ntpsec: CVE-2021-22212
- Severity
- High · CVSS 7.4
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.52% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ntpsec | sid | 1.2.5+dfsg-1 | fixed |
| Debian | ntpsec | forky | 1.2.5+dfsg-1 | fixed |
| Debian | ntpsec | trixie | 1.2.3+dfsg1-8 | fixed |
| Debian | ntpsec | bookworm | 1.2.2+dfsg1-1+deb12u1 | fixed |
| Debian | ntpsec | bookworm-security | 1.2.2+dfsg1-1+deb12u1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ntpsec | source | sid | 1.2.0+dfsg1-4 | not yet assigned | Not reported | [989847] |
| Debian | ntpsec | source | forky | 1.2.0+dfsg1-4 | not yet assigned | Not reported | [989847] |
| Debian | ntpsec | source | trixie | 1.2.0+dfsg1-4 | not yet assigned | Not reported | [989847] |
| Debian | ntpsec | source | bookworm | 1.2.0+dfsg1-4 | not yet assigned | Not reported | [989847] |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ntp]Fixed
Source package: [ntpsec]
Details (4)
1:4.2.8p15+dfsg-2~1.2.2+dfsg1-1+deb12u1· all · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1:4.2.8p15+dfsg-2~1.2.2+dfsg1-1+deb12u1· all · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1:4.2.8p15+dfsg-2~1.2.2+dfsg1-1+deb12u1· all · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1:4.2.8p15+dfsg-2~1.2.2+dfsg1-1+deb12u1· all · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
- [ntpdate]Fixed
Source package: [ntpsec]
Details (4)
1:4.2.8p15+dfsg-2~1.2.2+dfsg1-1+deb12u1· all · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1:4.2.8p15+dfsg-2~1.2.2+dfsg1-1+deb12u1· all · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1:4.2.8p15+dfsg-2~1.2.2+dfsg1-1+deb12u1· all · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1:4.2.8p15+dfsg-2~1.2.2+dfsg1-1+deb12u1· all · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
- [ntp-doc]Fixed
Source package: [ntpsec]
Details (4)
1:4.2.8p15+dfsg-2~1.2.2+dfsg1-1+deb12u1· all · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1:4.2.8p15+dfsg-2~1.2.2+dfsg1-1+deb12u1· all · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1:4.2.8p15+dfsg-2~1.2.2+dfsg1-1+deb12u1· all · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1:4.2.8p15+dfsg-2~1.2.2+dfsg1-1+deb12u1· all · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
- [ntpsec]Fixed
Details (4)
1.2.2+dfsg1-1+deb12u1· amd64 · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1.2.2+dfsg1-1+deb12u1· arm64 · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1.2.2+dfsg1-1+deb12u1· amd64 · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1.2.2+dfsg1-1+deb12u1· arm64 · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
- [ntpsec-doc]Fixed
Source package: [ntpsec]
Details (4)
1.2.2+dfsg1-1+deb12u1· all · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1.2.2+dfsg1-1+deb12u1· all · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1.2.2+dfsg1-1+deb12u1· all · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1.2.2+dfsg1-1+deb12u1· all · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
- [ntpsec-ntpdate]Fixed
Source package: [ntpsec]
Details (4)
1.2.2+dfsg1-1+deb12u1· amd64 · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1.2.2+dfsg1-1+deb12u1· arm64 · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1.2.2+dfsg1-1+deb12u1· amd64 · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1.2.2+dfsg1-1+deb12u1· arm64 · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
- [ntpsec-ntpdig]Fixed
Source package: [ntpsec]
Details (4)
1.2.2+dfsg1-1+deb12u1· amd64 · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1.2.2+dfsg1-1+deb12u1· arm64 · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1.2.2+dfsg1-1+deb12u1· amd64 · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1.2.2+dfsg1-1+deb12u1· arm64 · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
- [ntpsec-ntpviz]Fixed
Source package: [ntpsec]
Details (4)
1.2.2+dfsg1-1+deb12u1· amd64 · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1.2.2+dfsg1-1+deb12u1· arm64 · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1.2.2+dfsg1-1+deb12u1· amd64 · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1.2.2+dfsg1-1+deb12u1· arm64 · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
- [python3-ntp]Fixed
Source package: [ntpsec]
Details (4)
1.2.2+dfsg1-1+deb12u1· amd64 · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1.2.2+dfsg1-1+deb12u1· arm64 · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1.2.2+dfsg1-1+deb12u1· amd64 · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1.2.2+dfsg1-1+deb12u1· arm64 · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
- [sntp]Fixed
Source package: [ntpsec]
Details (4)
1:4.2.8p15+dfsg-2~1.2.2+dfsg1-1+deb12u1· all · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1:4.2.8p15+dfsg-2~1.2.2+dfsg1-1+deb12u1· all · bookwormFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1:4.2.8p15+dfsg-2~1.2.2+dfsg1-1+deb12u1· all · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
1:4.2.8p15+dfsg-2~1.2.2+dfsg1-1+deb12u1· all · bookworm-securityFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · bookworm; dsa · ntpsec · debian · 12
[Debian 13 (Trixie)]
- [ntpsec]Fixed
Details (2)
1.2.3+dfsg1-8· amd64 · trixieFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · 13
1.2.3+dfsg1-8· arm64 · trixieFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · 13
- [ntpsec-doc]Fixed
Source package: [ntpsec]
Details (2)
1.2.3+dfsg1-8· all · trixieFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · 13
1.2.3+dfsg1-8· all · trixieFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · 13
- [ntpsec-ntpdate]Fixed
Source package: [ntpsec]
Details (2)
1.2.3+dfsg1-8· amd64 · trixieFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · 13
1.2.3+dfsg1-8· arm64 · trixieFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · 13
- [ntpsec-ntpdig]Fixed
Source package: [ntpsec]
Details (2)
1.2.3+dfsg1-8· amd64 · trixieFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · 13
1.2.3+dfsg1-8· arm64 · trixieFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · 13
- [ntpsec-ntpviz]Fixed
Source package: [ntpsec]
Details (2)
1.2.3+dfsg1-8· amd64 · trixieFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · 13
1.2.3+dfsg1-8· arm64 · trixieFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · 13
- [python3-ntp]Fixed
Source package: [ntpsec]
Details (2)
1.2.3+dfsg1-8· amd64 · trixieFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · 13
1.2.3+dfsg1-8· arm64 · trixieFixed · Fixed:
1.2.0+dfsg1-4dsa · ntpsec · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2024_11103-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-22212]
- [https://security-tracker.debian.org/tracker/CVE-2021-22212]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]