{"id":"CVE-2026-77420","published":"2026-09-23T18:11:25Z","modified":"2026-09-29T02:05:26Z","title":"JLine: ReDoS via `HISTORY_IGNORE` Configuration Variable","vendor":"jline","product":"jline3","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00162,"percentile":0.03028,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/jline/jline3/security/advisories/GHSA-5q95-hrpc-m3w3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jline/jline3/pull/2012","tags":["x_refsource_MISC"]},{"url":"https://github.com/jline/jline3/pull/2018","tags":["x_refsource_MISC"]},{"url":"https://github.com/jline/jline3/commit/1d5fc3099e77938b971e197211cad2d4fbb17541","tags":["x_refsource_MISC"]},{"url":"https://github.com/jline/jline3/commit/341ee69ccc57b7733c1b40d6993219b64b3206ae","tags":["x_refsource_MISC"]},{"url":"https://github.com/jline/jline3/releases/tag/4.3.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/jline/jline3/releases/tag/jline-3.30.15","tags":["x_refsource_MISC"]}],"priority":{"score":4.5,"factors":[{"name":"EPSS percentile","points":0.61},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"jline","affectedVersions":[{"vendor":"jline","product":"jline3","versions":[">= 3.0.0, < 3.30.15",">= 4.0.0, < 4.3.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-29T02:05:00.790615Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.jline:jline-reader","vulnerableRanges":[">=4.0.0, <4.3.1",">=3.0.0, <3.30.15"],"patched":["4.3.1","3.30.15"],"from":["GHSA-5q95-hrpc-m3w3"],"provenance":"source"}],"summary":{"text":"JLine's DefaultHistory.matchPatterns method in the jline3 Java console-input library, 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, so other regex metacharacters reach the backtracking engine. An attacker with local access who can control application or user configuration can supply a nested-quantifier expression that is re-evaluated each time a command is added to history, consuming excessive CPU and indefinitely blocking the reader thread.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:41Z"},"euvd":{"id":"EUVD-2026-85528","exploited":false,"provenance":"source"}}