Vulnerability · Published Aug 23, 2022 · Assigned by redhat
CVE-2021-3798
Medium 5.5
In plain English
A medium-severity information exposure in opencryptoki. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 21% of all known vulnerabilities).
Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)0.3%top 78.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu:22.04:LTS | opencryptoki | no fix listed | UBUNTU-CVE-2021-3798 |
| Ubuntu:24.04:LTS | opencryptoki | no fix listed | UBUNTU-CVE-2021-3798 |
| Ubuntu:25.10 | opencryptoki | no fix listed | UBUNTU-CVE-2021-3798 |
| Ubuntu:26.04:LTS | opencryptoki | no fix listed | UBUNTU-CVE-2021-3798 |
| Ubuntu:26.10 | opencryptoki | no fix listed | UBUNTU-CVE-2021-3798 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | opencryptoki | Fixed in v3.17.0 |
Weakness: CWE-200
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1990591 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2021-3798 x_refsource_MISC
- https://github.com/opencryptoki/opencryptoki/pull/402 x_refsource_MISC
- https://github.com/opencryptoki/opencryptoki/commit/4e3b43c3d8844402c04a66b55c6c940f965109f0 x_refsource_MISC