Vulnerability
CVE-2026-77421
JLine is a Java library for handling console input. From 3.0.0 until 3.30.15 and 4.3.1, the JLine built-in nano editor's regex search mode passes a user-controlled search term from doSearch(String text) in builtins/src/main/java/org/jline/builtins/Nano.java to Java's backtracking regular expression engine without a timeout or backtracking bound. A nested-quantifier expression evaluated against non-matching buffer content can consume excessive CPU and indefinitely block the editor session thread, and remote multi-user deployments can lose a worker thread for each affected session. This issue is fixed in versions 3.30.15 and 4.3.1.
170 advisories report this vulnerability, across 7 ecosystems.
Advisories in Wolfi
- CGA-2p2h-gm5g-7vp7
- CGA-38gw-8qph-wf8w
- CGA-42jq-63h8-rg5c
- CGA-54gh-pm6g-wwfq
- CGA-59qv-c4mf-6vcm
- CGA-5fmv-c9m4-2mrw
- CGA-5x56-gg9g-m829
- CGA-65hr-4q59-q2qv
- CGA-65mr-hvrq-mwjf
- CGA-6g55-6f9q-m9mw
- CGA-6m8r-4pq6-35j6
- CGA-6vhq-p4gv-m9x6
- CGA-7vj5-r3h7-3r43
- CGA-82wc-hqqj-68w9
- CGA-8m62-w7f2-jcq4
- CGA-cqp5-v4q6-m5pr
- CGA-g8w8-xxcc-7pv2
- CGA-h8mv-pqw7-f767
- CGA-h8r5-9rvh-27gp
- CGA-hvvj-rx5h-j5g8
- CGA-hw7c-9fx2-2pm4
- CGA-hwj5-hrcp-pc33
- CGA-m8wm-chj5-hqx4
- CGA-mm2f-64rg-wvcr
- CGA-p86p-r73h-7cpj
- CGA-qcw2-7q23-f5c3
- CGA-qv27-xpv9-gj43
- CGA-wgvm-q4mw-hx8g
- CGA-wxx7-p29q-hv55
References
- https://github.com/jline/jline3/commit/1d5fc3099e77938b971e197211cad2d4fbb17541
- https://github.com/jline/jline3/commit/341ee69ccc57b7733c1b40d6993219b64b3206ae
- https://github.com/jline/jline3/pull/2012
- https://github.com/jline/jline3/pull/2018
- https://github.com/jline/jline3/releases/tag/4.3.1
- https://github.com/jline/jline3/releases/tag/jline-3.30.15
- https://github.com/jline/jline3/security/advisories/GHSA-ph9c-7hw9-vhhw