CVE-2021-3798
published 2022-08-23CVE-2021-3798: 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…
PriorityP425medium5.5CVSS 3.1
AVLACLPRLUINSUCHINAN
EPSS
0.27%
18.3th percentile
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.
Affected
4 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | opencryptoki | — | — |
| msrc | cbl2_opencryptoki_3.17.0-1_on_cbl_mariner_2.0 | — | — |
| opencryptoki_project | opencryptoki | < 3.17.0 | 3.17.0 |
| opencryptoki_project | opencryptoki | — | — |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
osv5.5MEDIUM
vendor_debian5.5LOW
vendor_msrc5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-f2gp-jqv6-cmxg: A flaw was found in openCryptoki
ghsa_unreviewed·2022-08-24
CVE-2021-3798 [MEDIUM] CWE-200 GHSA-f2gp-jqv6-cmxg: A flaw was found in openCryptoki
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.
OSV
CVE-2021-3798: A flaw was found in openCryptoki
osv·2022-08-23·CVSS 5.5
CVE-2021-3798 [MEDIUM] CVE-2021-3798: A flaw was found in openCryptoki
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.
Microsoft
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
vendor_msrc·2022-08-09·CVSS 5.5
CVE-2021-3798 [MEDIUM] CWE-200 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
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.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog
Red Hat
openCryptoki: Soft token does not check if an EC key is valid
vendor_redhat·2021-05-18·CVSS 5.5
CVE-2021-3798 [MEDIUM] CWE-200 openCryptoki: Soft token does not check if an EC key is valid
openCryptoki: Soft token does not check if an EC key is valid
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.
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.
Mitigation: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteri
Debian
CVE-2021-3798: opencryptoki - A flaw was found in openCryptoki. The openCryptoki Soft token does not check if ...
vendor_debian·2021·CVSS 5.5
CVE-2021-3798 [MEDIUM] CVE-2021-3798: opencryptoki - A flaw was found in openCryptoki. The openCryptoki Soft token does not check if ...
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.
Scope: local
bookworm: resolved
bullseye: resolved
forky: resolved
sid: resolved
trixie: resolved
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://access.redhat.com/security/cve/CVE-2021-3798https://bugzilla.redhat.com/show_bug.cgi?id=1990591https://github.com/opencryptoki/opencryptoki/commit/4e3b43c3d8844402c04a66b55c6c940f965109f0https://github.com/opencryptoki/opencryptoki/pull/402https://access.redhat.com/security/cve/CVE-2021-3798https://bugzilla.redhat.com/show_bug.cgi?id=1990591https://github.com/opencryptoki/opencryptoki/commit/4e3b43c3d8844402c04a66b55c6c940f965109f0https://github.com/opencryptoki/opencryptoki/pull/402
2022-08-23
Published