Issue summary: An invalid or NULL pointer dereference can happen in an application processing a malformed PKCS#12 file.
Impact summary: An application processing a malformed PKCS#12 file can be caused to dereference an invalid or NULL pointer on memory read, resulting in a Denial of Service.
A type confusion vulnerability exists in PKCS#12 parsing code where an ASN1_TYPE union member is accessed without first validating the type, causing an invalid pointer read.
The location is constrained to a 1-byte address space, meaning any attempted pointer manipulation can only target addresses between 0x00 and 0xFF. This range corresponds to the zero page, which is unmapped on most modern operating systems and will reliably result in a crash, leading only to a Denial of Service. Exploiting this issue also requires a user or application to process a maliciously crafted PKCS#12 file. It is uncommon to accept untrusted PKCS#12 files in applications as they are usually used to store private keys which are trusted by definition. For these reasons, the issue was assessed as Low severity.
The FIPS modules in 3.5, 3.4, 3.3 and 3.0 are not affected by this issue, as the PKCS12 implementation is outside the OpenSSL FIPS module boundary.
OpenSSL 3.6, 3.5, 3.4, 3.3, 3.0 and 1.1.1 are vulnerable to this issue.
OpenSSL 1.0.2 is not affected by this issue.
{
"cna_assigner": "openssl",
"cwe_ids": [
"CWE-754"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22795.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.1.1"
},
{
"fixed": "1.1.1ze"
}
],
"source": "CPE_RANGE"
}
]
}
{
"extracted_events": [
{
"cpe": "cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.1.1"
},
{
"fixed": "1.1.1ze"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.0.19"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.3.0"
},
{
"fixed": "3.3.6"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.4.0"
},
{
"fixed": "3.4.4"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.5.0"
},
{
"fixed": "3.5.5"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.6.0"
},
{
"fixed": "3.6.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "2502e7b7d4c0cf4f972a881641fe09edc67aeec4"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "572844beca95068394c916626a6d3a490f831a49"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "7bbca05be55b129651d9df4bdb92becc45002c12"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "eeee3cbd4d682095ed431052f00403004596373e"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "ef2fb66ec571564d64d1c74a12e388a2a54d05d2"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-22795.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "145081246022159018632346591780852072638",
"length": 3301
},
"id": "CVE-2026-22795-0115da44",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec",
"target": {
"file": "crypto/asn1/a_mbstr.c",
"function": "ASN1_mbstring_ncopy"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"71476756686855470599937379985047700091",
"166895001063044813957862891151407698928",
"278712318572386455087903167506773264569",
"62751701112678304274354497278072631412",
"305528711857785099232457614306160091925"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-09b46f75",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/7bbca05be55b129651d9df4bdb92becc45002c12",
"target": {
"file": "apps/s_client.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "199855863195958881625652055964543723547",
"length": 48739
},
"id": "CVE-2026-22795-0b6c52aa",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/ef2fb66ec571564d64d1c74a12e388a2a54d05d2",
"target": {
"file": "apps/s_client.c",
"function": "s_client_main"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"151496904140441974460168482169374190024",
"252388763391472546762550272601898462670",
"322392321298523662111637318544365606017",
"92792830564595161366593755445407076135",
"125370360892352031658984319622272957499",
"135472893131710710891792272165369874557",
"144388576385066123595834036136006620631",
"251569583518298411383983956510462999062",
"190752638376984200658169048788492801771",
"100442701798321830557371459503827921141",
"157868922838337151802955969179465392317",
"247133924118207300622477622521703740882"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-10c2ef8d",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec",
"target": {
"file": "crypto/pkcs7/pk7_smime.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "89525939813841793658939652477796738403",
"length": 46133
},
"id": "CVE-2026-22795-135694a1",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/572844beca95068394c916626a6d3a490f831a49",
"target": {
"file": "apps/s_client.c",
"function": "s_client_main"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"60877912797987591188065755797983277280",
"251788162060282103686621368991676932733",
"40400787577453108895692359634937979252",
"331144855365863902029291104116453962179",
"88149325502830834177707272741538263698",
"104081780024832426122495621692374432985",
"320309570822310705485919480150939913446"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-1be6bf98",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/572844beca95068394c916626a6d3a490f831a49",
"target": {
"file": "crypto/pkcs12/p12_kiss.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"60877912797987591188065755797983277280",
"251788162060282103686621368991676932733",
"40400787577453108895692359634937979252",
"331144855365863902029291104116453962179",
"88149325502830834177707272741538263698",
"104081780024832426122495621692374432985",
"320309570822310705485919480150939913446"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-23f9a2c6",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/7bbca05be55b129651d9df4bdb92becc45002c12",
"target": {
"file": "crypto/pkcs12/p12_kiss.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"60877912797987591188065755797983277280",
"251788162060282103686621368991676932733",
"40400787577453108895692359634937979252",
"331144855365863902029291104116453962179",
"88149325502830834177707272741538263698",
"104081780024832426122495621692374432985",
"320309570822310705485919480150939913446"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-276a6f9a",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/eeee3cbd4d682095ed431052f00403004596373e",
"target": {
"file": "crypto/pkcs12/p12_kiss.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "137663506870388774154075225648218501066",
"length": 48972
},
"id": "CVE-2026-22795-30c3a1ca",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/2502e7b7d4c0cf4f972a881641fe09edc67aeec4",
"target": {
"file": "apps/s_client.c",
"function": "s_client_main"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "70418561901620867514045039520920039213",
"length": 148
},
"id": "CVE-2026-22795-315e1fbb",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec",
"target": {
"file": "crypto/asn1/a_mbstr.c",
"function": "out_utf8"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"60877912797987591188065755797983277280",
"251788162060282103686621368991676932733",
"40400787577453108895692359634937979252",
"331144855365863902029291104116453962179",
"88149325502830834177707272741538263698",
"104081780024832426122495621692374432985",
"320309570822310705485919480150939913446"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-3311f579",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/ef2fb66ec571564d64d1c74a12e388a2a54d05d2",
"target": {
"file": "crypto/pkcs12/p12_kiss.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"71476756686855470599937379985047700091",
"166895001063044813957862891151407698928",
"278712318572386455087903167506773264569",
"62751701112678304274354497278072631412",
"305528711857785099232457614306160091925"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-3ae22c42",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/eeee3cbd4d682095ed431052f00403004596373e",
"target": {
"file": "apps/s_client.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"71476756686855470599937379985047700091",
"166895001063044813957862891151407698928",
"278712318572386455087903167506773264569",
"62751701112678304274354497278072631412",
"305528711857785099232457614306160091925"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-564c849c",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/2502e7b7d4c0cf4f972a881641fe09edc67aeec4",
"target": {
"file": "apps/s_client.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "137663506870388774154075225648218501066",
"length": 48972
},
"id": "CVE-2026-22795-5e98e146",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/7bbca05be55b129651d9df4bdb92becc45002c12",
"target": {
"file": "apps/s_client.c",
"function": "s_client_main"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"246451924573170111765630526962404097757",
"196617962610438348365718973266564583117",
"284857352021339567897482824767365180593",
"273428943801490059425881941273658322840"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-68a85aee",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/eeee3cbd4d682095ed431052f00403004596373e",
"target": {
"file": "crypto/pkcs7/pk7_doit.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"60877912797987591188065755797983277280",
"251788162060282103686621368991676932733",
"40400787577453108895692359634937979252",
"331144855365863902029291104116453962179",
"88149325502830834177707272741538263698",
"104081780024832426122495621692374432985",
"320309570822310705485919480150939913446"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-86099db0",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/2502e7b7d4c0cf4f972a881641fe09edc67aeec4",
"target": {
"file": "crypto/pkcs12/p12_kiss.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"131154213046974496778457434048691074837",
"11412147066710286517722597447846471117",
"264770296592556677305107142032766937388",
"276397443140848844849079658380453872857",
"195870554892312134442829321964179019399"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-87e36a00",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec",
"target": {
"file": "include/openssl/opensslv.h"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"126341431044776940549287222658722596257",
"130570927788432269899785168744788951172",
"194169660864360803525450492876473860091",
"110467782499934282756168500046914951485",
"263946134258438649256241779625323641089",
"232531144570205203842568959033909256821",
"50105547378036962616739399907795763233",
"35026789599821935911816818772042439275",
"114710208109255960726965919362105298762",
"125554540231637930487019176647117002503",
"332182547294553747961268671162250805775",
"276033856309860817184326883455361222142",
"318268129131630080093563577138856184340",
"128526451235089518533697095563624199685",
"75522999902161732913968142567093758009",
"233242365504435285051066046524808432015",
"197089990496411212407345093272572794903",
"203627204430850126635677767987115907052",
"110527555710504927393608627867030602220",
"129739062881190220811156277727848860285",
"64544717289057079449815286406570439951",
"201167284819377777248970251144566099169",
"222516930768176972010755807924686646230",
"90961471150301180096894104068604511683",
"128676851434441285018275177161089865561",
"129724505883296824298208229090221093179",
"225269234833384762270352983556638638592",
"90371650052899301631217696225591147992",
"246784737627998664119002956221509877842",
"315371643750711437594895449353374659288",
"286011929765548229255520019142347591441",
"220624038106194157196845376518684753434",
"174882410006964856548150664239804105254",
"116231510630487651899483668166785513275"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-89e18e76",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec",
"target": {
"file": "crypto/asn1/tasn_dec.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"243971072618222724126117138392541085907",
"20203436555900253968670420024125559450",
"261033251671054815966464244630025010874",
"142558467251092045021326807845044327645",
"117558078243606577959089637136237792030",
"124332917225391423252605388545338682722",
"236022608503733170562534553288003810395",
"339832511801857794746629870610675811880",
"219260262152978755644652810379289549161",
"238161164963855964634408949729400551790",
"305007661457817428636275014467276783572",
"224942011457082636465204480559032896603",
"161399292792765951653776025419102349086",
"249748745323502641665219507560747603718",
"133814635171188589537358224623499256384",
"166636678108051380708454788668826388282",
"148812255457104429740188330155555022957",
"67995203963239490129688609208357985916",
"46589837028236721023105012731504719567",
"61425611895307496760454057009746874404"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-8be4f956",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec",
"target": {
"file": "crypto/asn1/a_mbstr.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "60884720753669845608764646390078165978",
"length": 2404
},
"id": "CVE-2026-22795-8dac97cc",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec",
"target": {
"file": "crypto/cms/cms_pwri.c",
"function": "cms_RecipientInfo_pwri_crypt"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"71476756686855470599937379985047700091",
"166895001063044813957862891151407698928",
"278712318572386455087903167506773264569",
"62751701112678304274354497278072631412",
"305528711857785099232457614306160091925"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-8f8ff17b",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/572844beca95068394c916626a6d3a490f831a49",
"target": {
"file": "apps/s_client.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"71476756686855470599937379985047700091",
"166895001063044813957862891151407698928",
"278712318572386455087903167506773264569",
"62751701112678304274354497278072631412",
"305528711857785099232457614306160091925"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-991d33fa",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/ef2fb66ec571564d64d1c74a12e388a2a54d05d2",
"target": {
"file": "apps/s_client.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"246451924573170111765630526962404097757",
"196617962610438348365718973266564583117",
"284857352021339567897482824767365180593",
"273428943801490059425881941273658322840"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-af52563c",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/7bbca05be55b129651d9df4bdb92becc45002c12",
"target": {
"file": "crypto/pkcs7/pk7_doit.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"319646123228225632035521226865494527950",
"52841444872899117514496250284924185664",
"33853134948390324832871761212087746225",
"81188860042095766577152905858367341175",
"302749459819436303573414214711383738500",
"106372169618065324582769687411773396323",
"255586470514418239073904203556570502151",
"316909758438434070933019317604952931093",
"227036639418218030553513135503985645880",
"19797040175335443903820697047342526981",
"3213252085324805485799329367541299827",
"167277605188112932709311947349617776953",
"33676618202441094170922943458357128290"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-c30f17c3",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec",
"target": {
"file": "crypto/cms/cms_pwri.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"28170854778703993674264004058177114599",
"73132526844288570625317440636111911761",
"177405411499435185068645597737938634778",
"224809958623850711330610094965797758930",
"295554444428855106393106961197201359586"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-c377fa22",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/e04bd3433fd84e1861bf258ea37928d9845e6a86",
"target": {
"file": "include/openssl/opensslv.h"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"246451924573170111765630526962404097757",
"196617962610438348365718973266564583117",
"284857352021339567897482824767365180593",
"273428943801490059425881941273658322840"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-d52a9a4d",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/572844beca95068394c916626a6d3a490f831a49",
"target": {
"file": "crypto/pkcs7/pk7_doit.c"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"246451924573170111765630526962404097757",
"196617962610438348365718973266564583117",
"284857352021339567897482824767365180593",
"273428943801490059425881941273658322840"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-d6153be7",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/2502e7b7d4c0cf4f972a881641fe09edc67aeec4",
"target": {
"file": "crypto/pkcs7/pk7_doit.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "219999985288845958916653358585559913606",
"length": 2843
},
"id": "CVE-2026-22795-db231d4a",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec",
"target": {
"file": "crypto/asn1/tasn_dec.c",
"function": "asn1_ex_c2i"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "130089047505679726786813950750828918851",
"length": 1031
},
"id": "CVE-2026-22795-df118fd8",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec",
"target": {
"file": "crypto/cms/cms_pwri.c",
"function": "kek_unwrap_key"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"246451924573170111765630526962404097757",
"196617962610438348365718973266564583117",
"284857352021339567897482824767365180593",
"273428943801490059425881941273658322840"
],
"threshold": 0.9
},
"id": "CVE-2026-22795-f144311b",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/ef2fb66ec571564d64d1c74a12e388a2a54d05d2",
"target": {
"file": "crypto/pkcs7/pk7_doit.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "127898544240712534256163966369522564864",
"length": 48969
},
"id": "CVE-2026-22795-fbed4a44",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/eeee3cbd4d682095ed431052f00403004596373e",
"target": {
"file": "apps/s_client.c",
"function": "s_client_main"
}
}
]
"2026-11-11T13:21:16Z"