Vulnerability · Published Nov 6, 2022 · Assigned by mitre
CVE-2022-42905
Critical 9.1
In plain English
A critical-severity out-of-bounds read in the wolfssl package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.5% (higher than 85% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)2.5%top 15.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
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 buffer over-read on the heap of 5 bytes. (WOLFSSL_CALLBACKS is only intended for debugging.)
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | wolfssl | 5.5.3-r0 | ALPINE-CVE-2022-42905 |
| Alpine:v3.21 | wolfssl | 5.5.3-r0 | ALPINE-CVE-2022-42905 |
| Alpine:v3.22 | wolfssl | 5.5.3-r0 | ALPINE-CVE-2022-42905 |
| Alpine:v3.23 | wolfssl | 5.5.3-r0 | ALPINE-CVE-2022-42905 |
| Alpine:v3.24 | wolfssl | 5.5.3-r0 | ALPINE-CVE-2022-42905 |
| Debian:12 | wolfssl | 5.5.3-1 | DEBIAN-CVE-2022-42905 |
| Debian:13 | wolfssl | 5.5.3-1 | DEBIAN-CVE-2022-42905 |
| Ubuntu:22.04:LTS | wolfssl | no fix listed | UBUNTU-CVE-2022-42905 |
| Ubuntu:24.04:LTS | wolfssl | no fix listed | UBUNTU-CVE-2022-42905 |
| Ubuntu:25.10 | wolfssl | no fix listed | UBUNTU-CVE-2022-42905 |
| Ubuntu:26.04:LTS | wolfssl | no fix listed | UBUNTU-CVE-2022-42905 |
| Ubuntu:26.10 | wolfssl | no fix listed | UBUNTU-CVE-2022-42905 |
Affected products (as reported)
Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
References
- https://www.wolfssl.com/docs/security-vulnerabilities/
- https://github.com/wolfSSL/wolfssl/releases
- https://github.com/wolfSSL/wolfssl/releases/tag/v5.5.2-stable
- 20230119 wolfSSL before 5.5.2: Heap-buffer over-read with WOLFSSL_CALLBACKS mailing-list
- http://packetstormsecurity.com/files/170610/wolfSSL-WOLFSSL_CALLBACKS-Heap-Buffer-Over-Read.html
- https://blog.trailofbits.com/2023/01/12/wolfssl-vulnerabilities-tlspuffin-fuzzing-ssh/