CVE-2026-77421
6.5JLine · jline3
JLine is vulnerable to a Regular Expression Denial of Service (ReDoS) flaw in its built-in nano editor, allowing authenticated users to exhaust CPU resources and block application threads.
Executive summary
A vulnerability in the JLine Java library allows authenticated users to trigger excessive CPU consumption, leading to a potential denial of service in applications utilizing the built-in nano editor.
Vulnerability
The vulnerability exists in the doSearch method of the JLine nano editor, where user-supplied regex patterns are processed by the Java backtracking engine without constraints. This allows an authenticated user to submit a crafted nested-quantifier expression that forces the application into an indefinite CPU-intensive state, effectively consuming the worker thread assigned to that session.
Business impact
The exploitation of this flaw can result in significant service degradation or total application unavailability, as each successful attack consumes a dedicated worker thread. While the CVSS score of 6.5 reflects a medium severity, the impact on multi-user environments can be severe if thread exhaustion leads to a complete service outage. This poses a risk to business continuity and operational stability for any platform relying on JLine for console-based input management.
Remediation
Immediate Action: Update the JLine library to version 3.30.15 or 4.3.1 to incorporate the necessary regex timeout and backtracking bounds.
Proactive Monitoring: Monitor application logs and thread usage metrics for unusual spikes in CPU utilization or patterns of hung threads associated with the editor functionality.
Compensating Controls: If immediate patching is not feasible, restrict access to the affected nano editor interface to trusted users only and implement application-level thread monitoring to detect and terminate unresponsive sessions.
Exploitation status
Public Exploit Available: Unknown (no confirmed public exploit or weaponized code found in available data).
Analyst recommendation
Given that this vulnerability allows for resource exhaustion that could disrupt critical services, organizations should prioritize updating to the fixed versions of JLine. The ease of triggering this condition through standard user-controlled input makes it a notable stability risk for any Java-based application embedding the JLine library. Applying the update is the only definitive way to resolve the underlying regex processing flaw.
More JLine CVEs
History
- Analyst report written
Sources
- https://github.com/jline/jline3/security/advisories/GHSA-ph9c-7hw9-vhhw
- https://github.com/jline/jline3/pull/2012
- https://github.com/jline/jline3/pull/2018
- https://github.com/jline/jline3/commit/1d5fc3099e77938b971e197211cad2d4fbb17541
- https://github.com/jline/jline3/commit/341ee69ccc57b7733c1b40d6993219b64b3206ae
- https://github.com/jline/jline3/releases/tag/4.3.1
- https://github.com/jline/jline3/releases/tag/jline-3.30.15