Vulnerability · Published Sep 29, 2022 · Assigned by mitre
CVE-2022-39173
High 7.5
In plain English
A high-severity out-of-bounds write in the wolfssl package (Alpine). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 5.8% (higher than 93% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
In wolfSSL before 5.5.1, malicious clients can cause a buffer overflow during a TLS 1.3 handshake. This occurs when an attacker supposedly resumes a previous TLS session. During the resumption Client Hello a Hello Retry Request must be triggered. Both Client Hellos are required to contain a list of duplicate cipher suites to trigger the buffer overflow. In total, two Client Hellos have to be sent: one in the resumed session, and a second one as a response to a Hello Retry Request message.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | wolfssl | 5.5.1-r0 | ALPINE-CVE-2022-39173 |
| Alpine:v3.21 | wolfssl | 5.5.1-r0 | ALPINE-CVE-2022-39173 |
| Alpine:v3.22 | wolfssl | 5.5.1-r0 | ALPINE-CVE-2022-39173 |
| Alpine:v3.23 | wolfssl | 5.5.1-r0 | ALPINE-CVE-2022-39173 |
| Alpine:v3.24 | wolfssl | 5.5.1-r0 | ALPINE-CVE-2022-39173 |
| Debian:12 | wolfssl | 5.5.3-1 | DEBIAN-CVE-2022-39173 |
| Debian:13 | wolfssl | 5.5.3-1 | DEBIAN-CVE-2022-39173 |
| Ubuntu:22.04:LTS | wolfssl | no fix listed | UBUNTU-CVE-2022-39173 |
| Ubuntu:24.04:LTS | wolfssl | no fix listed | UBUNTU-CVE-2022-39173 |
| Ubuntu:25.10 | wolfssl | no fix listed | UBUNTU-CVE-2022-39173 |
| Ubuntu:26.04:LTS | wolfssl | no fix listed | UBUNTU-CVE-2022-39173 |
| Ubuntu:26.10 | wolfssl | no fix listed | UBUNTU-CVE-2022-39173 |
Affected products (as reported)
Weakness: CWE-787 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://www.wolfssl.com/docs/security-vulnerabilities/
- https://github.com/wolfSSL/wolfssl/releases
- 20221030 wolfssl before 5.5.1: CVE-2022-39173 Buffer overflow when refining cipher suites mailing-list
- http://packetstormsecurity.com/files/169600/wolfSSL-Buffer-Overflow.html
- https://blog.trailofbits.com/2023/01/12/wolfssl-vulnerabilities-tlspuffin-fuzzing-ssh/