{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-22791 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2026-22791 is a medium-severity memory corruption vulnerability in opencryptoki, published on 13 Jan 2026. 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-2026-22791 and fix it if it is affected.\n\nWhat it is: CVE-2026-22791 is a medium-severity memory corruption vulnerability in opencryptoki, published on 13 Jan 2026. 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-2026-22791 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-2026-22791/ (Markdown: https://insights.sbomify.com/CVE-2026-22791/index.md)","id":"CVE-2026-22791","markdown":"https://insights.sbomify.com/CVE-2026-22791/index.md","name":"CVE-2026-22791","record":{"aliases":["GHSA-26f5-3mwq-4wm7","SUSE-SU-2026:0291-1","UBUNTU-CVE-2026-22791","openSUSE-SU-2026:10048-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["denial_of_service","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"PKCS#11 library","requires_auth":"low_privilege","summary":"A heap buffer overflow in openCryptoki allows local attackers to cause denial of service or potential code execution via crafted EC public keys.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"opencryptoki","vendor":"opencryptoki_project"}],"cvss":{"score":6.6,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H","version":"3.1"},"cwes":[{"id":"CWE-131","name":"Incorrect Calculation of Buffer Size"}],"description":"openCryptoki is a PKCS#11 library and tools for Linux and AIX. In 3.25.0 and 3.26.0, there is a heap buffer overflow vulnerability in the CKM_ECDH_AES_KEY_WRAP implementation allows an attacker with local access to cause out-of-bounds writes in the host process by supplying a compressed EC public key and invoking C_WrapKey. This can lead to heap corruption, or denial-of-service.","ecosystems":["SUSE:Linux Enterprise Module for Server Applications 15 SP7","openSUSE:Tumbleweed"],"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":"openCryptoki incorrectly calculates the buffer size in C_WrapKey with CKM_ECDH_AES_KEY_WRAP","id":"CVE-2026-22791","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"5ire vulnerable to Remote Code Execution (RCE)","id":"CVE-2026-22792"},"packages":[{"ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP7","fixed":["3.26.0-150700.5.9.1"],"introduced":["0"],"last_affected":[],"package":"openCryptoki","purl":"pkg:rpm/suse/openCryptoki\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Server%20Applications%2015%20SP7","source":"SUSE-SU-2026:0291-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.26.0-3.1"],"introduced":["0"],"last_affected":[],"package":"openCryptoki","purl":"pkg:rpm/opensuse/openCryptoki\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10048-1"}],"prev":{"headline":"EVerest's unchecked SLAC payload length causes stack overflow in HomeplugMessage::setup_payload","id":"CVE-2026-22790"},"products":["opencryptoki"],"published":"2026-01-13","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.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":5.5,"headline":"Information disclosure in opencryptoki","id":"CVE-2021-3798","kev_date_added":null,"published":"2022-08-23"},{"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":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-01-13","vendors":["opencryptoki"]},"summary":"A heap buffer overflow in openCryptoki allows local attackers to cause denial of service or potential code execution via crafted EC public keys.","url":"https://insights.sbomify.com/CVE-2026-22791/"}