{"id":"CVE-2025-58369","published":"2025-09-05T21:59:58Z","modified":"2025-11-07T11:52:43Z","title":"fs2: Half-shutdown of socket during TLS handshake may result in spin loop on opposite side","vendor":"typelevel","product":"fs2","tier":"tail","description":{"text":"fs2 is a compositional, streaming I/O library for Scala. Versions up to and including 2.5.12, 3.0.0-M1 through 3.12.2, and 3.13.0-M1 through 3.13.0-M6 are vulnerable to denial of service attacks though TLS sessions using fs2-io on the JVM using the fs2.io.net.tls package. When establishing a TLS session, if one side of the connection shuts down `write` while the peer side is awaiting more data to progress the TLS handshake, the peer side will spin loop on the socket read, fully utilizing a CPU. The CPU is consumed until the overall connection is closed, potentially shutting down a fs2-io powered server. This issue is fixed in versions  2.5.13, 3.12.1, and 3.13.0-M7.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00815,"percentile":0.53997,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/typelevel/fs2/security/advisories/GHSA-rrw2-px9j-qffj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/typelevel/fs2/issues/3590","tags":["x_refsource_MISC"]},{"url":"https://github.com/typelevel/fs2/commit/46e2dc3abf994dcf3d0b804b2ddb3c10c04d4976","tags":["x_refsource_MISC"]},{"url":"https://github.com/typelevel/fs2/commit/5c6c4c6c1ef330f7e6b53661ecc63d5f5ba8885c","tags":["x_refsource_MISC"]},{"url":"https://github.com/typelevel/fs2/commit/edf0c4f2e660360d1c1a8c5377ce32294de89238","tags":["x_refsource_MISC"]},{"url":"https://github.com/typelevel/fs2/releases/tag/v3.12.2","tags":["x_refsource_MISC"]},{"url":"https://github.com/typelevel/fs2/releases/tag/v3.13.0-M7","tags":["x_refsource_MISC"]}],"priority":{"score":14.5,"factors":[{"name":"EPSS percentile","points":10.8},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"typelevel","affectedVersions":[{"vendor":"typelevel","product":"fs2","versions":[">= 3.0.0-M1, < 3.12.2",">= 3.13.0-M1, < 3.13.0-M7","< 2.5.13"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-09-08T20:09:25.588603Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"co.fs2:fs2-io_2.12","vulnerableRanges":[">=3.0.0-M1, <3.12.2",">=3.13.0-M1, <3.13.0-M7","<2.5.13"],"patched":["3.12.2","3.13.0-M7","2.5.13"],"from":["GHSA-rrw2-px9j-qffj"],"provenance":"source"},{"ecosystem":"Maven","package":"co.fs2:fs2-io_2.13","vulnerableRanges":[">=3.0.0-M1, <3.12.2",">=3.13.0-M1, <3.13.0-M7","<2.5.13"],"patched":["3.12.2","3.13.0-M7","2.5.13"],"from":["GHSA-rrw2-px9j-qffj"],"provenance":"source"},{"ecosystem":"Maven","package":"co.fs2:fs2-io_3","vulnerableRanges":[">=3.0.0-M1, <3.12.2",">=3.13.0-M1, <3.13.0-M7","<2.5.13"],"patched":["3.12.2","3.13.0-M7","2.5.13"],"from":["GHSA-rrw2-px9j-qffj"],"provenance":"source"},{"ecosystem":"Maven","package":"co.fs2:fs2-io_0.26","vulnerableRanges":["<2.5.13"],"patched":[],"from":["GHSA-rrw2-px9j-qffj"],"provenance":"source"},{"ecosystem":"Maven","package":"co.fs2:fs2-io_0.27","vulnerableRanges":["<2.5.13"],"patched":[],"from":["GHSA-rrw2-px9j-qffj"],"provenance":"source"},{"ecosystem":"Maven","package":"co.fs2:fs2-io_2.11","vulnerableRanges":["<2.5.13"],"patched":[],"from":["GHSA-rrw2-px9j-qffj"],"provenance":"source"},{"ecosystem":"Maven","package":"co.fs2:fs2-io_2.12.0-M4","vulnerableRanges":["<2.5.13"],"patched":[],"from":["GHSA-rrw2-px9j-qffj"],"provenance":"source"},{"ecosystem":"Maven","package":"co.fs2:fs2-io_2.12.0-RC1","vulnerableRanges":["<2.5.13"],"patched":[],"from":["GHSA-rrw2-px9j-qffj"],"provenance":"source"},{"ecosystem":"Maven","package":"co.fs2:fs2-io_2.12.0-M5","vulnerableRanges":["<2.5.13"],"patched":[],"from":["GHSA-rrw2-px9j-qffj"],"provenance":"source"},{"ecosystem":"Maven","package":"co.fs2:fs2-io_2.12.0-RC2","vulnerableRanges":["<2.5.13"],"patched":[],"from":["GHSA-rrw2-px9j-qffj"],"provenance":"source"}],"summary":{"text":"The fs2 library for Scala, specifically its fs2.io.net.tls package on the JVM, can spin a CPU core on the peer side during a TLS handshake when one side shuts down its write half while the other side is still waiting for handshake data. An unauthenticated remote attacker with network access can trigger this without user interaction, causing a sustained CPU-consuming loop until the connection closes, which can take down an fs2-io-based server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:57:07Z"},"euvd":{"id":"EUVD-2025-27048","exploited":false,"provenance":"source"}}