CVE-2022-31183: fs2-io skips mTLS client verification
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.3459%
CWE
Published
7/29/2022
Updated
1/31/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
co.fs2:fs2-io | maven | >= 3.1.0, < 3.2.11 | 3.2.11 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the Node.js server-mode TLSSocket implementation in fs2-io. The pre-patch code in TLSContextPlatform.scala created TLSSockets without:
- Listening for the 'secure' event to trigger verification
- Checking tlsSock.ssl.verifyError() for certificate validation errors
- Properly wiring the rejectUnauthorized logic
The commit diff shows the patch added these missing verification steps by using once("secure") and ssl.verifyError(). The vulnerable function is the server socket builder that omitted these critical security checks when requestCert=true was set, making it the root cause of improper certificate validation.