Vulnerabilities · 2022 · Typelevel
CVE-2022-31183
Typelevel Fs2 vulnerability
fs2 is a compositional, streaming I/O library for Scala. When establishing a server-mode `TLSSocket` using `fs2-io` on Node.js, the parameter `requestCert = true` is ignored, peer certificate verification is skipped, and the connection proceeds. The vulnerability is limited to: 1. `fs2-io` running on Node.js. The JVM TLS implementation is completely independent. 2. `TLSSocket`s in server-mode. Client-mode `TLSSocket`s are implemented via a different API. 3. mTLS as enabled via `requestCert = true` in `TLSParameters`. The default setting is `false` for server-mode `TLSSocket`s. It was introduced with the initial Node.js implementation of fs2-io in 3.1.0. A patch is released in v3.2.11. The requestCert = true parameter is respected and the peer certificate is verified. If verification fails, a SSLException is raised. If using an unpatched version on Node.js, do not use a server-mode TLSSocket with requestCert = true to establish a mTLS connection.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Fs2. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Typelevel Fs2 runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/typelevel/fs2/commit/659824395826a314e0a4331535dbf1ef8bef8207 · Patch
- github.com/nodejs/node/issues/43994 · Exploit
- github.com/typelevel/fs2/security/advisories/GHSA-2cpx-6pqp-wf35 · Third Party Advisory
- github.com/typelevel/fs2/commit/19ce392e8093d9571387dbd78e159e655a85aeea
- github.com/typelevel/fs2/releases/tag/v3.2.11
- nvd.nist.gov/vuln/detail/CVE-2022-31183
- github.com/advisories/GHSA-2cpx-6pqp-wf35
- nvd.nist.gov/vuln/detail/CVE-2022-31183
- cve.org/CVERecord?id=CVE-2022-31183
More vulnerabilities in Typelevel products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.