Vulnerabilities in pkg:maven/org.jboss.xnio/xnio-api

PACKAGE
Advisory Identifier: GHSA-7f88-5hhx-67m2
Advisory Summary

CVE-2023-5685 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Xnio api libraries in the Maven ecosystem. The issue involves xnio denial of service vulnerability. Remediation is available by upgrading affected packages to version 3.8.14.Final.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.jboss.xnio/xnio-api

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.jboss.xnio/xnio-api. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-7f88-5hhx-67m2 CVE-2023-5685 HIGH XNIO denial of service vulnerability

CVE-2023-5685 at a Glance

CVE Identifier CVE-2023-5685
GHSA Identifier GHSA-7f88-5hhx-67m2
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Xnio api
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

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 High (A:H)

How to Fix CVE-2023-5685

To remediate this vulnerability, upgrade all affected Xnio api dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.jboss.xnio:xnio-api fixed: 3.8.14.Final
<dependency>
    <groupId>org.jboss.xnio</groupId>
    <artifactId>xnio-api</artifactId>
    <version>3.8.14.Final</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=org.jboss.xnio

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2023-5685, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.jboss.xnio

Analyze the terminal output to locate any version of Xnio api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.8.14.Final), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.jboss.xnio 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 Xnio api, 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

A flaw was found in XNIO. The XNIO NotifierState that can cause a Stack Overflow Exception when the chain of notifier states becomes problematically large can lead to uncontrolled resource management and a possible denial of service (DoS). Version 3.8.14.Final is expected to contain a fix.

CVE-2023-5685 Affected Xnio api Versions

1 component(s)
Fixed Versions:
3.8.14.Final
Product / Package Ecosystem Affected Versions Fixed Version
org.jboss.xnio:xnio-api
Maven
< 3.8.14.Final
3.8.14.Final

References

Frequently Asked Questions

What is CVE-2023-5685?
CVE-2023-5685 is a security vulnerability in Xnio api involving XNIO denial of service vulnerability under CWE-400: Uncontrolled Resource Consumption.
Which Xnio api versions are affected?
Affected versions include releases prior to 3.8.14.Final across affected packages: org.jboss.xnio:xnio-api.
What version fixes CVE-2023-5685?
Upgrading to 3.8.14.Final (or the latest patched release for your respective branch) resolves the vulnerability.
Is xnio-api affected?
Yes, org.jboss.xnio:xnio-api is affected in releases prior to 3.8.14.Final. Upgrade your dependency to 3.8.14.Final or later.
What is the CVSS score of CVE-2023-5685?
CVE-2023-5685 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2023-5685?
CVE-2023-5685 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-2023-5685?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.jboss.xnio'. 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-7f88-5hhx-67m2",
  "modified" : "2024-11-26T03:36:37Z",
  "published" : "2024-03-22T21:30:56Z",
  "aliases" : [ "CVE-2023-5685" ],
  "summary" : "XNIO denial of service vulnerability",
  "details" : "A flaw was found in XNIO. The XNIO NotifierState that can cause a Stack Overflow Exception when the chain of notifier states becomes problematically large can lead to uncontrolled resource management and a possible denial of service (DoS). Version 3.8.14.Final is expected to contain a fix.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jboss.xnio:xnio-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.8.14.Final"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.8.13.Final"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-5685"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xnio/xnio/commit/ffabdcdda508ef87aeadad5ca3f854e274d60ec1"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7637"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7638"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7639"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:7641"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:10207"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:10208"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:2707"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2023-5685"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2241822"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/xnio/xnio"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xnio/xnio/blob/3.8.13.Final/api/src/main/java/org/xnio/AbstractIoFuture.java#L249"
  }, {
    "type" : "WEB",
    "url" : "https://issues.redhat.com/browse/XNIO-423"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-24T20:23:58Z",
    "nvd_published_at" : "2024-03-22T19:15:07Z"
  }
}