Vulnerability
CVE-2026-77422
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 grep command in builtins/src/main/java/org/jline/builtins/PosixCommands.java accepts a user-controlled regular expression in grep(...) and, unless line-regexp mode is used, automatically adds a dot-star prefix and suffix before compiling it with Java's backtracking regular expression engine. The wrapping expands the backtracking search space, so a short nested-quantifier expression evaluated against non-matching input can consume excessive CPU and indefinitely block a command worker, including in remotely exposed shell sessions. This issue is fixed in versions 3.30.15 and 4.3.1.
172 advisories report this vulnerability, across 7 ecosystems.
Advisories
- CGA-229r-hx4x-vg5w
- CGA-234p-pph6-56r2
- CGA-236j-4pqx-6fpg
- CGA-24qg-m9v6-6phv
- CGA-25j7-rg83-mg27
- CGA-266q-gp27-c4mf
- CGA-29vm-c4hm-w3cx
- CGA-2f82-qg29-3vhp
- CGA-2grx-h972-2cw2
- CGA-2h45-r625-h6c4
- CGA-2j2q-cvxg-9537
- CGA-2jjf-764m-qfp4
- CGA-2mww-6vgx-h7xq
- CGA-2p9x-2m2g-44px
- CGA-2r3p-jvwc-2vhx
- CGA-2w6w-mgxw-w99m
- CGA-2xp8-44pf-qqwg
- CGA-326x-rrph-jcjx
- CGA-32rj-7jg5-jx29
- CGA-33wx-cwq8-9mcg
- CGA-342p-9mqw-4g9q
- CGA-356h-56j2-7r4c
- CGA-365v-c675-x5pm
- CGA-3h3g-w69h-hc4w
- CGA-3h9x-3cjr-5vg8
- CGA-3pxc-p2v8-m9jr
- CGA-3q84-9624-45rp
- CGA-3r8h-g5hj-29hg
- CGA-3x7c-f479-grq9
- CGA-42q5-f2f3-3fg9
- CGA-43cr-2566-5v53
- CGA-43qx-5w9v-5mqh
- CGA-4648-xv4q-qmc8
- CGA-47jh-377w-jqg8
- CGA-49hh-39wj-6vr8
- CGA-4frc-hjc8-fx8v
- CGA-4h8w-5rjj-wj7c
- CGA-4j95-6mvh-cg8m
- CGA-4jrj-mvqc-478q
- CGA-4mpj-vhrx-vgp3
- CGA-4qc9-g7ww-2f6m
- CGA-4w93-fr5h-h7v2
- CGA-4wwq-vqpj-qf68
- CGA-53xv-mjv3-r6r2
- CGA-54rh-g9jf-frx3
- CGA-58jv-wr2r-f96j
- CGA-5rgf-fx49-c3p8
- CGA-5v9v-47cm-6cw4
- CGA-5w7p-pvq2-8m3h
- CGA-6954-rh2q-3xwh
- CGA-6fxf-75v3-ghh6
- CGA-6mfr-x4mv-xg8h
- CGA-6q6c-wm4v-qc3j
- CGA-6r3q-62wx-vrp8
- CGA-6xpp-x956-8wqw
- CGA-7388-fr7g-7c5p
- CGA-77ch-3hrp-jc87
- CGA-77j5-2p64-4537
- CGA-7f2w-h8cv-mrm2
- CGA-7r34-j8qr-8j2w
- CGA-7rp4-726j-8mf5
- CGA-7vq6-2pcv-cx8g
- CGA-85xg-f8hj-xmhq
- CGA-8652-frv7-6m66
- CGA-8h4p-76w3-9q63
- CGA-8p57-cx2g-2jg5
- CGA-8pc8-r929-r66m
- CGA-8pq2-xwgg-3rmr
- CGA-934j-8p9h-348w
- CGA-954m-rv9g-c3v7
- CGA-9gwm-228h-3r45
- CGA-9jqc-xp73-cfc8
- CGA-9mmv-mv44-6hxq
- CGA-9p82-x54q-6g7w
- CGA-9vcg-vmpc-5844
- CGA-9w2g-h45g-xjx2
- CGA-c3v2-fwg6-663f
- CGA-c3wx-27px-xc3w
- CGA-c74v-24qh-gvm3
- CGA-cjm8-3mgm-jr47
- CGA-cm79-f5m4-9w2j
- CGA-cwrw-4c5f-8wp7
- CGA-f4m7-h6x3-2q53
- CGA-f5x2-gcp9-cfcr
- CGA-ff8r-2mq8-7994
- CGA-ffj5-hf9j-2cq9
- CGA-fgqx-8wf8-cvfg
- CGA-fjmj-r4g8-w4jj
- CGA-fxhq-3w5h-6656
- CGA-g2h3-5qc2-h5v6
- CGA-g2p5-2qrf-jrff
- CGA-g5p3-4qx3-pmp8
- CGA-g6mh-9mf8-mrw6
- CGA-g854-mm44-37jw
- CGA-g9vv-cm52-h4vc
- CGA-ghrj-4xjx-9m2r
- CGA-gjhc-35c8-mwhp
- CGA-gm2j-vhf5-f7v4
- CGA-gw83-g367-jpq7
- CGA-h46h-3q9p-rg5v
Showing the first 100. The API lists them all: /api/v1/vulnerabilities/CVE-2026-77422.
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-r2xf-8xr9-62gw