CVE-2026-77422JLine: ReDoS in Built-in grep Command Amplified by Automatic `.*` Wrapping
- 7.5HighCVSS base score
- 0.60%Exploitation in 30 daysEPSS · top 51% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
Description
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. A reference of the record is tagged as an exploit. CISA's SSVC rates its exploitation: a proof of concept is public.
Show the exploits1
References tagged exploit1 reference
- https://github.com/jline/jline3/security/advisories/GHSA-r2xf-8xr9-62gw (opens in a new tab)x_refsource_CONFIRMexploit
Timeline
ID reserved
By GitHub_M
- 34 days later
· 34 days later
Published
- 1 day later
· 1 day later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Awaiting Analysis | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.60% · top 51% of all CVEs (16 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.jline:jline-builtinsGHSA-r2xf-8xr9-62gw (opens in a new tab)
References
References7
- https://github.com/jline/jline3/security/advisories/GHSA-r2xf-8xr9-62gw (opens in a new tab)x_refsource_CONFIRMexploit
- https://github.com/jline/jline3/pull/2012 (opens in a new tab)x_refsource_MISC
- https://github.com/jline/jline3/pull/2018 (opens in a new tab)x_refsource_MISC
- https://github.com/jline/jline3/commit/1d5fc3099e77938b971e197211cad2d4fbb17541 (opens in a new tab)x_refsource_MISC
- https://github.com/jline/jline3/commit/341ee69ccc57b7733c1b40d6993219b64b3206ae (opens in a new tab)x_refsource_MISC
- https://github.com/jline/jline3/releases/tag/4.3.1 (opens in a new tab)x_refsource_MISC
- https://github.com/jline/jline3/releases/tag/jline-3.30.15 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-85527 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-r2xf-8xr9-62gw (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-77422)Record last updated .