7.4
HIGH CVSS 3.1
CVE-2021-22212
NTPsec NTP Key Generation Vulnerability - Uncontrolled Sequence of Characters
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.

INFO

Published Date :

June 8, 2021, 1:15 p.m.

Last Modified :

Nov. 21, 2024, 5:49 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2021-22212 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Fedoraproject fedora
1 Ntpsec ntpsec
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 MEDIUM [email protected]
CVSS 3.1 MEDIUM [email protected]
CVSS 3.1 HIGH [email protected]
References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-22212 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-22212 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-22212 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=1955859
    Added Reference https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json
    Added Reference https://gitlab.com/NTPsec/ntpsec/-/issues/699
    Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Nov. 07, 2023

    Action Type Old Value New Value
    Added Reference GitLab Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/ [No types assigned]
    Removed Reference GitLab Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/
  • Modified Analysis by [email protected]

    Jun. 04, 2022

    Action Type Old Value New Value
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/ Mailing List, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Jun. 26, 2021

    Action Type Old Value New Value
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/3GIT2HYL5BQXPGKI6ZDNG473IEQ5WQF2/ [No Types Assigned]
  • Initial Analysis by [email protected]

    Jun. 21, 2021

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:P/I:P/A:N)
    Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
    Changed Reference Type https://bugzilla.redhat.com/show_bug.cgi?id=1955859 No Types Assigned https://bugzilla.redhat.com/show_bug.cgi?id=1955859 Issue Tracking, Patch, Third Party Advisory
    Changed Reference Type https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json No Types Assigned https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22212.json Third Party Advisory
    Changed Reference Type https://gitlab.com/NTPsec/ntpsec/-/issues/699 No Types Assigned https://gitlab.com/NTPsec/ntpsec/-/issues/699 Issue Tracking, Patch, Third Party Advisory
    Added CWE NIST CWE-327
    Added CPE Configuration OR *cpe:2.3:a:ntpsec:ntpsec:1.2.0:*:*:*:*:*:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.4
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Base CVSS Score: 5.8
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.14 }} 0.10%

score

0.35012

percentile