# CVE-2025-58369: fs2: Half-shutdown of socket during TLS handshake may result in spin loop on opposite side

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.86% (percentile 56, 2026-11-26)
- **CWE:** CWE-400
- **Aliases:** GHSA-rrw2-px9j-qffj
- **Published:** 2025-09-05T20:58:23.000Z
- **Modified:** 2026-10-01T16:10:00.257Z

## 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)

## 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

- Maven `co.fs2:fs2-io_2.12`: affected \>= 3.0.0-M1, \< 3.12.2; fixed 3.12.2, 3.13.0-M7, 2.5.13 (osv)
- Maven `co.fs2:fs2-io_2.13`: affected \>= 3.0.0-M1, \< 3.12.2; fixed 3.12.2, 3.13.0-M7, 2.5.13 (osv)
- Maven `co.fs2:fs2-io_3`: affected \>= 3.0.0-M1, \< 3.12.2; fixed 3.12.2, 3.13.0-M7, 2.5.13 (osv)
- Maven `co.fs2:fs2-io_0.26`: affected 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; fixed no fix listed yet (osv)
- Maven `co.fs2:fs2-io_0.27`: affected 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; fixed no fix listed yet (osv)
- Maven `co.fs2:fs2-io_2.11`: affected 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; fixed no fix listed yet (osv)
- Maven `co.fs2:fs2-io_2.12.0-M4`: affected 0.9.0-M1, 0.9.0-M2, 0.9.0-M3, 0.9.0-M4; fixed no fix listed yet (osv)
- Maven `co.fs2:fs2-io_2.12.0-RC1`: affected 0.9.0, 0.9.1; fixed no fix listed yet (osv)
- Maven `co.fs2:fs2-io_2.12.0-M5`: affected 0.9.0-M5, 0.9.0-M6, 0.9.0-RC1, 0.9.0-RC2; fixed no fix listed yet (osv)
- Maven `co.fs2:fs2-io_2.12.0-RC2`: affected 0.9.1; fixed no fix listed yet (osv)
- Maven `co.fs2:fs2-io_2.13.0-M5`: affected 1.0.3, 1.0.4; fixed no fix listed yet (osv)
- typelevel fs2: \>= 3.0.0-M1, \< 3.12.2; \>= 3.13.0-M1, \< 3.13.0-M7; \< 2.5.13 (cvelist)

## 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).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/typelevel/fs2/security/advisories/GHSA-rrw2-px9j-qffj>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-58369>
- patch: <https://github.com/typelevel/fs2/commit/46e2dc3abf994dcf3d0b804b2ddb3c10c04d4976>
- patch: <https://github.com/typelevel/fs2/commit/5c6c4c6c1ef330f7e6b53661ecc63d5f5ba8885c>
- patch: <https://github.com/typelevel/fs2/commit/edf0c4f2e660360d1c1a8c5377ce32294de89238>
- patch: <https://github.com/typelevel/fs2/pull/3624>
- other: <https://github.com/typelevel/fs2/issues/3590>
- other: <https://github.com/typelevel/fs2/releases/tag/v3.12.2>
- other: <https://github.com/typelevel/fs2/releases/tag/v3.13.0-M7>
- other: <https://github.com/typelevel/fs2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-58369>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-rrw2-px9j-qffj> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-58369> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-58369>
