CVE-2021-3798

Source
https://cve.org/CVERecord?id=CVE-2021-3798
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3798.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-3798
Downstream
Published
2022-08-23T16:15:09Z
Modified
2026-07-08T23:59:09Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/opencryptoki/opencryptoki

Affected ranges

Type
GIT
Repo
https://github.com/opencryptoki/opencryptoki
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "cpe": "cpe:2.3:a:opencryptoki_project:opencryptoki:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "3.17.0"
        }
    ],
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

v2.*
v2.3.2
v2.3.3
v2.4.3
v2.4.3.1
v3.*
v3.0
v3.1
v3.10.0
v3.11.0
v3.11.1
v3.12.0
v3.12.1
v3.13.0
v3.14.0
v3.15.0
v3.15.1
v3.16.0
v3.2
v3.3
v3.4
v3.4.1
v3.5
v3.6
v3.6.1
v3.6.2
v3.7.0
v3.8.0
v3.8.1
v3.8.2
v3.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3798.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "function_hash": "227030742641434579281486111687377295738",
            "length": 744
        },
        "id": "CVE-2021-3798-a513978c",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/opencryptoki/opencryptoki/commit/4e3b43c3d8844402c04a66b55c6c940f965109f0",
        "target": {
            "file": "usr/lib/soft_stdll/soft_specific.c",
            "function": "fill_ec_key_from_privkey"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "167809855859216864502066761829954412651",
            "length": 572
        },
        "id": "CVE-2021-3798-bd9a54be",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/opencryptoki/opencryptoki/commit/4e3b43c3d8844402c04a66b55c6c940f965109f0",
        "target": {
            "file": "usr/lib/soft_stdll/soft_specific.c",
            "function": "fill_ec_key_from_pubkey"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "241914080668320224096387584555820029697",
                "294749349881809309464343043695379726799",
                "155825835143266065778361583573477398571",
                "241914080668320224096387584555820029697",
                "151463854885936926283904390379390757917",
                "273130886101318911504810936600417370356"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2021-3798-e4f487ff",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/opencryptoki/opencryptoki/commit/4e3b43c3d8844402c04a66b55c6c940f965109f0",
        "target": {
            "file": "usr/lib/soft_stdll/soft_specific.c"
        }
    }
]
vanir_signatures_modified
"2026-07-08T23:59:09Z"