{"id":"CVE-2026-2646","state":"PUBLISHED","title":"Heap buffer overflow in session parsing with wolfSSL_d2i_SSL_SESSION() function","description":"A heap-buffer-overflow vulnerability exists in wolfSSL's wolfSSL_d2i_SSL_SESSION() function. When deserializing session data with SESSION_CERTS enabled, certificate and session id lengths are read from an untrusted input without bounds validation, allowing an attacker to overflow fixed-size buffers and corrupt heap memory. A maliciously crafted session would need to be loaded from an external source to trigger this vulnerability. Internal sessions were not vulnerable.","publishedAt":"2026-03-19T17:25:42.810Z","updatedAt":"2026-03-19T17:44:09.675Z","severity":{"score":5,"label":"Medium","version":"4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N/E:P","source":"wolfSSL"},"assigner":"wolfSSL","products":["wolfssl wolfssl"],"affected":[{"vendor":"wolfssl","product":"wolfssl","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"5.8.4","versionType":"semver"}],"repo":"https://github.com/wolfSSL/wolfssl","programFiles":["src/ssl_sess.c"],"programRoutines":[{"name":"wolfSSL_d2i_SSL_SESSION"}]}],"references":["https://github.com/wolfSSL/wolfssl/pull/9748","https://github.com/wolfSSL/wolfssl/pull/9949"],"weaknesses":["CWE-122"],"ingestedAt":"2026-10-29T20:11:31.369Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/2xxx/CVE-2026-2646.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-2646","state":"PUBLISHED","datePublished":"2026-03-19T17:25:42.810Z","dateUpdated":"2026-03-19T17:44:09.675Z","assignerShortName":"wolfSSL","assignerOrgId":"50d2cd11-d01a-48ed-9441-5bfce9d63b27","dateReserved":"2026-02-17T22:29:37.732Z"},"containers":{"cna":{"title":"Heap buffer overflow in session parsing with wolfSSL_d2i_SSL_SESSION() function","descriptions":[{"lang":"en","value":"A heap-buffer-overflow vulnerability exists in wolfSSL's wolfSSL_d2i_SSL_SESSION() function. When deserializing session data with SESSION_CERTS enabled, certificate and session id lengths are read from an untrusted input without bounds validation, allowing an attacker to overflow fixed-size buffers and corrupt heap memory. A maliciously crafted session would need to be loaded from an external source to trigger this vulnerability. Internal sessions were not vulnerable."}],"affected":[{"vendor":"wolfssl","product":"wolfssl","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"5.8.4","versionType":"semver"}],"repo":"https://github.com/wolfSSL/wolfssl","programFiles":["src/ssl_sess.c"],"programRoutines":[{"name":"wolfSSL_d2i_SSL_SESSION"}]}],"references":[{"url":"https://github.com/wolfSSL/wolfssl/pull/9748"},{"url":"https://github.com/wolfSSL/wolfssl/pull/9949"}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"LOCAL","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"LOW","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subAvailabilityImpact":"NONE","exploitMaturity":"PROOF_OF_CONCEPT","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"MEDIUM","baseScore":5,"vectorString":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-122","lang":"en","description":"CWE-122 Heap-based Buffer Overflow","type":"CWE"}]}],"providerMetadata":{"shortName":"wolfSSL","orgId":"50d2cd11-d01a-48ed-9441-5bfce9d63b27","dateUpdated":"2026-03-19T17:25:42.810Z"},"impacts":[{"capecId":"CAPEC-100","descriptions":[{"lang":"en","value":"CAPEC-100 Overflow Buffers"}]}],"credits":[{"lang":"en","value":"Jonathan Bar Or (@yo_yo_yo_jbo)","type":"finder"},{"lang":"en","value":"Haruto Kimura (Stella)","type":"finder"}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.5.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-03-19T17:43:50.325959Z","id":"CVE-2026-2646","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-03-19T17:44:09.675Z"}}]}}}