CVE-2022-42905

In wolfSSL before 5.5.2, if callback functions are enabled (via the WOLFSSL_CALLBACKS flag), then a malicious TLS 1.3 client or network attacker can trigger a…

Critical · published November 6, 2022

CVSS v3.1
9.1
EPSS
2%
Percentile
81.4
In the wild
Unconfirmed
What it is

🔥 A sneaky buffer over-read is lurking in wolfSSL before version 5.5.2, all thanks to the WOLFSSL_CALLBACKS flag! Think of it like a librarian who accepts returned books without checking their condition. If a malicious patron knows exactly what to say, they could walk away with sensitive information stored in those books, hidden away in the library's archives. An attacker could exploit this vulnerability to read 5 bytes from the heap memory, potentially revealing critical data or even compromising the integrity of the TLS session. This is absolutely devastating for any implementation relying on wolfSSL, especially in environments where security is paramount!

Put simply

Think of it like a librarian who accepts returned books without checking their condition. If a malicious patron knows exactly what to say, they could walk away with sensitive information stored in those books, hidden away in the library's archives. This vulnerability arises when callback functions are enabled via the WOLFSSL_CALLBACKS flag, allowing an attacker to trigger a buffer over-read while handling TLS 1.3 communications, revealing sensitive data inadvertently stored in memory.

What to do

An attacker could exploit this vulnerability to read 5 bytes from the heap memory, potentially revealing critical data or even compromising the integrity of the TLS session. This is absolutely devastating for any implementation relying on wolfSSL, especially in environments where security is paramount! To remediate this, upgrade wolfSSL to version 5.5.2 or later immediately. Additionally, disable the WOLFSSL_CALLBACKS flag if it’s not necessary for your application's operation. Always ensure your dependencies are up-to-date to maintain security! You've got this! With these steps, you'll be locking down your system in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.02082 · 81.4th percentile
Published
2022-11-06T00:00Z
EPSS history
Timeline
  • 06 NOV 00:00Z
    In wolfSSL before 5.5.2, if callback functions are enabled (via the WOLFSSL_CALLBACKS flag), then a malicious TLS 1.3 client or network attacker can trigger a…
    cvelistv5