CVE-2026-24802: Jsonrpc4j Jsonrpc4j Has Infinite Loop Vulnerability

MODERATE
Advisory Identifier: GHSA-hcx3-3q5c-r5v6
CWE-835
Published
Advisory Summary

CVE-2026-24802 is a MODERATE jsonrpc4j has infinite loop vulnerability (CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')) affecting Jsonrpc4j libraries in the Maven ecosystem. The issue involves jsonrpc4j has infinite loop in rpc stream writer. Remediation is available by upgrading affected packages to version 1.7.0.

CVE-2026-24802 at a Glance

CVE Identifier CVE-2026-24802
GHSA Identifier GHSA-hcx3-3q5c-r5v6
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
Affected Product Jsonrpc4j
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2026-24802

To remediate this vulnerability, upgrade all affected Jsonrpc4j 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.briandilley.jsonrpc4j:jsonrpc4j fixed: 1.7.0
<dependency>
    <groupId>com.github.briandilley.jsonrpc4j</groupId>
    <artifactId>jsonrpc4j</artifactId>
    <version>1.7.0</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.briandilley.jsonrpc4j

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=com.github.briandilley.jsonrpc4j

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

Note: The mvn dependency:tree -Dincludes=com.github.briandilley.jsonrpc4j 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 Jsonrpc4j, 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

Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in briandilley jsonrpc4j (src/main/java/com/googlecode/jsonrpc4j modules). This vulnerability is associated with program files NoCloseOutputStream.Java. This issue affects jsonrpc4j: through 1.6.0.

CVE-2026-24802 Affected Jsonrpc4j Versions

1 component(s)
Fixed Versions:
1.7.0
Product / Package Ecosystem Affected Versions Fixed Version
com.github.briandilley.jsonrpc4j:jsonrpc4j
Maven
< 1.7.0
1.7.0

References

Frequently Asked Questions

What is CVE-2026-24802?
CVE-2026-24802 is a security vulnerability in Jsonrpc4j involving jsonrpc4j has Infinite Loop in RPC Stream Writer under CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop').
Which Jsonrpc4j versions are affected?
Affected versions include releases prior to 1.7.0 across affected packages: com.github.briandilley.jsonrpc4j:jsonrpc4j.
What version fixes CVE-2026-24802?
Upgrading to 1.7.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jsonrpc4j affected?
Yes, com.github.briandilley.jsonrpc4j:jsonrpc4j is affected in releases prior to 1.7.0. Upgrade your dependency to 1.7.0 or later.
What CWE is associated with CVE-2026-24802?
CVE-2026-24802 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-2026-24802?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.github.briandilley.jsonrpc4j'. 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-hcx3-3q5c-r5v6",
  "modified" : "2026-01-28T15:49:27Z",
  "published" : "2026-01-27T09:30:30Z",
  "aliases" : [ "CVE-2026-24802" ],
  "summary" : "jsonrpc4j has Infinite Loop in RPC Stream Writer ",
  "details" : "Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in briandilley jsonrpc4j (src/main/java/com/googlecode/jsonrpc4j modules). This vulnerability is associated with program files NoCloseOutputStream.Java.\n\nThis issue affects jsonrpc4j: through 1.6.0.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:L/AU:Y/R:A/V:D/RE:M/U:Amber"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.github.briandilley.jsonrpc4j:jsonrpc4j"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.7.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-24802"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/briandilley/jsonrpc4j/pull/333"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/briandilley/jsonrpc4j/commit/087f5268eaf901f90d1e84062def77faa52ad8b2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/briandilley/jsonrpc4j"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-835" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-28T15:49:27Z",
    "nvd_published_at" : "2026-01-27T09:15:50Z"
  }
}