CVE-2021-3798 Information disclosure in opencryptoki
A flaw in openCryptoki allows malicious users to extract private keys via invalid curve attacks due to missing EC key validation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-3798?
CVE-2021-3798 is a medium-severity vulnerability in opencryptoki, published on 23 Aug 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-200
Which versions are affected by CVE-2021-3798?
It affects 1 product.
Linux distribution packages (27)
opencryptoki Red Hat:enterprise_linux:8::baseos | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-ccatok Red Hat:enterprise_linux:8::baseos | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-ccatok-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-debugsource Red Hat:enterprise_linux:8::baseos | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-ep11tok Red Hat:enterprise_linux:8::baseos | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-ep11tok-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-icatok Red Hat:enterprise_linux:8::baseos | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-icatok-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-icsftok Red Hat:enterprise_linux:8::baseos | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-icsftok-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-libs Red Hat:enterprise_linux:8::baseos | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-libs-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-swtok Red Hat:enterprise_linux:8::baseos | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-swtok-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-tpmtok Red Hat:enterprise_linux:8::baseos | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-tpmtok-debuginfo Red Hat:enterprise_linux:8::baseos | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-ccatok-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-debugsource Red Hat:enterprise_linux:8::crb | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-devel Red Hat:enterprise_linux:8::crb | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-ep11tok-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-icatok-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-icsftok-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-libs-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-swtok-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:3.15.1-6.el8_4 |
opencryptoki-tpmtok-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:3.15.1-6.el8_4 |
Products include Opencryptoki Project Opencryptoki.
How do I fix CVE-2021-3798?
Apply the vendor's patch.
Is CVE-2021-3798 being exploited?
There is no known exploitation of CVE-2021-3798 in the wild and no public exploit code.
Other vulnerabilities in opencryptoki
- CVE-2026-40253 openCryptoki: Memory safety vulnerabilities in BER/DER decoders in asn1.c
- CVE-2026-23893 openCryptoki has improper link resolution before file access (link following)
- CVE-2026-22791 openCryptoki incorrectly calculates the buffer size in C_WrapKey with CKM_ECDH_AES_KEY_WRAP
- CVE-2012-4455 Path traversal in n/a
- CVE-2024-0914 Opencryptoki: timing side-channel in handling of rsa pkcs#1 v1.5 padded ciphertexts (marvin)
Sources
Also known as AZL-10659, GHSA-f2gp-jqv6-cmxg, RHBA-2021:3054, UBUNTU-CVE-2021-3798.