Vulnerability
CVE-2026-77420
JLine is a Java library for handling console input. From 3.0.0 until 3.30.15 and 4.3.1, DefaultHistory.matchPatterns(String patterns, String line) in reader/src/main/java/org/jline/reader/impl/history/DefaultHistory.java converts the HISTORY_IGNORE configuration value into a Java regular expression while escaping only part of its syntax, allowing other regex metacharacters to reach the backtracking engine. An attacker who can control application or user configuration can supply a nested-quantifier expression that is reevaluated whenever a command is added to history, consuming excessive CPU and indefinitely blocking the reader thread. This issue is fixed in versions 3.30.15 and 4.3.1.
240 advisories report this vulnerability, across 7 ecosystems.
Advisories in Wolfi
- CGA-25v2-5rpp-5684
- CGA-29hg-fjgq-vgg4
- CGA-2v7x-qmw4-g5g6
- CGA-3gx3-x39m-3hrv
- CGA-4f2x-mwww-pg97
- CGA-4ggw-vwm3-xfjm
- CGA-4hr9-ghf8-7xrh
- CGA-5hjf-74q2-xh82
- CGA-5p6p-32h2-4pjj
- CGA-6q52-mwwj-wg69
- CGA-6xgp-fpfc-qjxr
- CGA-8fp2-9wx7-vhr2
- CGA-8g5q-98hg-5p4h
- CGA-8gq6-j8c6-69mc
- CGA-8m6h-9rh7-rg7c
- CGA-9hr2-j5f7-j37g
- CGA-c44c-965f-8wv5
- CGA-c8j6-cq53-5w55
- CGA-c9g8-jcjx-8p6p
- CGA-f2rm-5g7x-34jv
- CGA-frvh-788m-336g
- CGA-h278-f95j-43w6
- CGA-h565-jrmf-gf92
- CGA-h62f-8956-cqjx
- CGA-h8fc-8g48-79qg
- CGA-jchc-x2xg-m95c
- CGA-jcvx-5fgh-6m7v
- CGA-jwc8-6wv2-5m7h
- CGA-m9fx-7fcj-43j3
- CGA-mchf-3cw4-r3vj
- CGA-p922-r6jq-j6x7
- CGA-pj5q-q2cv-vjxc
- CGA-prfp-6c4q-qw9j
- CGA-pvj4-qhqg-899j
- CGA-q5xj-w2mr-rp9w
- CGA-qgfr-54jq-c344
- CGA-qpjw-8hrg-5m2m
- CGA-qq52-g96j-65xp
- CGA-rf7j-xj5j-v883
- CGA-x9rj-8mcv-4vg6
- CGA-xm56-gg7w-qvh8
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-5q95-hrpc-m3w3