Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-22212

published medium CVSS 3.1 · 4.0

ntpsec: ntpkeygen can generate keys that ntpd fails to parse

Title from Red Hat VEX

Published
08 Jun 2021, 12:07:02 UTC
Updated
03 Aug 2024, 18:37:18 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
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 / vendorReleasePackage / productPublisher statusFixed buildSource
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.

en · GitLab · cna

Vendor advisories explicitly linked to this CVE.

13

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.

Affected vendor and product assertions
VendorProductVersion statusSource
NTPsec ntpsec =1.2.0 (affected) GitLab · cna

Weaknesses

1
  • Improper filtering of special elements in ntpsec (GitLab · cna)

References

4

Provider assertions

2

GitLab · 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

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected