Read the docs
TI-2026-54008 Aliases CVE-2026-77422GHSA-r2xf-8xr9-62gw

JLine: ReDoS in Built-in grep Command Amplified by Automatic `.*` Wrapping

Priority HIGH 72CWE-1333Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Partial Red Hat: 3 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-1333.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00595 48th percentileScored 2026-11-07
Fix Partial jline3 (jline): 3.30.15, 4.3.1org.jline:jline-builtins (Maven): 4.3.1, 3.30.15Red Hat: 3 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
jlinejline33.0.0 to before 3.30.15; 4.0.0 to before 4.3.13.30.15, 4.3.1Patch availableCNA
—org.jline:jline-builtins (Maven)4.0.0 to before 4.3.14.3.1Patch availableGHSA-r2xf-8xr9-62gw
—org.jline:jline-builtins (Maven)3.0.0 to before 3.30.153.30.15Patch availableGHSA-r2xf-8xr9-62gw
  • jline3 Vendorjline Affected 3.0.0 to before 3.30.15; 4.0.0 to before 4.3.1 Fixed in 3.30.15, 4.3.1 Patch available CNA
  • org.jline:jline-builtins (Maven) Vendor— Affected 4.0.0 to before 4.3.1 Fixed in 4.3.1 Patch available GHSA-r2xf-8xr9-62gw
  • org.jline:jline-builtins (Maven) Vendor— Affected 3.0.0 to before 3.30.15 Fixed in 3.30.15 Patch available GHSA-r2xf-8xr9-62gw

Remediation

  • Fix · CNA jline3 (jline) Fixed in 3.30.15, 4.3.1
  • Fix · GHSA-r2xf-8xr9-62gw org.jline:jline-builtins (Maven) Fixed in 4.3.1 Advisory →
  • Fix · GHSA-r2xf-8xr9-62gw org.jline:jline-builtins (Maven) Fixed in 3.30.15 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Fuse 7AffectedNo fix planned: Out of support scope
Red Hat OpenShift AI (RHOAI)AffectedNo fix yet
Red Hat OpenStack Platform 13 (Queens)AffectedNo fix planned: Will not fix
Not affected: 1 product
  • Red Hat OpenShift AI (RHOAI)

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-77422
  2. 2026-10-03 Alias added: GHSA-r2xf-8xr9-62gw

References

  • TI-2026-54009 JLine: ReDoS in Built-in Less Viewer Search CVSS 3.1HIGH 7.5
  • TI-2026-40914 JLine: Unauthenticated Remote DoS via Unbounded Telnet NAWS Terminal Geometry CVSS 3.1HIGH 7.5
  • TI-2026-40913 JLine: Unauthenticated Remote Memory Exhaustion via Unbounded Telnet NEW-ENVIRON Variables CVSS 3.1HIGH 7.5
  • TI-2026-54006 JLine: ReDoS via `HISTORY_IGNORE` Configuration Variable CVSS 3.1MEDIUM 5.5
  • TI-2023-27628 An issue in the component GroovyEngine.execute of jline-groovy v3.24.1 allows attackers… CVSS 3.1MEDIUM 5.5
  • TI-2026-54007 JLine: ReDoS in Nano Editor Regex Search Mode CVSS 3.1MEDIUM 6.5

Sources