{"api_version":"1","generated_at":"2026-05-13T02:10:56+00:00","cve":"CVE-2021-3798","urls":{"html":"https://cve.report/CVE-2021-3798","api":"https://cve.report/api/cve/CVE-2021-3798.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-3798","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-3798"},"summary":{"title":"CVE-2021-3798","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.","state":"PUBLIC","assigner":"secalert@redhat.com","published_at":"2022-08-23 16:15:00","updated_at":"2023-07-10 19:34:00"},"problem_types":["NVD-CWE-Other"],"metrics":[],"references":[{"url":"https://github.com/opencryptoki/opencryptoki/pull/402","name":"https://github.com/opencryptoki/opencryptoki/pull/402","refsource":"MISC","tags":[],"title":"SOFT: Check the EC Key on C_CreateObject and C_DeriveKey by ifranzki · Pull Request #402 · opencryptoki/opencryptoki · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://access.redhat.com/security/cve/CVE-2021-3798","name":"https://access.redhat.com/security/cve/CVE-2021-3798","refsource":"MISC","tags":[],"title":"Red Hat Customer Portal - Access to 24x7 support and knowledge","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://access.redhat.com/errata/RHBA-2021:3054","name":"https://access.redhat.com/errata/RHBA-2021:3054","refsource":"MISC","tags":[],"title":"Red Hat Customer Portal - Access to 24x7 support and knowledge","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/opencryptoki/opencryptoki/commit/4e3b43c3d8844402c04a66b55c6c940f965109f0","name":"https://github.com/opencryptoki/opencryptoki/commit/4e3b43c3d8844402c04a66b55c6c940f965109f0","refsource":"MISC","tags":[],"title":"SOFT: Check the EC Key on C_CreateObject and C_DeriveKey · opencryptoki/opencryptoki@4e3b43c · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1990591","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1990591","refsource":"MISC","tags":[],"title":"1990591 – (CVE-2021-3798) CVE-2021-3798 openCryptoki: Soft token does not check if an EC key is valid","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3798","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3798","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"3798","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"opencryptoki_project","cpe5":"opencryptoki","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-3798","qid":"903805","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for opencryptoki (10659)"},{"cve":"CVE-2021-3798","qid":"907285","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for opencryptoki (10659-1)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2021-3798","ASSIGNER":"secalert@redhat.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-200 - Exposure of Sensitive Information to an Unauthorized Actor","cweId":"CWE-200"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"n/a","product":{"product_data":[{"product_name":"opencryptoki","version":{"version_data":[{"version_affected":"=","version_value":"Fixed in v3.17.0"}]}}]}}]}},"references":{"reference_data":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1990591","refsource":"MISC","name":"https://bugzilla.redhat.com/show_bug.cgi?id=1990591"},{"url":"https://access.redhat.com/security/cve/CVE-2021-3798","refsource":"MISC","name":"https://access.redhat.com/security/cve/CVE-2021-3798"},{"url":"https://github.com/opencryptoki/opencryptoki/pull/402","refsource":"MISC","name":"https://github.com/opencryptoki/opencryptoki/pull/402"},{"url":"https://github.com/opencryptoki/opencryptoki/commit/4e3b43c3d8844402c04a66b55c6c940f965109f0","refsource":"MISC","name":"https://github.com/opencryptoki/opencryptoki/commit/4e3b43c3d8844402c04a66b55c6c940f965109f0"}]}},"nvd":{"publishedDate":"2022-08-23 16:15:00","lastModifiedDate":"2023-07-10 19:34:00","problem_types":["NVD-CWE-Other"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.8,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:opencryptoki_project:opencryptoki:*:*:*:*:*:*:*:*","versionEndExcluding":"3.17.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"3798","Ordinal":"216636","Title":"CVE-2021-3798","CVE":"CVE-2021-3798","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"3798","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}