CVEfocus › CVE database › CVE-2021-3798

CVE-2021-3798

CVSS 5.1 MediumEPSS 0.3% (higher than 14% of CVEs)Published 2022-08-23Updated 2024-08-03Assigner: redhat

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.

CWE-200

What to do

Fixed builds are available from Red Hat: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

9Fixed
1Fix pending
3Under investigation
5Will not fix
20Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10opencryptokiFix pendingUBUNTU-CVE-2021-3798
Ubuntu 26.04opencryptokiUnder investigationUBUNTU-CVE-2021-3798
Ubuntu 25.10opencryptokiWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-3798
Ubuntu 24.04opencryptokiUnder investigationUBUNTU-CVE-2021-3798
Ubuntu 22.04opencryptokiUnder investigationUBUNTU-CVE-2021-3798
Ubuntu 20.04opencryptokiWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-3798
Ubuntu 18.04opencryptokiWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-3798
Ubuntu 16.04opencryptokiWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-3798
Ubuntu 14.04opencryptokiWill not fix
Ubuntu decided not to fix this in this release
Red Hat Enterprise Linux 9opencryptokiNot affected
Red Hat Enterprise Linux 9opencryptoki-ccatokNot affected
Red Hat Enterprise Linux 9opencryptoki-develNot affected
Red Hat Enterprise Linux 9opencryptoki-ep11tokNot affected
Red Hat Enterprise Linux 9opencryptoki-icatokNot affected
Red Hat Enterprise Linux 9opencryptoki-icsftokNot affected
Red Hat Enterprise Linux 9opencryptoki-libsNot affected
Red Hat Enterprise Linux 9opencryptoki-swtokNot affected
Red Hat Enterprise Linux 8opencryptokiFixed0:3.15.1-6.el8_4RHBA-2021:3054
Red Hat Enterprise Linux 8opencryptoki-ccatokFixed0:3.15.1-6.el8_4RHBA-2021:3054
Red Hat Enterprise Linux 8opencryptoki-develFixed0:3.15.1-6.el8_4RHBA-2021:3054
Red Hat Enterprise Linux 8opencryptoki-ep11tokFixed0:3.15.1-6.el8_4RHBA-2021:3054
Red Hat Enterprise Linux 8opencryptoki-icatokFixed0:3.15.1-6.el8_4RHBA-2021:3054
Red Hat Enterprise Linux 8opencryptoki-icsftokFixed0:3.15.1-6.el8_4RHBA-2021:3054
Red Hat Enterprise Linux 8opencryptoki-libsFixed0:3.15.1-6.el8_4RHBA-2021:3054
Red Hat Enterprise Linux 8opencryptoki-swtokFixed0:3.15.1-6.el8_4RHBA-2021:3054
Red Hat Enterprise Linux 8opencryptoki-tpmtokFixed0:3.15.1-6.el8_4RHBA-2021:3054
Red Hat Enterprise Linux 7opencryptokiNot affected
Red Hat Enterprise Linux 7opencryptoki-ccatokNot affected
Red Hat Enterprise Linux 7opencryptoki-develNot affected
Red Hat Enterprise Linux 7opencryptoki-ep11tokNot affected
Red Hat Enterprise Linux 7opencryptoki-icatokNot affected
Red Hat Enterprise Linux 7opencryptoki-icsftokNot affected
Red Hat Enterprise Linux 7opencryptoki-libsNot affected
Red Hat Enterprise Linux 7opencryptoki-swtokNot affected
Red Hat Enterprise Linux 7opencryptoki-tpmtokNot affected
Red Hat Enterprise Linux 6opencryptokiNot affected
Red Hat Enterprise Linux 6opencryptoki-develNot affected
Red Hat Enterprise Linux 6opencryptoki-libsNot affected

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.