Vulnerabilities in pkg:maven/co.fs2/fs2-io_0.27
PACKAGECVE-2025-58369 is a MODERATE (CVSS 5.3) fs2 half-shutdown of socket during vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Fs2 io 2.12 libraries in the Maven ecosystem. The issue involves fs2 half-shutdown of socket during tls handshake may result in spin loop on opposite side. Remediation is available by upgrading affected packages to version 3.12.2, 3.13.0-M7, 2.5.13.
pkg:maven/co.fs2/fs2-io_0.27
Vulnerability advisories affecting package pkg:maven/co.fs2/fs2-io_0.27. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-rrw2-px9j-qffj | CVE-2025-58369 | MODERATE | FS2 half-shutdown of socket during TLS handshake may result in spin loop on opposite side |
CVE-2025-58369 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2025-58369
To remediate this vulnerability, upgrade all affected Fs2 io 2.12 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_2.12</artifactId>
<version>3.12.2</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_2.12</artifactId>
<version>3.13.0-M7</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_2.13</artifactId>
<version>3.12.2</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_2.13</artifactId>
<version>3.13.0-M7</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_3</artifactId>
<version>3.12.2</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_3</artifactId>
<version>3.13.0-M7</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_0.26</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_0.27</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_2.11</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_2.12.0-M4</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_2.12.0-RC1</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_2.12.0-M5</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_2.12.0-RC2</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_2.13.0-M5</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_2.12</artifactId>
<version>2.5.13</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_2.13</artifactId>
<version>2.5.13</version>
</dependency>
<dependency>
<groupId>co.fs2</groupId>
<artifactId>fs2-io_3</artifactId>
<version>2.5.13</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=co.fs2
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-58369, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=co.fs2
Analyze the terminal output to locate any version of Fs2 io 2.12 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.12.2), your application is affected.
Note: The mvn dependency:tree -Dincludes=co.fs2 command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Fs2 io 2.12, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-58369 Affected Fs2 io 2.12 Versions
17 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
co.fs2:fs2-io_2.12
|
Maven |
≥ 3.0.0-M1
< 3.12.2
|
3.12.2
|
|
co.fs2:fs2-io_2.12
|
Maven |
≥ 3.13.0-M1
< 3.13.0-M7
|
3.13.0-M7
|
|
co.fs2:fs2-io_2.13
|
Maven |
≥ 3.0.0-M1
< 3.12.2
|
3.12.2
|
|
co.fs2:fs2-io_2.13
|
Maven |
≥ 3.13.0-M1
< 3.13.0-M7
|
3.13.0-M7
|
|
co.fs2:fs2-io_3
|
Maven |
≥ 3.0.0-M1
< 3.12.2
|
3.12.2
|
|
co.fs2:fs2-io_3
|
Maven |
≥ 3.13.0-M1
< 3.13.0-M7
|
3.13.0-M7
|
|
co.fs2:fs2-io_0.26
|
Maven |
|
|
|
co.fs2:fs2-io_0.27
|
Maven |
|
|
|
co.fs2:fs2-io_2.11
|
Maven |
|
|
|
co.fs2:fs2-io_2.12.0-M4
|
Maven |
|
|
|
co.fs2:fs2-io_2.12.0-RC1
|
Maven |
|
|
|
co.fs2:fs2-io_2.12.0-M5
|
Maven |
|
|
|
co.fs2:fs2-io_2.12.0-RC2
|
Maven |
|
|
|
co.fs2:fs2-io_2.13.0-M5
|
Maven |
|
|
|
co.fs2:fs2-io_2.12
|
Maven |
< 2.5.13
|
2.5.13
|
|
co.fs2:fs2-io_2.13
|
Maven |
< 2.5.13
|
2.5.13
|
|
co.fs2:fs2-io_3
|
Maven |
< 2.5.13
|
2.5.13
|
References
Frequently Asked Questions
What is CVE-2025-58369?
Which Fs2 io 2.12 versions are affected?
What version fixes CVE-2025-58369?
Is fs2-io_2.12 affected?
Is fs2-io_2.13 affected?
What is the CVSS score of CVE-2025-58369?
What CWE is associated with CVE-2025-58369?
How can I check Maven dependencies for CVE-2025-58369?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rrw2-px9j-qffj",
"modified" : "2025-11-07T12:29:27Z",
"published" : "2025-09-05T20:58:23Z",
"aliases" : [ "CVE-2025-58369" ],
"summary" : "FS2 half-shutdown of socket during TLS handshake may result in spin loop on opposite side",
"details" : "### Impact\nWhen establishing a TLS session using `fs2-io` on the JVM using the `fs2.io.net.tls` package, 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. This CPU is consumed until the overall connection is closed.\n\nThis could be used as a denial of service attack on an fs2-io powered server -- for example, by opening many connections and putting them in a half-shutdown state.\n\nNote: this issue impacts ember backed http4s servers with HTTPS as a result of ember using fs2's TLS support.\n\n### Patches\nFixed in fs2 3.12.2 and 3.13.0-M7.\n\n### Workarounds\nNo workarounds.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n[Open an issue.](https://github.com/typelevel/fs2/issues/new/choose)\nContact the [Typelevel Security Team](https://github.com/typelevel/.github/blob/main/SECURITY.md).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "co.fs2:fs2-io_2.12"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0-M1"
}, {
"fixed" : "3.12.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "co.fs2:fs2-io_2.12"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.13.0-M1"
}, {
"fixed" : "3.13.0-M7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "co.fs2:fs2-io_2.13"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0-M1"
}, {
"fixed" : "3.12.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "co.fs2:fs2-io_2.13"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.13.0-M1"
}, {
"fixed" : "3.13.0-M7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "co.fs2:fs2-io_3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0-M1"
}, {
"fixed" : "3.12.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "co.fs2:fs2-io_3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.13.0-M1"
}, {
"fixed" : "3.13.0-M7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "co.fs2:fs2-io_0.26"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 2.5.13"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "co.fs2:fs2-io_0.27"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 2.5.13"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "co.fs2:fs2-io_2.11"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 2.5.13"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "co.fs2:fs2-io_2.12.0-M4"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 2.5.13"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "co.fs2:fs2-io_2.12.0-RC1"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 2.5.13"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "co.fs2:fs2-io_2.12.0-M5"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 2.5.13"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "co.fs2:fs2-io_2.12.0-RC2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 2.5.13"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "co.fs2:fs2-io_2.13.0-M5"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 2.5.13"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "co.fs2:fs2-io_2.12"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.5.13"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "co.fs2:fs2-io_2.13"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.5.13"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "co.fs2:fs2-io_3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.5.13"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/typelevel/fs2/security/advisories/GHSA-rrw2-px9j-qffj"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-58369"
}, {
"type" : "WEB",
"url" : "https://github.com/typelevel/fs2/issues/3590"
}, {
"type" : "WEB",
"url" : "https://github.com/typelevel/fs2/pull/3624"
}, {
"type" : "WEB",
"url" : "https://github.com/typelevel/fs2/commit/46e2dc3abf994dcf3d0b804b2ddb3c10c04d4976"
}, {
"type" : "WEB",
"url" : "https://github.com/typelevel/fs2/commit/5c6c4c6c1ef330f7e6b53661ecc63d5f5ba8885c"
}, {
"type" : "WEB",
"url" : "https://github.com/typelevel/fs2/commit/edf0c4f2e660360d1c1a8c5377ce32294de89238"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/typelevel/fs2"
}, {
"type" : "WEB",
"url" : "https://github.com/typelevel/fs2/releases/tag/v3.12.2"
}, {
"type" : "WEB",
"url" : "https://github.com/typelevel/fs2/releases/tag/v3.13.0-M7"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-05T20:58:23Z",
"nvd_published_at" : "2025-09-05T22:15:34Z"
}
}