CVE-2021-3798 json
A flaw was found in openCryptoki.
published 2022-08-23 4 y ago modified 2026-06-17 4 mo ago also EUVD-2021-27058
- cvss
- 5.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 21%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- opencryptoki_project opencryptoki 3.17.0
- opencryptoki RHEL 8 3.15.1-6.el8_4
- opencryptoki-libs RHEL 8 3.15.1-6.el8_4
- opencryptoki-swtok RHEL 8 3.15.1-6.el8_4
- opencryptoki-ccatok RHEL 8 3.15.1-6.el8_4
- opencryptoki-icatok RHEL 8 3.15.1-6.el8_4
- opencryptoki-tpmtok RHEL 8 3.15.1-6.el8_4
- opencryptoki-ep11tok RHEL 8 3.15.1-6.el8_4
- opencryptoki-icsftok RHEL 8 3.15.1-6.el8_4
red hat advisories RHBA-2021:3054
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-3798 updated cvss 5.1
openCryptoki: Soft token does not check if an EC key is valid
-
Red Hat CodeReady Linux Builder (v. 8) opencryptoki-devel 3.15.1-6.el8_4, opencryptoki-debuginfo 3.15.1-6.el8_4, opencryptoki-debugsource 3.15.1-6.el8_4, opencryptoki-libs-debuginfo 3.15.1-6.el8_4, opencryptoki-swtok-debuginfo 3.15.1-6.el8_4, opencryptoki-ccatok-debuginfo 3.15.1-6.el8_4, +4 more Red Hat Enterprise Linux BaseOS (v. 8) opencryptoki 3.15.1-6.el8_4, opencryptoki-libs 3.15.1-6.el8_4, opencryptoki-swtok 3.15.1-6.el8_4, opencryptoki-ccatok 3.15.1-6.el8_4, opencryptoki-icatok 3.15.1-6.el8_4, opencryptoki-tpmtok 3.15.1-6.el8_4, +2 morefixed: vendor fix RHBA-2021:3054
-
Red Hat Enterprise Linux 6 opencryptoki, opencryptoki-libs Red Hat Enterprise Linux 7 opencryptoki, opencryptoki-libs, opencryptoki-swtok, opencryptoki-ccatok, opencryptoki-icatok, opencryptoki-tpmtok, +2 more Red Hat Enterprise Linux 9 opencryptoki, opencryptoki-libs, opencryptoki-swtok, opencryptoki-ccatok, opencryptoki-icatok, opencryptoki-ep11tok, +1 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.29% chance of exploitation in the next 30 days, higher than 21% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected products
- n/a opencryptoki
Classification
- Weakness
-
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
References
-
github.com
/opencryptoki/opencryptoki/pull/402
patch, third-party-advisory
-
github.com
/opencryptoki/opencryptoki/commit/4e3b43c3d8844402c04a66b55c6c940f965109f0
patch, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=1990591
issue-tracking, patch, third-party-advisory
-
access.redhat.com
/security/cve/CVE-2021-3798
third-party-advisory
Sources
- CVE List CVE-2021-3798
- NVD CVE-2021-3798
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.