cve.bz

CVE-2021-3798 opencryptoki project opencryptoki

5.5 mediumEPSS 0.3%Fix available

Medium (5.5) in opencryptoki project opencryptoki. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 21st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3798 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3798?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3798?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3798 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
opencryptoki_project:opencryptokibefore 3.17.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 moreopencryptokino fix listedUBUNTU-CVE-2021-3798
Red Hatenterprise_linux:8::baseosopencryptoki, opencryptoki-libs, opencryptoki-swtok and 14 more0:3.15.1-6.el8_4RHBA-2021:3054
Red Hatenterprise_linux:8::crbopencryptoki-devel, opencryptoki-debuginfo, opencryptoki-debugsource and 7 more0:3.15.1-6.el8_4RHBA-2021:3054
Azure Linux2opencryptoki3.17.0-1AZL-10659

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8opencryptoki-0:3.15.1-6.el8_4Fixed 2021-08-10RHBA-2021:3054
Red Hat Enterprise Linux 6opencryptokiNot affected
Red Hat Enterprise Linux 7opencryptokiNot affected
Red Hat Enterprise Linux 9opencryptokiNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3798.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON