{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-3798 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"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."},"fix_prompt":"Check this codebase for CVE-2021-3798 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2021-3798 in the wild and no public exploit code.\n\nAffected product: opencryptoki. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-3798/ (Markdown: https://insights.sbomify.com/CVE-2021-3798/index.md)","id":"CVE-2021-3798","markdown":"https://insights.sbomify.com/CVE-2021-3798/index.md","name":"CVE-2021-3798","record":{"aliases":["AZL-10659","GHSA-f2gp-jqv6-cmxg","RHBA-2021:3054","UBUNTU-CVE-2021-3798"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"PKCS#11 library","requires_auth":"low_privilege","summary":"A flaw in openCryptoki allows malicious users to extract private keys via invalid curve attacks due to missing EC key validation.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"opencryptoki","vendor":"opencryptoki_project"}],"cvss":{"score":5.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"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.","ecosystems":["Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:8::crb"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Information disclosure in opencryptoki","id":"CVE-2021-3798","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"information_disclosure","year":"2021"},"n_packages":27,"n_references":4,"next":{"headline":"Improper Restriction of Rendered UI Layers or Frames in getgrav/grav-plugin-admin","id":"CVE-2021-3799"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki","purl":"pkg:rpm/redhat/opencryptoki","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-ccatok","purl":"pkg:rpm/redhat/opencryptoki-ccatok","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-ccatok-debuginfo","purl":"pkg:rpm/redhat/opencryptoki-ccatok-debuginfo","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-debuginfo","purl":"pkg:rpm/redhat/opencryptoki-debuginfo","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-debugsource","purl":"pkg:rpm/redhat/opencryptoki-debugsource","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-ep11tok","purl":"pkg:rpm/redhat/opencryptoki-ep11tok","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-ep11tok-debuginfo","purl":"pkg:rpm/redhat/opencryptoki-ep11tok-debuginfo","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-icatok","purl":"pkg:rpm/redhat/opencryptoki-icatok","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-icatok-debuginfo","purl":"pkg:rpm/redhat/opencryptoki-icatok-debuginfo","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-icsftok","purl":"pkg:rpm/redhat/opencryptoki-icsftok","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-icsftok-debuginfo","purl":"pkg:rpm/redhat/opencryptoki-icsftok-debuginfo","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-libs","purl":"pkg:rpm/redhat/opencryptoki-libs","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-libs-debuginfo","purl":"pkg:rpm/redhat/opencryptoki-libs-debuginfo","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-swtok","purl":"pkg:rpm/redhat/opencryptoki-swtok","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-swtok-debuginfo","purl":"pkg:rpm/redhat/opencryptoki-swtok-debuginfo","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-tpmtok","purl":"pkg:rpm/redhat/opencryptoki-tpmtok","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-tpmtok-debuginfo","purl":"pkg:rpm/redhat/opencryptoki-tpmtok-debuginfo","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-ccatok-debuginfo","purl":"pkg:rpm/redhat/opencryptoki-ccatok-debuginfo","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-debuginfo","purl":"pkg:rpm/redhat/opencryptoki-debuginfo","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-debugsource","purl":"pkg:rpm/redhat/opencryptoki-debugsource","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-devel","purl":"pkg:rpm/redhat/opencryptoki-devel","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-ep11tok-debuginfo","purl":"pkg:rpm/redhat/opencryptoki-ep11tok-debuginfo","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-icatok-debuginfo","purl":"pkg:rpm/redhat/opencryptoki-icatok-debuginfo","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-icsftok-debuginfo","purl":"pkg:rpm/redhat/opencryptoki-icsftok-debuginfo","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-libs-debuginfo","purl":"pkg:rpm/redhat/opencryptoki-libs-debuginfo","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-swtok-debuginfo","purl":"pkg:rpm/redhat/opencryptoki-swtok-debuginfo","source":"RHBA-2021:3054"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:3.15.1-6.el8_4"],"introduced":["0"],"last_affected":[],"package":"opencryptoki-tpmtok-debuginfo","purl":"pkg:rpm/redhat/opencryptoki-tpmtok-debuginfo","source":"RHBA-2021:3054"}],"prev":{"headline":"Use of Wrong Operator in String Comparison in hestiacp/hestiacp","id":"CVE-2021-3797"},"products":["opencryptoki"],"published":"2022-08-23","related":[{"cvss_score":6.8,"headline":"openCryptoki: Memory safety vulnerabilities in BER/DER decoders in asn1.c","id":"CVE-2026-40253","kev_date_added":null,"published":"2026-04-16"},{"cvss_score":6.8,"headline":"openCryptoki has improper link resolution before file access (link following)","id":"CVE-2026-23893","kev_date_added":null,"published":"2026-01-22"},{"cvss_score":6.6,"headline":"openCryptoki incorrectly calculates the buffer size in C_WrapKey with CKM_ECDH_AES_KEY_WRAP","id":"CVE-2026-22791","kev_date_added":null,"published":"2026-01-13"},{"cvss_score":6.2,"headline":"Path traversal in n/a","id":"CVE-2012-4455","kev_date_added":null,"published":"2012-10-10"},{"cvss_score":5.9,"headline":"Opencryptoki: timing side-channel in handling of rsa pkcs#1 v1.5 padded ciphertexts (marvin)","id":"CVE-2024-0914","kev_date_added":null,"published":"2024-01-31"},{"cvss_score":2.9,"headline":"Path traversal in n/a","id":"CVE-2012-4454","kev_date_added":null,"published":"2012-10-10"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHBA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"A flaw in openCryptoki allows malicious users to extract private keys via invalid curve attacks due to missing EC key validation.","url":"https://insights.sbomify.com/CVE-2021-3798/"}