Vulnerability Details : CVE-2022-38153
Potential exploit
An issue was discovered in wolfSSL before 5.5.0 (when --enable-session-ticket is used); however, only version 5.3.0 is exploitable. Man-in-the-middle attackers or a malicious server can crash TLS 1.2 clients during a handshake. If an attacker injects a large ticket (more than 256 bytes) into a NewSessionTicket message in a TLS 1.2 handshake, and the client has a non-empty session cache, the session cache frees a pointer that points to unallocated memory, causing the client to crash with a "free(): invalid pointer" message. NOTE: It is likely that this is also exploitable during TLS 1.3 handshakes between a client and a malicious server. With TLS 1.3, it is not possible to exploit this as a man-in-the-middle.
Products affected by CVE-2022-38153
- cpe:2.3:a:wolfssl:wolfssl:5.3.0:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-38153
2.45%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 84 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-38153
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.9
|
MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
2.2
|
3.6
|
NIST |
CWE ids for CVE-2022-38153
-
The product allocates a reusable resource or group of resources on behalf of an actor without imposing any restrictions on the size or number of resources that can be allocated, in violation of the intended security policy for that actor.Assigned by: nvd@nist.gov (Primary)
References for CVE-2022-38153
-
https://github.com/wolfSSL/wolfssl/pull/5476
Remove WOLFSSL_SESSION_TYPE_REF buffers from WOLFSSL_SESSION by julek-wolfssl · Pull Request #5476 · wolfSSL/wolfssl · GitHubExploit;Patch;Third Party Advisory
-
https://blog.trailofbits.com/2023/01/12/wolfssl-vulnerabilities-tlspuffin-fuzzing-ssh/
Keeping the wolves out of wolfSSL | Trail of Bits BlogThird Party Advisory
-
http://packetstormsecurity.com/files/170605/wolfSSL-5.3.0-Denial-Of-Service.html
wolfSSL 5.3.0 Denial Of Service ≈ Packet StormExploit;Third Party Advisory
-
https://github.com/trailofbits/tlspuffin
GitHub - trailofbits/tlspuffin: A symbolic-model-guided fuzzer for TLSNot Applicable
-
https://github.com/wolfSSL/wolfssl/releases
Releases · wolfSSL/wolfssl · GitHubRelease Notes
-
http://seclists.org/fulldisclosure/2023/Jan/8
Full Disclosure: wolfSSL 5.3.0: Denial-of-serviceExploit;Mailing List;Third Party Advisory
-
https://www.wolfssl.com/docs/security-vulnerabilities/
wolfSSL Security Vulnerabilities | wolfSSL Embedded SSL/TLS LibraryVendor Advisory
Jump to