CVE-2025-58369
fs2: Half-shutdown of socket during TLS handshake may result in spin loop on opposite side
Check your servers for CVE-2025-58369
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-58369 affects fs2, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.50%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 44.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 8 Sep 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-400 Uncontrolled Resource Consumption
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| fs2 |
affected >= 3.0.0-M1, < 3.12.2 affected >= 3.13.0-M1, < 3.13.0-M7 affected < 2.5.13
|
Is my server affected?
Find the installed version of fs2 and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i fs2
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2025-58369 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2025-58369RHEL, Rocky, Alma, Fedora
rpm -q fs2
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2025-58369Alpine
apk list --installed | grep -i fs2With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-58369
trivy image --scanners vuln IMAGE | grep CVE-2025-58369
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Other references
- https://github.com/typelevel/fs2/issues/3590 github.com
- https://github.com/typelevel/fs2/commit/46e2dc3abf994dcf3d0b804b2ddb3c10c04d4976 github.com
- https://github.com/typelevel/fs2/commit/5c6c4c6c1ef330f7e6b53661ecc63d5f5ba8885c github.com
- https://github.com/typelevel/fs2/commit/edf0c4f2e660360d1c1a8c5377ce32294de89238 github.com
- https://github.com/typelevel/fs2/releases/tag/v3.12.2 github.com
- https://github.com/typelevel/fs2/releases/tag/v3.13.0-M7 github.com
Source: the record CVE-2025-58369 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse