Issue summary: Parsing a crafted DER-encoded ASN.1 structure with a primitive element whose content exceeds 2 gigabytes in length may cause a heap buffer over-read on 64-bit Unix and Unix-like platforms.
Impact summary: The heap buffer over-read may crash the application (Denial of Service) or to load into the decoded ASN.1 object contents of memory beyond the end of the input buffer. More typically such ASN.1 elements would instead be truncated.
An integer truncation in OpenSSL's ASN.1 decoder causes the content length of an ASN.1 primitive element to be mishandled when it exceeds 2 gigabytes. In the worst case the truncated length is treated as a request to scan the binary content for a terminating zero byte, possibly causing OpenSSL to read either less than or beyond the end of the allocated buffer.
Applications that pass attacker-supplied data to d2iX509(), d2iPKCS7(), or any other d2i_* decoding function are affected. OpenSSL's own command-line tools are not vulnerable, as data read through the BIO layer is checked before it reaches the affected code. The issue only affects 64-bit Unix and Unix-like platforms; 32-bit platforms and 64-bit Windows are not affected.
The FIPS modules in 4.0, 3.6, 3.5, 3.4 and 3.0 are not affected by this issue, as the affected code is outside the OpenSSL FIPS module boundary.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/34xxx/CVE-2026-34180.json",
"cna_assigner": "openssl",
"cwe_ids": [
"CWE-125"
]
}{
"cpe": [
"cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*",
"cpe:2.3:a:openssl:openssl:4.0.0:-:*:*:*:*:*:*"
],
"source": [
"CPE_RANGE",
"CPE_STRING",
"REFERENCES"
],
"extracted_events": [
{
"introduced": "1.0.2"
},
{
"fixed": "1.0.2zq"
},
{
"introduced": "1.1.1"
},
{
"fixed": "1.1.1zh"
},
{
"introduced": "3.0.0"
},
{
"fixed": "3.0.21"
},
{
"introduced": "3.4.0"
},
{
"fixed": "3.4.6"
},
{
"introduced": "3.5.0"
},
{
"fixed": "3.5.7"
},
{
"introduced": "3.6.0"
},
{
"fixed": "3.6.3"
},
{
"introduced": "4.0.0-NA"
},
{
"last_affected": "4.0.0-NA"
}
]
}[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"126341431044776940549287222658722596257",
"130570927788432269899785168744788951172",
"194169660864360803525450492876473860091",
"53214108288776647741275233147654436526",
"263946134258438649256241779625323641089",
"232531144570205203842568959033909256821",
"50105547378036962616739399907795763233",
"35026789599821935911816818772042439275",
"114710208109255960726965919362105298762",
"125554540231637930487019176647117002503",
"332182547294553747961268671162250805775",
"276033856309860817184326883455361222142",
"318268129131630080093563577138856184340",
"128526451235089518533697095563624199685",
"75522999902161732913968142567093758009",
"233242365504435285051066046524808432015",
"197089990496411212407345093272572794903",
"320267436817932155653906178307380969200",
"30115894267600804239536856163586595677",
"23558578592795469757909103851850343171",
"17799849957227699774711002123141587857",
"42341873062082005998984807998045276374",
"261393998870568144932847193933630306924",
"90961471150301180096894104068604511683",
"128676851434441285018275177161089865561",
"100194122663462334847528959275194658724",
"130566677364000324829985761619485595933",
"139450354736387718719450085420863140797",
"58621743932426957895629831490869659400",
"117543249045315008245940431878629833089",
"16026874736481656198404158159631764460",
"330524745316556226745010539469934831546",
"327748363202757222487231988002875540466",
"308414666606692371225601335823336131302"
]
},
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/da5d62af75f69d6fbf7803743d7c56ac75461e43",
"signature_type": "Line",
"target": {
"file": "crypto/asn1/tasn_dec.c"
},
"id": "CVE-2026-34180-0ae5bbd2",
"deprecated": false
},
{
"digest": {
"length": 3029.0,
"function_hash": "73859934412863856772425858944783637993"
},
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/f696c73c3e61b8c502d040af62e690c060908a16",
"signature_type": "Function",
"target": {
"function": "asn1_ex_c2i",
"file": "crypto/asn1/tasn_dec.c"
},
"id": "CVE-2026-34180-1692fb8c",
"deprecated": false
},
{
"digest": {
"length": 3029.0,
"function_hash": "73859934412863856772425858944783637993"
},
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/da5d62af75f69d6fbf7803743d7c56ac75461e43",
"signature_type": "Function",
"target": {
"function": "asn1_ex_c2i",
"file": "crypto/asn1/tasn_dec.c"
},
"id": "CVE-2026-34180-3938e24c",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"126341431044776940549287222658722596257",
"130570927788432269899785168744788951172",
"194169660864360803525450492876473860091",
"53214108288776647741275233147654436526",
"263946134258438649256241779625323641089",
"232531144570205203842568959033909256821",
"50105547378036962616739399907795763233",
"35026789599821935911816818772042439275",
"114710208109255960726965919362105298762",
"125554540231637930487019176647117002503",
"332182547294553747961268671162250805775",
"276033856309860817184326883455361222142",
"318268129131630080093563577138856184340",
"128526451235089518533697095563624199685",
"75522999902161732913968142567093758009",
"233242365504435285051066046524808432015",
"197089990496411212407345093272572794903",
"320267436817932155653906178307380969200",
"30115894267600804239536856163586595677",
"23558578592795469757909103851850343171",
"17799849957227699774711002123141587857",
"42341873062082005998984807998045276374",
"261393998870568144932847193933630306924",
"90961471150301180096894104068604511683",
"128676851434441285018275177161089865561",
"100194122663462334847528959275194658724",
"130566677364000324829985761619485595933",
"90371650052899301631217696225591147992",
"246784737627998664119002956221509877842",
"315371643750711437594895449353374659288",
"286011929765548229255520019142347591441",
"123472680076330230192277232253048086730",
"13780735696208980306919453088952308039",
"25913059314610070854202480799497690613"
]
},
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/cbe418ae978539cf14a398a207dba834c0e93e83",
"signature_type": "Line",
"target": {
"file": "crypto/asn1/tasn_dec.c"
},
"id": "CVE-2026-34180-5268d8ae",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"126341431044776940549287222658722596257",
"130570927788432269899785168744788951172",
"194169660864360803525450492876473860091",
"53214108288776647741275233147654436526",
"263946134258438649256241779625323641089",
"232531144570205203842568959033909256821",
"50105547378036962616739399907795763233",
"35026789599821935911816818772042439275",
"114710208109255960726965919362105298762",
"125554540231637930487019176647117002503",
"332182547294553747961268671162250805775",
"276033856309860817184326883455361222142",
"318268129131630080093563577138856184340",
"128526451235089518533697095563624199685",
"75522999902161732913968142567093758009",
"233242365504435285051066046524808432015",
"197089990496411212407345093272572794903",
"320267436817932155653906178307380969200",
"30115894267600804239536856163586595677",
"23558578592795469757909103851850343171",
"17799849957227699774711002123141587857",
"42341873062082005998984807998045276374",
"261393998870568144932847193933630306924",
"90961471150301180096894104068604511683",
"128676851434441285018275177161089865561",
"100194122663462334847528959275194658724",
"130566677364000324829985761619485595933",
"139450354736387718719450085420863140797",
"58621743932426957895629831490869659400",
"117543249045315008245940431878629833089",
"16026874736481656198404158159631764460",
"330524745316556226745010539469934831546",
"327748363202757222487231988002875540466",
"308414666606692371225601335823336131302"
]
},
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/1c6908e4fa5fa568752221d8eaf561a809751e5d",
"signature_type": "Line",
"target": {
"file": "crypto/asn1/tasn_dec.c"
},
"id": "CVE-2026-34180-7ebd8535",
"deprecated": false
},
{
"digest": {
"length": 2819.0,
"function_hash": "51740365743783670239691639319351368665"
},
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/cbe418ae978539cf14a398a207dba834c0e93e83",
"signature_type": "Function",
"target": {
"function": "asn1_ex_c2i",
"file": "crypto/asn1/tasn_dec.c"
},
"id": "CVE-2026-34180-8b17af82",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"126341431044776940549287222658722596257",
"130570927788432269899785168744788951172",
"194169660864360803525450492876473860091",
"53214108288776647741275233147654436526",
"263946134258438649256241779625323641089",
"232531144570205203842568959033909256821",
"50105547378036962616739399907795763233",
"35026789599821935911816818772042439275",
"114710208109255960726965919362105298762",
"125554540231637930487019176647117002503",
"332182547294553747961268671162250805775",
"276033856309860817184326883455361222142",
"318268129131630080093563577138856184340",
"128526451235089518533697095563624199685",
"75522999902161732913968142567093758009",
"233242365504435285051066046524808432015",
"197089990496411212407345093272572794903",
"320267436817932155653906178307380969200",
"30115894267600804239536856163586595677",
"23558578592795469757909103851850343171",
"17799849957227699774711002123141587857",
"42341873062082005998984807998045276374",
"261393998870568144932847193933630306924",
"90961471150301180096894104068604511683",
"128676851434441285018275177161089865561",
"100194122663462334847528959275194658724",
"130566677364000324829985761619485595933",
"139450354736387718719450085420863140797",
"58621743932426957895629831490869659400",
"117543249045315008245940431878629833089",
"16026874736481656198404158159631764460",
"330524745316556226745010539469934831546",
"327748363202757222487231988002875540466",
"308414666606692371225601335823336131302"
]
},
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/d93853c42110d6319e3df07842b488cb9f7ac5ff",
"signature_type": "Line",
"target": {
"file": "crypto/asn1/tasn_dec.c"
},
"id": "CVE-2026-34180-9aeaec3a",
"deprecated": false
},
{
"digest": {
"length": 3029.0,
"function_hash": "73859934412863856772425858944783637993"
},
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/1c6908e4fa5fa568752221d8eaf561a809751e5d",
"signature_type": "Function",
"target": {
"function": "asn1_ex_c2i",
"file": "crypto/asn1/tasn_dec.c"
},
"id": "CVE-2026-34180-a3d8c13c",
"deprecated": false
},
{
"digest": {
"length": 3029.0,
"function_hash": "73859934412863856772425858944783637993"
},
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/d93853c42110d6319e3df07842b488cb9f7ac5ff",
"signature_type": "Function",
"target": {
"function": "asn1_ex_c2i",
"file": "crypto/asn1/tasn_dec.c"
},
"id": "CVE-2026-34180-c02f3ec9",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"28170854778703993674264004058177114599",
"73132526844288570625317440636111911761",
"177405411499435185068645597737938634778",
"224809958623850711330610094965797758930",
"295554444428855106393106961197201359586"
]
},
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/e04bd3433fd84e1861bf258ea37928d9845e6a86",
"signature_type": "Line",
"target": {
"file": "include/openssl/opensslv.h"
},
"id": "CVE-2026-34180-c377fa22",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"251633914150035957322733061977107206211",
"338514574181828579838011565939158652696",
"76638288692106140328510055542557597351",
"142922657400765574308962710386922248045",
"71649992455794854055653842592139575350",
"65527166711110472566013424527579064967",
"253196866009476977787139000804413898733",
"172177136897997206866313011107384691461"
]
},
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/e818b74be2170fbe957a07b0da4401c2b694b3b8",
"signature_type": "Line",
"target": {
"file": "crypto/opensslv.h"
},
"id": "CVE-2026-34180-e051451f",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"126341431044776940549287222658722596257",
"130570927788432269899785168744788951172",
"194169660864360803525450492876473860091",
"53214108288776647741275233147654436526",
"263946134258438649256241779625323641089",
"232531144570205203842568959033909256821",
"50105547378036962616739399907795763233",
"35026789599821935911816818772042439275",
"114710208109255960726965919362105298762",
"125554540231637930487019176647117002503",
"332182547294553747961268671162250805775",
"276033856309860817184326883455361222142",
"318268129131630080093563577138856184340",
"128526451235089518533697095563624199685",
"75522999902161732913968142567093758009",
"233242365504435285051066046524808432015",
"197089990496411212407345093272572794903",
"320267436817932155653906178307380969200",
"30115894267600804239536856163586595677",
"23558578592795469757909103851850343171",
"17799849957227699774711002123141587857",
"42341873062082005998984807998045276374",
"261393998870568144932847193933630306924",
"90961471150301180096894104068604511683",
"128676851434441285018275177161089865561",
"100194122663462334847528959275194658724",
"130566677364000324829985761619485595933",
"139450354736387718719450085420863140797",
"58621743932426957895629831490869659400",
"117543249045315008245940431878629833089",
"16026874736481656198404158159631764460",
"330524745316556226745010539469934831546",
"327748363202757222487231988002875540466",
"308414666606692371225601335823336131302"
]
},
"signature_version": "v1",
"source": "https://github.com/openssl/openssl/commit/f696c73c3e61b8c502d040af62e690c060908a16",
"signature_type": "Line",
"target": {
"file": "crypto/asn1/tasn_dec.c"
},
"id": "CVE-2026-34180-e0e0a062",
"deprecated": false
}
]
"2026-07-15T17:36:06Z"
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-34180.json"