Medium severity · published Aug 23, 2022
CVE-2021-3798
A flaw was found in openCryptoki
5.5
CVSS
0.3%
EPSS
No
On KEV
Description
A flaw was found in openCryptoki. The openCryptoki Soft token does not check if an EC key is valid when an EC key is created via C_CreateObject, nor when C_DeriveKey is used with ECDH public data. This may allow a malicious user to extract the private key by performing an invalid curve attack.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 21% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
OP
Opencryptoki · Opencryptoki Project
before 3.17.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-3798
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-3798
Third Party Advisory
https://access.redhat.com/security/cve/CVE-2021-3798
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=1990591
Patch
https://github.com/opencryptoki/opencryptoki/commit/4e3b43c3d8844402c04a66b55c6c940f965109f0
Patch
https://github.com/opencryptoki/opencryptoki/pull/402
More from Opencryptoki
6.8
CVE-2026-23893
openCryptoki has improper link resolution before file access (link following)
6.1
CVE-2026-40253
openCryptoki: Memory safety vulnerabilities in BER/DER decoders in asn1.c
6.1
CVE-2026-22791
openCryptoki incorrectly calculates the buffer size in C_WrapKey with CKM_ECDH_AES_KEY_WRAP
5.9
CVE-2024-0914
Opencryptoki: timing side-channel in handling of rsa pkcs#1 v1.5 padded ciphertexts (marvin)
–
CVE-2012-4455
openCryptoki 2.4.1 allows local users to create or set world-writable permissions on arbitrary files via a symlink attack on the (1) LCK..opencryptoki or (2)…
