# CVE-2026-77422: JLine: ReDoS in Built-in grep Command Amplified by Automatic `.*` Wrapping

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-23T18:09:32.308Z
- Modified: 2026-09-30T16:44:39.840Z
- Also known as: GHSA-r2xf-8xr9-62gw
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- jline jline3: >= 3.0.0, < 3.30.15; >= 4.0.0, < 4.3.1
- org.jline:jline-builtins (Maven): from 4.0.0 before 4.3.1; from 3.0.0 before 3.30.15

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/jline/jline3/security/advisories/GHSA-r2xf-8xr9-62gw> (exploit, web)
- <https://github.com/jline/jline3/pull/2012> (web)
- <https://github.com/jline/jline3/pull/2018> (web)
- <https://github.com/jline/jline3/commit/1d5fc3099e77938b971e197211cad2d4fbb17541> (web)
- <https://github.com/jline/jline3/commit/341ee69ccc57b7733c1b40d6993219b64b3206ae> (web)
- <https://github.com/jline/jline3/releases/tag/4.3.1> (web)
- <https://github.com/jline/jline3/releases/tag/jline-3.30.15> (web)
- <https://github.com/jline/jline3> (package)

## Sources

- CVE List: [CVE-2026-77422](https://www.cve.org/CVERecord?id=CVE-2026-77422), CVE Terms of Use, modified 2026-09-24
- GitHub Advisory Database: [GHSA-r2xf-8xr9-62gw](https://github.com/advisories/GHSA-r2xf-8xr9-62gw), CC-BY-4.0, modified 2026-09-23
- NVD: [CVE-2026-77422](https://nvd.nist.gov/vuln/detail/CVE-2026-77422), Public domain, modified 2026-09-30

---

Page: https://cve.day/CVE-2026-77422 · Whole record: https://cve.day/CVE-2026-77422.json · Rebuilt by cve.day 2026-11-25T22:59:40.664Z
