CVE-2021-22212

Source
https://cve.org/CVERecord?id=CVE-2021-22212
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-22212.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-22212
Downstream
Related
Published
2021-06-08T13:15:07.567Z
Modified
2026-07-08T05:57:31.476195749Z
Severity
  • 7.4 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "unresolved_ranges": [
        {
            "source": "CPE_STRING",
            "cpes": [
                "cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
                {
                    "introduced": "34"
                },
                {
                    "last_affected": "34"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/ntpsec/ntpsec

Affected ranges

Type
GIT
Repo
https://github.com/ntpsec/ntpsec
Events
Database specific
{
    "cpe": "cpe:2.3:a:ntpsec:ntpsec:1.2.0:*:*:*:*:*:*:*",
    "source": "CPE_STRING",
    "extracted_events": [
        {
            "introduced": "1.2.0"
        },
        {
            "last_affected": "1.2.0"
        }
    ]
}

Affected versions

1.*
1.2.0
Other
NTPsec_1_2_0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-22212.json"