CVE-2021-22212: NTPsec - Man-in-the-Middle
- Cve: CVE-2021-22212
- Name: NTPsec - Man-in-the-Middle
- 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.
- Impact: Attackers can perform man-in-the-middle attacks by exploiting improperly parsed or shortened keys, compromising time synchronization integrity.
- Remediation: Update to the latest version of NTPsec where this issue is fixed or apply available patches to handle '#' characters in keys.
- Vulnerability impact: man_in_the_middle
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.4
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- Epss score: 0.00522
- Epss percentile: 0.44906
- Assignee: [email protected]
- Published at: 2021-06-08T13:15:07Z
- Age in days: 1995
- Modified at: 2026-06-17T03:36:48Z
- Patch available: yes
- References total: 4
- Products total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-22212
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: vulnerability type, requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-327 | Use of a Broken or Risky Cryptographic Algorithm |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://bugzilla.redhat.com/show_bug.cgi?id=1955859 | Issue Tracking, Patch, Third Party Advisory |
| https://gitlab.com/NTPsec/ntpsec/-/issues/699 | Issue Tracking, Patch, Third Party Advisory |
| https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json | Third Party Advisory |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/ |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| ntpsec:ntpsec | = 1.2.0 | no | nvd | /v1/products/ntpsec/ntpsec |
| fedoraproject:fedora | = 34 | no | nvd | /v1/products/fedoraproject/fedora |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Exposed hosts: 49161
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports