CVE-2021-3798 Information disclosure in opencryptoki

Medium 5.5 Published Updated

A flaw in openCryptoki allows malicious users to extract private keys via invalid curve attacks due to missing EC key validation.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-3798?

CVE-2021-3798 is a medium-severity vulnerability in opencryptoki, published on 23 Aug 2022. It can only be exploited from the same machine or local network, with no action from the victim.

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.

Weakness: CWE-200

Which versions are affected by CVE-2021-3798?

It affects 1 product.

Linux distribution packages (27)
opencryptoki Red Hat:enterprise_linux:8::baseosAll versions0:3.15.1-6.el8_4
opencryptoki-ccatok Red Hat:enterprise_linux:8::baseosAll versions0:3.15.1-6.el8_4
opencryptoki-ccatok-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:3.15.1-6.el8_4
opencryptoki-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:3.15.1-6.el8_4
opencryptoki-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:3.15.1-6.el8_4
opencryptoki-ep11tok Red Hat:enterprise_linux:8::baseosAll versions0:3.15.1-6.el8_4
opencryptoki-ep11tok-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:3.15.1-6.el8_4
opencryptoki-icatok Red Hat:enterprise_linux:8::baseosAll versions0:3.15.1-6.el8_4
opencryptoki-icatok-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:3.15.1-6.el8_4
opencryptoki-icsftok Red Hat:enterprise_linux:8::baseosAll versions0:3.15.1-6.el8_4
opencryptoki-icsftok-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:3.15.1-6.el8_4
opencryptoki-libs Red Hat:enterprise_linux:8::baseosAll versions0:3.15.1-6.el8_4
opencryptoki-libs-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:3.15.1-6.el8_4
opencryptoki-swtok Red Hat:enterprise_linux:8::baseosAll versions0:3.15.1-6.el8_4
opencryptoki-swtok-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:3.15.1-6.el8_4
opencryptoki-tpmtok Red Hat:enterprise_linux:8::baseosAll versions0:3.15.1-6.el8_4
opencryptoki-tpmtok-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:3.15.1-6.el8_4
opencryptoki-ccatok-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:3.15.1-6.el8_4
opencryptoki-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:3.15.1-6.el8_4
opencryptoki-debugsource Red Hat:enterprise_linux:8::crbAll versions0:3.15.1-6.el8_4
opencryptoki-devel Red Hat:enterprise_linux:8::crbAll versions0:3.15.1-6.el8_4
opencryptoki-ep11tok-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:3.15.1-6.el8_4
opencryptoki-icatok-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:3.15.1-6.el8_4
opencryptoki-icsftok-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:3.15.1-6.el8_4
opencryptoki-libs-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:3.15.1-6.el8_4
opencryptoki-swtok-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:3.15.1-6.el8_4
opencryptoki-tpmtok-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:3.15.1-6.el8_4

Products include Opencryptoki Project Opencryptoki.

How do I fix CVE-2021-3798?

Apply the vendor's patch.

Is CVE-2021-3798 being exploited?

There is no known exploitation of CVE-2021-3798 in the wild and no public exploit code.

Sources

Also known as AZL-10659, GHSA-f2gp-jqv6-cmxg, RHBA-2021:3054, UBUNTU-CVE-2021-3798.

Is CVE-2021-3798 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free