Vulnerabilities in pkg:maven/co.fs2/fs2-io_2.12.0-RC2

PACKAGE
Advisory Identifier: GHSA-rrw2-px9j-qffj
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/co.fs2/fs2-io_2.12.0-RC2

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/co.fs2/fs2-io_2.12.0-RC2. 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

CVE Identifier CVE-2025-58369
GHSA Identifier GHSA-rrw2-px9j-qffj
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Fs2 io 2.12
Package Ecosystem Maven
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (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.

co.fs2:fs2-io_2.12 fixed: 3.12.2
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_2.12</artifactId>
    <version>3.12.2</version>
</dependency>
co.fs2:fs2-io_2.12 fixed: 3.13.0-M7
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_2.12</artifactId>
    <version>3.13.0-M7</version>
</dependency>
co.fs2:fs2-io_2.13 fixed: 3.12.2
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_2.13</artifactId>
    <version>3.12.2</version>
</dependency>
co.fs2:fs2-io_2.13 fixed: 3.13.0-M7
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_2.13</artifactId>
    <version>3.13.0-M7</version>
</dependency>
co.fs2:fs2-io_3 fixed: 3.12.2
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_3</artifactId>
    <version>3.12.2</version>
</dependency>
co.fs2:fs2-io_3 fixed: 3.13.0-M7
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_3</artifactId>
    <version>3.13.0-M7</version>
</dependency>
co.fs2:fs2-io_0.26 fixed: Latest secure release
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_0.26</artifactId>
    <version>Latest secure release</version>
</dependency>
co.fs2:fs2-io_0.27 fixed: Latest secure release
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_0.27</artifactId>
    <version>Latest secure release</version>
</dependency>
co.fs2:fs2-io_2.11 fixed: Latest secure release
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_2.11</artifactId>
    <version>Latest secure release</version>
</dependency>
co.fs2:fs2-io_2.12.0-M4 fixed: Latest secure release
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_2.12.0-M4</artifactId>
    <version>Latest secure release</version>
</dependency>
co.fs2:fs2-io_2.12.0-RC1 fixed: Latest secure release
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_2.12.0-RC1</artifactId>
    <version>Latest secure release</version>
</dependency>
co.fs2:fs2-io_2.12.0-M5 fixed: Latest secure release
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_2.12.0-M5</artifactId>
    <version>Latest secure release</version>
</dependency>
co.fs2:fs2-io_2.12.0-RC2 fixed: Latest secure release
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_2.12.0-RC2</artifactId>
    <version>Latest secure release</version>
</dependency>
co.fs2:fs2-io_2.13.0-M5 fixed: Latest secure release
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_2.13.0-M5</artifactId>
    <version>Latest secure release</version>
</dependency>
co.fs2:fs2-io_2.12 fixed: 2.5.13
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_2.12</artifactId>
    <version>2.5.13</version>
</dependency>
co.fs2:fs2-io_2.13 fixed: 2.5.13
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_2.13</artifactId>
    <version>2.5.13</version>
</dependency>
co.fs2:fs2-io_3 fixed: 2.5.13
<dependency>
    <groupId>co.fs2</groupId>
    <artifactId>fs2-io_3</artifactId>
    <version>2.5.13</version>
</dependency>
Verify Direct and Transitive Dependencies

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

### Impact When 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. This 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. Note: this issue impacts ember backed http4s servers with HTTPS as a result of ember using fs2's TLS support. ### Patches Fixed in fs2 3.12.2 and 3.13.0-M7. ### Workarounds No workarounds. ### For more information If you have any questions or comments about this advisory: [Open an issue.](https://github.com/typelevel/fs2/issues/new/choose) Contact the [Typelevel Security Team](https://github.com/typelevel/.github/blob/main/SECURITY.md).

CVE-2025-58369 Affected Fs2 io 2.12 Versions

17 component(s)
Fixed Versions:
3.12.23.13.0-M72.5.13
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?
CVE-2025-58369 is a security vulnerability in Fs2 io 2.12 involving FS2 half-shutdown of socket during TLS handshake may result in spin loop on opposite side under CWE-400: Uncontrolled Resource Consumption.
Which Fs2 io 2.12 versions are affected?
Affected versions include releases prior to 3.12.2, 3.13.0-M7, 2.5.13 across affected packages: co.fs2:fs2-io_2.12, co.fs2:fs2-io_2.13, co.fs2:fs2-io_3, co.fs2:fs2-io_0.26, co.fs2:fs2-io_0.27, co.fs2:fs2-io_2.11, co.fs2:fs2-io_2.12.0-M4, co.fs2:fs2-io_2.12.0-RC1, co.fs2:fs2-io_2.12.0-M5, co.fs2:fs2-io_2.12.0-RC2, co.fs2:fs2-io_2.13.0-M5.
What version fixes CVE-2025-58369?
Upgrading to 3.12.2, 3.13.0-M7, 2.5.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is fs2-io_2.12 affected?
Yes, co.fs2:fs2-io_2.12 is affected in releases prior to 3.12.2, 3.13.0-M7, 2.5.13. Upgrade your dependency to 3.12.2, 3.13.0-M7, 2.5.13 or later.
Is fs2-io_2.13 affected?
Yes, co.fs2:fs2-io_2.13 is affected in releases prior to 3.12.2, 3.13.0-M7, 2.5.13. Upgrade your dependency to 3.12.2, 3.13.0-M7, 2.5.13 or later.
What is the CVSS score of CVE-2025-58369?
CVE-2025-58369 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with CVE-2025-58369?
CVE-2025-58369 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Maven dependencies for CVE-2025-58369?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=co.fs2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}