CVE-2022-38152
highpriority · track · 31EPSS 0.029 · 87 %ileEUUSEPSS · scored 2026-10-28
An issue was discovered in wolfSSL before 5.5.0. When a TLS 1.3 client connects to a wolfSSL server and SSL_clear is called on its session, the server crashes with a segmentation fault. This occurs in the second session, which is created through TLS session resumption and reuses the initial struct WOLFSSL. If the server reuses the previous session structure (struct WOLFSSL) by calling wolfSSL_clear(WOLFSSL* ssl) on it, the next received Client Hello (that resumes the previous session) crashes the server. Note that this bug is only triggered when resuming sessions using TLS session resumption. Only servers that use wolfSSL_clear instead of the recommended SSL_free; SSL_new sequence are affected. Furthermore, wolfSSL_clear is part of wolfSSL's compatibility layer and is not enabled by default. It is not part of wolfSSL's native API.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.9–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (2)
Products and version ranges known to be affected.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (22)
External citations — patches, advisories, analysis.
- http://seclists.org/fulldisclosure/2023/Jan/7cnnvd
- https://blog.trailofbits.com/2023/01/12/wolfssl-vulnerabilities-tlspuffin-fuzzing-ssh/cnnvd
- https://cxsecurity.com/cveshow/CVE-2022-38152/cnnvd
- https://github.com/tlspuffin/tlspuffincnnvd
- https://github.com/wolfSSL/wolfssl/pull/5468cnnvd
- https://github.com/wolfSSL/wolfssl/releasescnnvd
- https://packetstormsecurity.com/files/170604/wolfSSL-Session-Resumption-Denial-Of-Service.htmlcnnvd
- https://www.wolfssl.com/docs/security-vulnerabilities/cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan