{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-40253","published":"2026-04-16T23:16:33.107000Z","last_modified":"2026-06-17T10:44:54.910000Z","status":"Analyzed","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-125"],"cpes":[{"criteria":"cpe:2.3:a:opencryptoki_project:opencryptoki:*:*:*:*:*:*:*:*","part":"a","vendor":"opencryptoki_project","product":"opencryptoki","version_end_including":"3.26.0"}],"cpes_truncated":false,"vendors":["opencryptoki_project"],"products":["opencryptoki_project/opencryptoki"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":37,"links":{"html_es":"/es/cve/CVE-2026-40253/","html_en":"/en/cve/CVE-2026-40253/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-40253","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-40253"},"untrusted":{"vendor_name":"Opencryptoki Project","product_name":"Opencryptoki","desc_en":"openCryptoki is a PKCS#11 library and provides tooling for Linux and AIX. In versions 3.26.0 and below, the BER/DER decoding functions in the shared common library (asn1.c) accept a raw pointer but no buffer length parameter, and trust attacker-controlled BER length fields without validating them against actual buffer boundaries. All primitive decoders are affected: ber_decode_INTEGER, ber_decode_SEQUENCE, ber_decode_OCTET_STRING, ber_decode_BIT_STRING, and ber_decode_CHOICE. Additionally, ber_decode_INTEGER can produce integer underflows when the encoded length is zero. An attacker supplying a malformed BER-encoded cryptographic object through PKCS#11 operations such as C_CreateObject or C_UnwrapKey, token loading from disk, or remote backend communication can trigger out-of-bounds reads. This affects all token backends (Soft, ICA, CCA, TPM, EP11, ICSF) since the vulnerable code is in the shared common library. A patch is available thorugh commit ed378f463ef73364c89feb0fc923f4dc867332a3.","affected":[{"untrusted_vendor":"opencryptoki","untrusted_product":"opencryptoki","versions":[]}],"references":[{"url":"https://github.com/opencryptoki/opencryptoki/commit/ed378f463ef73364c89feb0fc923f4dc867332a3","tags":["Patch"]},{"url":"https://github.com/opencryptoki/opencryptoki/security/advisories/GHSA-c9cf-6vr4-wfxm","tags":["Exploit","Mitigation","Patch","Vendor Advisory"]}]},"bulletins":[{"source":"suse","id":"SUSE-SU-2026:2685-2","url":"https://www.suse.com/support/update/announcement/2026/suse-su-20262685-2/","published":"2026-09-18T19:03:49+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Security update for openCryptoki"}},{"source":"redhat","id":"RHSA-2026:36697","url":"https://access.redhat.com/errata/RHSA-2026:36697","published":"2026-07-09T10:12:46+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: opencryptoki security update"}},{"source":"redhat","id":"RHSA-2026:36717","url":"https://access.redhat.com/errata/RHSA-2026:36717","published":"2026-07-09T10:12:46+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: opencryptoki security update"}},{"source":"suse","id":"SUSE-SU-2026:2757-1","url":"https://www.suse.com/support/update/announcement/2026/suse-su-20262757-1/","published":"2026-07-03T19:29:23+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Security update for openCryptoki"}},{"source":"redhat","id":"RHSA-2026:33519","url":"https://access.redhat.com/errata/RHSA-2026:33519","published":"2026-07-01T10:19:40+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: opencryptoki security update"}},{"source":"suse","id":"SUSE-SU-2026:2685-1","url":"https://www.suse.com/support/update/announcement/2026/suse-su-20262685-1/","published":"2026-06-29T15:19:10+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Security update for openCryptoki"}}]}