CVE-2025-58369
fs2: Half-shutdown of socket during TLS handshake may result in spin loop on opposite side
Also known as GHSA-rrw2-px9j-qffj
Mitigation
- Upgrade co.fs2:fs2-io_2.12 to one of 3.12.2, 3.13.0-M7, 2.5.13 (or later in the same release line).
- Upgrade co.fs2:fs2-io_2.13 to one of 3.12.2, 3.13.0-M7, 2.5.13 (or later in the same release line).
- Upgrade co.fs2:fs2-io_3 to one of 3.12.2, 3.13.0-M7, 2.5.13 (or later in the same release line).
Who should check
- Projects that depend on Maven package co.fs2:fs2-io_2.12 (>= 3.0.0-M1, < 3.12.2)
- Projects that depend on Maven package co.fs2:fs2-io_2.13 (>= 3.0.0-M1, < 3.12.2)
- Projects that depend on Maven package co.fs2:fs2-io_3 (>= 3.0.0-M1, < 3.12.2)
- Projects that depend on Maven package co.fs2:fs2-io_0.26 (2.4-4ed62ae, 2.4-8fa361a, 2.4-d455ec8, 2.4-d6ca5da, 2.4.3, 2.4.4, 3.0-0bb4bb2, 3.0-4e770f0, 3.0-64069b9, 3.0-825babc)
- Projects that depend on Maven package co.fs2:fs2-io_0.27 (2.4-0076a63, 2.4-06d97e9, 2.4-0d3c7b8, 2.4-0fb91f3, 2.4-14075f2, 2.4-1600199, 2.4-16b3ea4, 2.4-1731d9f, 2.4-1e40a2b, 2.4-1fc5930)
- Projects that depend on Maven package co.fs2:fs2-io_2.11 (0.10.0, 0.10.0-M1, 0.10.0-M10, 0.10.0-M11, 0.10.0-M2, 0.10.0-M3, 0.10.0-M4, 0.10.0-M5, 0.10.0-M6, 0.10.0-M7)
- Projects that depend on Maven package co.fs2:fs2-io_2.12.0-M4 (0.9.0-M1, 0.9.0-M2, 0.9.0-M3, 0.9.0-M4)
- Projects that depend on Maven package co.fs2:fs2-io_2.12.0-RC1 (0.9.0, 0.9.1)
Vulnerability facts
- Affected
- co.fs2:fs2-io_2.12 >= 3.0.0-M1, < 3.12.2; co.fs2:fs2-io_2.13 >= 3.0.0-M1, < 3.12.2; co.fs2:fs2-io_3 >= 3.0.0-M1, < 3.12.2; co.fs2:fs2-io_0.26 2.4-4ed62ae, 2.4-8fa361a, 2.4-d455ec8, 2.4-d6ca5da, 2.4.3, 2.4.4, 3.0-0bb4bb2, 3.0-4e770f0, 3.0-64069b9, 3.0-825babc; co.fs2:fs2-io_0.27 2.4-0076a63, 2.4-06d97e9, 2.4-0d3c7b8, 2.4-0fb91f3, 2.4-14075f2, 2.4-1600199, 2.4-16b3ea4, 2.4-1731d9f, 2.4-1e40a2b, 2.4-1fc5930; co.fs2:fs2-io_2.11 0.10.0, 0.10.0-M1, 0.10.0-M10, 0.10.0-M11, 0.10.0-M2, 0.10.0-M3, 0.10.0-M4, 0.10.0-M5, 0.10.0-M6, 0.10.0-M7; co.fs2:fs2-io_2.12.0-M4 0.9.0-M1, 0.9.0-M2, 0.9.0-M3, 0.9.0-M4; co.fs2:fs2-io_2.12.0-RC1 0.9.0, 0.9.1; co.fs2:fs2-io_2.12.0-M5 0.9.0-M5, 0.9.0-M6, 0.9.0-RC1, 0.9.0-RC2; co.fs2:fs2-io_2.12.0-RC2 0.9.1; co.fs2:fs2-io_2.13.0-M5 1.0.3, 1.0.4
- Fixed in
- 3.12.2, 3.13.0-M7, 2.5.13
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: Low
- EPSS
- 0.86% chance of exploitation in 30 days (percentile 56, 2026-11-26)
- CWE
- CWE-400
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven co.fs2:fs2-io_2.12 | >= 3.0.0-M1, < 3.12.2 | 3.12.2, 3.13.0-M7, 2.5.13 | osv |
| Maven co.fs2:fs2-io_2.13 | >= 3.0.0-M1, < 3.12.2 | 3.12.2, 3.13.0-M7, 2.5.13 | osv |
| Maven co.fs2:fs2-io_3 | >= 3.0.0-M1, < 3.12.2 | 3.12.2, 3.13.0-M7, 2.5.13 | osv |
| Maven co.fs2:fs2-io_0.26 | 2.4-4ed62ae, 2.4-8fa361a, 2.4-d455ec8, 2.4-d6ca5da, 2.4.3, 2.4.4, 3.0-0bb4bb2, 3.0-4e770f0, 3.0-64069b9, 3.0-825babc | — | osv |
| Maven co.fs2:fs2-io_0.27 | 2.4-0076a63, 2.4-06d97e9, 2.4-0d3c7b8, 2.4-0fb91f3, 2.4-14075f2, 2.4-1600199, 2.4-16b3ea4, 2.4-1731d9f, 2.4-1e40a2b, 2.4-1fc5930 | — | osv |
| Maven co.fs2:fs2-io_2.11 | 0.10.0, 0.10.0-M1, 0.10.0-M10, 0.10.0-M11, 0.10.0-M2, 0.10.0-M3, 0.10.0-M4, 0.10.0-M5, 0.10.0-M6, 0.10.0-M7 | — | osv |
| Maven co.fs2:fs2-io_2.12.0-M4 | 0.9.0-M1, 0.9.0-M2, 0.9.0-M3, 0.9.0-M4 | — | osv |
| Maven co.fs2:fs2-io_2.12.0-RC1 | 0.9.0, 0.9.1 | — | osv |
| Maven co.fs2:fs2-io_2.12.0-M5 | 0.9.0-M5, 0.9.0-M6, 0.9.0-RC1, 0.9.0-RC2 | — | osv |
| Maven co.fs2:fs2-io_2.12.0-RC2 | 0.9.1 | — | osv |
| Maven co.fs2:fs2-io_2.13.0-M5 | 1.0.3, 1.0.4 | — | osv |
| typelevel fs2 | >= 3.0.0-M1, < 3.12.2; >= 3.13.0-M1, < 3.13.0-M7; < 2.5.13 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-58369. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-58369.md Affected: co.fs2:fs2-io_2.12 >= 3.0.0-M1, < 3.12.2; co.fs2:fs2-io_2.13 >= 3.0.0-M1, < 3.12.2; co.fs2:fs2-io_3 >= 3.0.0-M1, < 3.12.2; co.fs2:fs2-io_0.26 2.4-4ed62ae, 2.4-8fa361a, 2.4-d455ec8, 2.4-d6ca5da, 2.4.3, 2.4.4, 3.0-0bb4bb2, 3.0-4e770f0, 3.0-64069b9, 3.0-825babc; co.fs2:fs2-io_0.27 2.4-0076a63, 2.4-06d… Fixed in: 3.12.2, 3.13.0-M7, 2.5.13 Steps: 1. Search this machine and project for co.fs2:fs2-io_2.12 (Maven), co.fs2:fs2-io_2.13 (Maven), co.fs2:fs2-io_3 (Maven), co.fs2:fs2-io_0.26 (Maven), co.fs2:fs2-io_0.27 (Maven), co.fs2:fs2-io_2.11 (Maven): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2025-58369 being exploited?
There is no confirmed exploitation: CVE-2025-58369 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.86% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-58369?
Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2025-58369?
co.fs2:fs2-io_2.12 >= 3.0.0-M1, < 3.12.2; co.fs2:fs2-io_2.13 >= 3.0.0-M1, < 3.12.2; co.fs2:fs2-io_3 >= 3.0.0-M1, < 3.12.2; co.fs2:fs2-io_0.26 2.4-4ed62ae, 2.4-8fa361a, 2.4-d455ec8, 2.4-d6ca5da, 2.4.3, 2.4.4, 3.0-0bb4bb2, 3.0-4e770f0, 3.0-64069b9, 3.0-825babc; co.fs2:fs2-io_0.27 2.4-0076a63, 2.4-06d97e9, 2.4-0d3c7b8, 2.4-0fb91f3, 2.4-14075f2, 2.4-1600199, 2.4-16b3ea4, 2.4-1731d9f, 2.4-1e40a2b, 2.4-1fc5930; co.fs2:fs2-io_2.11 0.10.0, 0.10.0-M1, 0.10.0-M10, 0.10.0-M11, 0.10.0-M2, 0.10.0-M3, 0.10.0-M4, 0.10.0-M5, 0.10.0-M6, 0.10.0-M7; co.fs2:fs2-io_2.12.0-M4 0.9.0-M1, 0.9.0-M2, 0.9.0-M3, 0.9.0-M4; co.fs2:fs2-io_2.12.0-RC1 0.9.0, 0.9.1; co.fs2:fs2-io_2.12.0-M5 0.9.0-M5, 0.9.0-M6, 0.9.0-RC1, 0.9.0-RC2; co.fs2:fs2-io_2.12.0-RC2 0.9.1; co.fs2:fs2-io_2.13.0-M5 1.0.3, 1.0.4.
Is there a fix for CVE-2025-58369?
Yes. Fixed in 3.12.2, 3.13.0-M7, 2.5.13. Upgrade co.fs2:fs2-io_2.12 to one of 3.12.2, 3.13.0-M7, 2.5.13 (or later in the same release line). Upgrade co.fs2:fs2-io_2.13 to one of 3.12.2, 3.13.0-M7, 2.5.13 (or later in the same release line). Upgrade co.fs2:fs2-io_3 to one of 3.12.2, 3.13.0-M7, 2.5.13 (or later in the same release line).
How do I check if I'm affected by CVE-2025-58369?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.