Every CVE Search/ Get API key

CVE-2021-3798

A flaw was found in openCryptoki. The openCryptoki Soft token does not check if an EC key is...

5.5 MediumFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
None
Availability
None

Exploit likelihood

0.29%Down 0.7 points since Aug 24, 2022
90%50%10%1%

What each source reports

NVD Score used 5.5

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.

Record
CVE-2021-3798
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-200
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2021-3798
Weakness
CWE-200
Updated
2026-11-02
EUVDEUVD-2021-27058 No score

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.

Record
EUVD-2021-27058
Updated
2026-11-03
GitHub AdvisoriesGHSA-f2gp-jqv6-cmxg 5.5

A flaw was found in openCryptoki. The openCryptoki Soft token does not check if an EC key is...

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.

Record
GHSA-f2gp-jqv6-cmxg
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-200, CWE-295
Updated
2026-11-02
OSVAZL-10659 5.5

CVE-2021-3798 affecting package opencryptoki for versions less than 3.17.0-1

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.

Record
AZL-10659
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSV 5.5

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.

Record
CVE-2021-3798
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVRHBA-2021:3054 5.1

Red Hat Bug Fix Advisory: opencryptoki bug fix and enhancement update

Record
RHBA-2021:3054
CVSS 3.1
5.1 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVUBUNTU-CVE-2021-3798 5.5

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.

Record
UBUNTU-CVE-2021-3798
CVSS 3.1
5.5 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
opencryptoki
Azure Linux:2
before 3.17.0-1
3.17.0-1
opencryptoki
Red Hat:enterprise_linux:8::baseos
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-ccatok
Red Hat:enterprise_linux:8::baseos
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-ccatok-debuginfo
Red Hat:enterprise_linux:8::baseos
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-debuginfo
Red Hat:enterprise_linux:8::baseos
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-debugsource
Red Hat:enterprise_linux:8::baseos
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-ep11tok
Red Hat:enterprise_linux:8::baseos
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-ep11tok-debuginfo
Red Hat:enterprise_linux:8::baseos
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-icatok
Red Hat:enterprise_linux:8::baseos
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-icatok-debuginfo
Red Hat:enterprise_linux:8::baseos
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
Show 26 moreShow less
Affected packages
PackageAffectedFixed
opencryptoki-icsftok
Red Hat:enterprise_linux:8::baseos
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-icsftok-debuginfo
Red Hat:enterprise_linux:8::baseos
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-libs
Red Hat:enterprise_linux:8::baseos
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-libs-debuginfo
Red Hat:enterprise_linux:8::baseos
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-swtok
Red Hat:enterprise_linux:8::baseos
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-swtok-debuginfo
Red Hat:enterprise_linux:8::baseos
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-tpmtok
Red Hat:enterprise_linux:8::baseos
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-tpmtok-debuginfo
Red Hat:enterprise_linux:8::baseos
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-ccatok-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-debugsource
Red Hat:enterprise_linux:8::crb
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-devel
Red Hat:enterprise_linux:8::crb
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-ep11tok-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-icatok-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-icsftok-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-libs-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-swtok-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki-tpmtok-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:3.15.1-6.el8_4
0:3.15.1-6.el8_4
opencryptoki
Ubuntu:16.04:LTS
All versions, plus listed versions
2.3.1+dfsg-3ubuntu53.4.1+dfsg-1ubuntu13.4.1+dfsg-1ubuntu23.4.1+dfsg-1ubuntu33.4.1+dfsg-1ubuntu43.4.1+dfsg-1ubuntu4.1
None known
opencryptoki
Ubuntu:18.04:LTS
All versions, plus listed versions
3.7.0+dfsg-43.8.1+dfsg-23.8.1+dfsg-33.8.2+dfsg-0ubuntu13.9.0+dfsg-0ubuntu1
Show 4 moreShow less
3.9.0+dfsg-0ubuntu1.13.9.0+dfsg-0ubuntu1.23.9.0+dfsg-0ubuntu1.33.9.0+dfsg-0ubuntu1.4
None known
opencryptoki
Ubuntu:20.04:LTS
All versions, plus listed versions
3.11.1+dfsg-0ubuntu23.11.1+dfsg-0ubuntu33.12.1+dfsg-0ubuntu13.13.0+dfsg-0ubuntu43.13.0+dfsg-0ubuntu53.13.0+dfsg-0ubuntu5.13.13.0+dfsg-0ubuntu5.2
None known
opencryptoki
Ubuntu:22.04:LTS
All versions, plus listed versions
3.16.0+dfsg-0ubuntu13.16.0+dfsg-0ubuntu23.16.0+dfsg-0ubuntu33.17.0+dfsg+20220202.b40982e-0ubuntu13.17.0+dfsg+20220202.b40982e-0ubuntu1.13.17.0+dfsg+20220202.b40982e-0ubuntu1.23.17.0+dfsg+20220202.b40982e-0ubuntu1.3
None known
opencryptoki
Ubuntu:24.04:LTS
All versions, plus listed versions
3.21.0+dfsg-0ubuntu13.21.0+dfsg-0ubuntu23.22.0+dfsg-0ubuntu13.23.0+dfsg-0ubuntu13.23.0+dfsg-0ubuntu23.23.0+dfsg-0ubuntu33.23.0+dfsg-0ubuntu3.1
None known
opencryptoki
Ubuntu:25.10
All versions, plus listed versions
3.24.0+git20250128.0462717+dfsg-0ubuntu13.25.0+dfsg-0ubuntu1
None known
opencryptoki
Ubuntu:26.10
All versions, plus listed versions
3.26.0+dfsg-0ubuntu13.27.0+dfsg-0ubuntu13.27.0+dfsg-0ubuntu2
None known
opencryptoki
Ubuntu:26.04:LTS
All versions, plus listed versions
3.25.0+dfsg-0ubuntu13.26.0+dfsg-0ubuntu13.26.0+dfsg-0ubuntu1.1
None known

History

History
RecordedChangedSources
aliases, productsEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-3798 is a medium vulnerability (CVSS 5.5) in Opencryptoki, published August 23, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.29%, the 21st percentile. Fixed in opencryptoki 3.17.0-1.

References

Show 5 moreShow less
MoveEnter Open