CVE-2021-22212
published medium CVSS 3.1 · 4.0ntpsec: ntpkeygen can generate keys that ntpd fails to parse
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| NTPsec | — | ntpsec=1.2.0 | Affected | Not stated | GitLab |
| Alpine Linux | edge | ntpsec | Fixed | 1.2.1-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | ntpsecaarch64 | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| Alpine Linux | v3.14 | ntpsec | Fixed | 1.2.1-r0 | Package fix record |
| Alpine Linux | v3.15 | ntpsec | Fixed | 1.2.1-r0 | Package fix record |
| Alpine Linux | v3.16 | ntpsec | Fixed | 1.2.1-r0 | Package fix record |
| Alpine Linux | v3.17 | ntpsec | Fixed | 1.2.1-r0 | Package fix record |
| Alpine Linux | v3.18 | ntpsec | Fixed | 1.2.1-r0 | Package fix record |
Show 29 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.19 | ntpsec | Fixed | 1.2.1-r0 | Package fix record |
| Alpine Linux | v3.20 | ntpsec | Fixed | 1.2.1-r0 | Package fix record |
| Alpine Linux | v3.21 | ntpsec | Fixed | 1.2.1-r0 | Package fix record |
| Alpine Linux | v3.22 | ntpsec | Fixed | 1.2.1-r0 | Package fix record |
| Alpine Linux | v3.23 | ntpsec | Fixed | 1.2.1-r0 | Package fix record |
| Alpine Linux | v3.24 | ntpsec | Fixed | 1.2.1-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | ntpsecppc64le | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ntpsecs390x | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ntpsecx86_64 | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libntpc1aarch64 | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libntpc1ppc64le | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libntpc1s390x | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libntpc1x86_64 | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ntpsec-develaarch64 | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ntpsec-develppc64le | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ntpsec-devels390x | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ntpsec-develx86_64 | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ntpsec-docaarch64 | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ntpsec-docppc64le | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ntpsec-docs390x | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ntpsec-docx86_64 | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ntpsec-utilsaarch64 | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ntpsec-utilsppc64le | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ntpsec-utilss390x | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ntpsec-utilsx86_64 | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python3-ntpaarch64 | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python3-ntpppc64le | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python3-ntps390x | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python3-ntpx86_64 | Advisory build | 1.2.1-1.2 | OPENSUSE-SU-2024:11103-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.0 / 10
- Severity
- medium
- Provider
- GitLab · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| NTPsec | ntpsec | =1.2.0 (affected) | GitLab · cna |
Weaknesses
1- Improper filtering of special elements in ntpsec
References
4- https://bugzilla.redhat.com/show_bug.cgi?id=1955859
- https://gitlab.com/NTPsec/ntpsec/-/issues/699
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json
- FEDORA-2021-3ffc890685 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/
Provider assertions
2GitLab · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5374b786c1ea707c44d5314a810e14b68209fcfa861715796f1a0997bacd05a5
- Ingested
- 23 Sep 2026, 07:52:37 UTC
- Source record
- Official CVE record