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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-131"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22791.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "3.25.0"
},
{
"last_affected": "3.26.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "785d7577e1477d12fbe235554e7e7b24f2de34b7"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "e37e9127deeeb7bf3c3c4d852c594256c57ec3a8"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-22791.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"95229240065523874681931989203713637207",
"53029481316736056402751237409419436663",
"78338001345001644498965443275507680108",
"142748932277025867171247047253881081628",
"172950411028489176578462088655475242118",
"23613893133483013860102402129417346171",
"49804443245956864770303597728134074280",
"145309896647156561065214679572135930601"
],
"threshold": 0.9
},
"id": "CVE-2026-22791-051d4efe",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/opencryptoki/opencryptoki/commit/785d7577e1477d12fbe235554e7e7b24f2de34b7",
"target": {
"file": "usr/lib/common/decr_mgr.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"105873518108037796855594189896008458651",
"181929037590455681180964423601447703906",
"186016950990741947620561391862836214445",
"337687025157363192483816338278656615200",
"308351838024520592887503970854527415587"
],
"threshold": 0.9
},
"id": "CVE-2026-22791-0ed533d2",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/opencryptoki/opencryptoki/commit/785d7577e1477d12fbe235554e7e7b24f2de34b7",
"target": {
"file": "usr/lib/common/mech_ec.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "291016418553550259201689477055993250439",
"length": 16165
},
"id": "CVE-2026-22791-259e9ecd",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/opencryptoki/opencryptoki/commit/785d7577e1477d12fbe235554e7e7b24f2de34b7",
"target": {
"file": "usr/lib/common/encr_mgr.c",
"function": "encr_mgr_init"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"121210315150102089442085322924029245542",
"94437348224244628930917420686756801280",
"59315021747767969414960644541107373668",
"84127406193882510224201849699199883290",
"121210315150102089442085322924029245542",
"100411142269610238315181850995902140834",
"252959844347166804923739008754868279378",
"324649182655099819681452604766633557395",
"121210315150102089442085322924029245542",
"335983947619009579987425096413698630703",
"102491224351655792768863392304514674199",
"95160076612476748171197332072607349377"
],
"threshold": 0.9
},
"id": "CVE-2026-22791-650d2d80",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/opencryptoki/opencryptoki/commit/785d7577e1477d12fbe235554e7e7b24f2de34b7",
"target": {
"file": "usr/lib/common/key_mgr.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"226477995178739894609747281148978231141",
"90582510409175925441890423162824805649",
"312040314689345286489358660949362564935",
"4963154249892905667818814212711724135",
"319784867578471114566398209225041860996",
"11850901699426370992076550726845382058",
"245630710661004154871949829406654311185",
"198549139072610798345178231600191831625",
"304918089966536043204796381273153575593",
"271663136754466977308943617290000196341",
"51180500979305882467950678184769479303",
"272901249383304781112554343596231118946",
"265942702912718186905788058304296951797",
"254595667723479315873100659991366688541",
"149186101120539004144257338613389492735",
"256307837297491195850591919973796748588",
"133597811745810610737371631617388622530",
"227545471864423048252211748479531583904",
"44717050646128655830850863379594588733",
"9063586468038997097252819990760266172",
"54710517467226751563252007790750601476",
"336588038692614644934088607933890017794",
"109968421720439245208155981641120722605",
"288016549328721859344315098306975709880",
"156443257410496777152554369453495840434",
"218472382166509017487003521631771790146",
"41881049883270416230384799389929366288",
"131093696008111627277357666258541434633",
"79813566258645363386565427794014645458",
"285289959971436275543783131575115783731",
"73008816575143904149649613864506990944",
"121328953299251612404915873139531678200",
"140983407937943147380031504335962912042",
"54611718602689574943986319481941841729",
"149482236436839880211814980980821143698",
"308419704755883732229334929897371358659"
],
"threshold": 0.9
},
"id": "CVE-2026-22791-ab0097b5",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/opencryptoki/opencryptoki/commit/e37e9127deeeb7bf3c3c4d852c594256c57ec3a8",
"target": {
"file": "usr/lib/common/mech_ec.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "28867156110222275580633148020267398319",
"length": 16392
},
"id": "CVE-2026-22791-aca0d2ea",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/opencryptoki/opencryptoki/commit/785d7577e1477d12fbe235554e7e7b24f2de34b7",
"target": {
"file": "usr/lib/common/decr_mgr.c",
"function": "decr_mgr_init"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "69585498452481998302442114925377533041",
"length": 4185
},
"id": "CVE-2026-22791-ad5ac8ea",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/opencryptoki/opencryptoki/commit/785d7577e1477d12fbe235554e7e7b24f2de34b7",
"target": {
"file": "usr/lib/common/encr_mgr.c",
"function": "encr_mgr_encrypt"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"95229240065523874681931989203713637207",
"53029481316736056402751237409419436663",
"16849080295849871608337778495106334800",
"72612305881741375368807289633906418811",
"10021952637885360870786612704758334782",
"72933985784812766161759306996592602047",
"148668204405359086355099004693471156500",
"47258003238487818894300156718050550646"
],
"threshold": 0.9
},
"id": "CVE-2026-22791-be6895dd",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/opencryptoki/opencryptoki/commit/785d7577e1477d12fbe235554e7e7b24f2de34b7",
"target": {
"file": "usr/lib/common/encr_mgr.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "103040654334632848248106334539983806110",
"length": 4319
},
"id": "CVE-2026-22791-c5fe97fb",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/opencryptoki/opencryptoki/commit/785d7577e1477d12fbe235554e7e7b24f2de34b7",
"target": {
"file": "usr/lib/common/decr_mgr.c",
"function": "decr_mgr_decrypt"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "260597570153548620921498641410558710071",
"length": 6212
},
"id": "CVE-2026-22791-e058ce81",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/opencryptoki/opencryptoki/commit/e37e9127deeeb7bf3c3c4d852c594256c57ec3a8",
"target": {
"file": "usr/lib/common/mech_ec.c",
"function": "ecdh_aes_key_wrap"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "41180471097345308450217383836619122338",
"length": 7222
},
"id": "CVE-2026-22791-f6d8a283",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/opencryptoki/opencryptoki/commit/785d7577e1477d12fbe235554e7e7b24f2de34b7",
"target": {
"file": "usr/lib/common/key_mgr.c",
"function": "key_mgr_unwrap_key"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "17855084193324097996503031446759336440",
"length": 9042
},
"id": "CVE-2026-22791-fd743cc4",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/opencryptoki/opencryptoki/commit/785d7577e1477d12fbe235554e7e7b24f2de34b7",
"target": {
"file": "usr/lib/common/key_mgr.c",
"function": "key_mgr_wrap_key"
}
}
]
"2026-10-28T10:50:40Z"