CVE-2023-50570: Ipaddress IPAddress Infinite Loop Vulnerability (Disputed) Vulnerability

MODERATE
Advisory Identifier: GHSA-qphf-w3cq-jpmx
CVSS 5.5
CWE-835
Published
Advisory Summary

CVE-2023-50570 is a MODERATE (CVSS 5.5) ipaddress infinite loop vulnerability (disputed) vulnerability (CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')) affecting Ipaddress libraries in the Maven ecosystem. The issue involves ipaddress infinite loop vulnerability (disputed). Remediation is available in the latest vendor maintenance releases.

CVE-2023-50570 at a Glance

CVE Identifier CVE-2023-50570
GHSA Identifier GHSA-qphf-w3cq-jpmx
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
Affected Product Ipaddress
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2023-50570

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

com.github.seancfoley:ipaddress fixed: Latest secure release
<dependency>
    <groupId>com.github.seancfoley</groupId>
    <artifactId>ipaddress</artifactId>
    <version>Latest secure release</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=com.github.seancfoley

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=com.github.seancfoley

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

Note: The mvn dependency:tree -Dincludes=com.github.seancfoley 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-835: Loop with Unreachable Exit Condition ('Infinite Loop'), where the product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop. In Ipaddress, 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

An issue in the component IPAddressBitsDivision of IPAddress v5.1.0 leads to an infinite loop.

CVE-2023-50570 Affected Ipaddress Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
com.github.seancfoley:ipaddress
Maven
≤ 5.4.0

References

Frequently Asked Questions

What is CVE-2023-50570?
CVE-2023-50570 is a security vulnerability in Ipaddress involving IPAddress Infinite Loop vulnerability (Disputed) under CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop').
Which Ipaddress versions are affected?
Affected versions include releases prior to current release patches across affected packages: com.github.seancfoley:ipaddress.
What version fixes CVE-2023-50570?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is ipaddress affected?
Yes, com.github.seancfoley:ipaddress is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2023-50570?
CVE-2023-50570 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2023-50570?
CVE-2023-50570 is classified under CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop') (The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.).
How can I check Maven dependencies for CVE-2023-50570?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.github.seancfoley'. 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-qphf-w3cq-jpmx",
  "modified" : "2024-01-12T17:47:09Z",
  "published" : "2023-12-29T15:30:37Z",
  "withdrawn" : "2024-01-12T17:47:08Z",
  "aliases" : [ "CVE-2023-50570" ],
  "summary" : "IPAddress Infinite Loop vulnerability (Disputed)",
  "details" : "An issue in the component IPAddressBitsDivision of IPAddress v5.1.0 leads to an infinite loop.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.github.seancfoley:ipaddress"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "5.4.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-50570"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/seancfoley/IPAddress/issues/118"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/seancfoley/IPAddress/issues/118#issuecomment-1876043773"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/github/advisory-database/pull/3279"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/seancfoley/IPAddress"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-835" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-01-03T21:27:43Z",
    "nvd_published_at" : "2023-12-29T15:15:09Z"
  }
}