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 :

Nov. 21, 2024, 7:15 a.m.

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.

Affected Products

The following products are affected by CVE-2022-38152 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Wolfssl wolfssl

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

Updated: 1 month, 1 week ago
0 stars 0 fork 0 watcher
Born at : March 20, 2024, 9:52 a.m. This repo has been linked 6 different CVEs too.

Publications from Trail of Bits

conference-presentations academic-papers security-reviews

HTML Python Solidity JavaScript Dockerfile Makefile PHP C

Updated: 2 weeks, 4 days ago
1492 stars 180 fork 180 watcher
Born at : April 29, 2015, 7:30 p.m. This repo has been linked 22 different CVEs too.

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 af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/170604/wolfSSL-Session-Resumption-Denial-Of-Service.html
    Added Reference http://seclists.org/fulldisclosure/2023/Jan/7
    Added Reference https://blog.trailofbits.com/2023/01/12/wolfssl-vulnerabilities-tlspuffin-fuzzing-ssh/
    Added Reference https://github.com/tlspuffin/tlspuffin
    Added Reference https://github.com/wolfSSL/wolfssl/pull/5468
    Added Reference https://github.com/wolfSSL/wolfssl/releases
    Added Reference https://www.wolfssl.com/docs/security-vulnerabilities/
  • 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
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
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.56 }} 0.04%

score

0.77587

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability