CVE-2026-24802: Jsonrpc4j Jsonrpc4j Has Infinite Loop Vulnerability
MODERATECVE-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
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.
<dependency>
<groupId>com.github.briandilley.jsonrpc4j</groupId>
<artifactId>jsonrpc4j</artifactId>
<version>1.7.0</version>
</dependency>
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
CVE-2026-24802 Affected Jsonrpc4j Versions
1 component(s)| 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?
Which Jsonrpc4j versions are affected?
What version fixes CVE-2026-24802?
Is jsonrpc4j affected?
What CWE is associated with CVE-2026-24802?
How can I check Maven dependencies for CVE-2026-24802?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}