CVE-2022-38152
WolfSSL TLS Session Resumption Crash
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.
INFO
Published Date :
Aug. 31, 2022, 5:15 p.m.
Last Modified :
March 1, 2023, 3:50 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
3.6
Exploitability Score :
3.9
Public PoC/Exploit Available at Github
CVE-2022-38152 has a 2 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-38152
.
URL | Resource |
---|---|
http://packetstormsecurity.com/files/170604/wolfSSL-Session-Resumption-Denial-Of-Service.html | Exploit Third Party Advisory |
http://seclists.org/fulldisclosure/2023/Jan/7 | Exploit Mailing List Third Party Advisory |
https://blog.trailofbits.com/2023/01/12/wolfssl-vulnerabilities-tlspuffin-fuzzing-ssh/ | Third Party Advisory |
https://github.com/tlspuffin/tlspuffin | Not Applicable |
https://github.com/wolfSSL/wolfssl/pull/5468 | Exploit Patch Third Party Advisory |
https://github.com/wolfSSL/wolfssl/releases | Release Notes |
https://www.wolfssl.com/docs/security-vulnerabilities/ | Vendor Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
Shell Dockerfile C
Publications from Trail of Bits
conference-presentations academic-papers security-reviews
HTML Python Solidity JavaScript Dockerfile Makefile PHP C
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-38152
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-38152
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Modified Analysis by [email protected]
Mar. 01, 2023
Action Type Old Value New Value Changed Reference Type http://packetstormsecurity.com/files/170604/wolfSSL-Session-Resumption-Denial-Of-Service.html No Types Assigned http://packetstormsecurity.com/files/170604/wolfSSL-Session-Resumption-Denial-Of-Service.html Exploit, Third Party Advisory Changed Reference Type http://seclists.org/fulldisclosure/2023/Jan/7 No Types Assigned http://seclists.org/fulldisclosure/2023/Jan/7 Exploit, Mailing List, Third Party Advisory Changed Reference Type https://blog.trailofbits.com/2023/01/12/wolfssl-vulnerabilities-tlspuffin-fuzzing-ssh/ No Types Assigned https://blog.trailofbits.com/2023/01/12/wolfssl-vulnerabilities-tlspuffin-fuzzing-ssh/ Third Party Advisory Changed Reference Type https://github.com/wolfSSL/wolfssl/releases Release Notes, Third Party Advisory https://github.com/wolfSSL/wolfssl/releases Release Notes -
CVE Modified by [email protected]
Feb. 15, 2023
Action Type Old Value New Value Added Reference https://blog.trailofbits.com/2023/01/12/wolfssl-vulnerabilities-tlspuffin-fuzzing-ssh/ [No Types Assigned] -
CVE Modified by [email protected]
Jan. 20, 2023
Action Type Old Value New Value Added Reference http://packetstormsecurity.com/files/170604/wolfSSL-Session-Resumption-Denial-Of-Service.html [No Types Assigned] -
CVE Modified by [email protected]
Jan. 20, 2023
Action Type Old Value New Value Added Reference http://seclists.org/fulldisclosure/2023/Jan/7 [No Types Assigned] -
Initial Analysis by [email protected]
Sep. 08, 2022
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Changed Reference Type https://github.com/tlspuffin/tlspuffin No Types Assigned https://github.com/tlspuffin/tlspuffin Not Applicable Changed Reference Type https://github.com/wolfSSL/wolfssl/pull/5468 No Types Assigned https://github.com/wolfSSL/wolfssl/pull/5468 Exploit, Patch, Third Party Advisory Changed Reference Type https://github.com/wolfSSL/wolfssl/releases No Types Assigned https://github.com/wolfSSL/wolfssl/releases Release Notes, Third Party Advisory Changed Reference Type https://www.wolfssl.com/docs/security-vulnerabilities/ No Types Assigned https://www.wolfssl.com/docs/security-vulnerabilities/ Vendor Advisory Added CWE NIST CWE-754 Added CPE Configuration OR *cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:* versions up to (excluding) 5.5.0
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-38152
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-38152
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.41 }} 0.07%
score
0.73520
percentile