# CVE-2022-38152: An issue was discovered in wolfSSL before 5.5.0.

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.07%, higher than 87% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2022-08-31T00:00:00.000Z
- Modified: 2026-06-17T04:56:12.137Z
- Weaknesses: CWE-754
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- wolfssl wolfssl: before 5.5.0

## References

- <https://github.com/wolfSSL/wolfssl/pull/5468> (exploit, patch, third-party-advisory)
- <http://seclists.org/fulldisclosure/2023/Jan/7> (exploit, mailing-list, third-party-advisory)
- <http://packetstormsecurity.com/files/170604/wolfSSL-Session-Resumption-Denial-Of-Service.html> (exploit, third-party-advisory)
- <https://github.com/wolfSSL/wolfssl/releases> (release-notes)
- <https://www.wolfssl.com/docs/security-vulnerabilities/> (vendor-advisory)
- <https://github.com/tlspuffin/tlspuffin> (not-applicable)
- <https://blog.trailofbits.com/2023/01/12/wolfssl-vulnerabilities-tlspuffin-fuzzing-ssh/> (third-party-advisory)

## Sources

- CVE List: [CVE-2022-38152](https://www.cve.org/CVERecord?id=CVE-2022-38152), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2022-38152](https://nvd.nist.gov/vuln/detail/CVE-2022-38152), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-38152 · Whole record: https://cve.day/CVE-2022-38152.json · Rebuilt by cve.day 2026-11-25T22:58:14.587Z
