Maven
CVE-2026-77423
jline3 leads to ReDoS in Built-in Less Viewer Search
- Severity
- High 7.5
- Published
- 23 Nov 2026
- Last changed
- 23 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 3.30.15, 4.3.1
- Exploit chance
- 0.5% in the next 30 daysHigher than 40% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-2v9w-34q6-wpqx
- Sources
- OSV.dev and GitHub
Description
The JLine3 built-in less pager compiles user-supplied search patterns directly as Java regular expressions with no sanitization, timeout, or backtracking bound. A malicious pattern such as (a+)+b can trigger catastrophic backtracking and hang the session thread at 100% CPU. In deployments that expose less over Telnet or SSH, this becomes a denial-of-service issue for the affected session and can be used to exhaust a bounded session pool.
Less.getPattern() in builtins/src/main/java/org/jline/builtins/Less.java compiles the user-controlled search string directly with Pattern.compile():
The resulting pattern is then applied repeatedly against file content with compiled.matcher(line).find() in the less search path. Because Java's java.util.regex engine is backtracking-based and has no built-in timeout, patterns with nested quantifiers can take exponential time on non-matching input.
Affected source locations:
Affected software
| Software | Affected versions |
|---|---|
org.jline:jline-builtinsMaven · osv:Maven:org.jline:jline-builtins |
|
About org.jline:jline-builtins
This is the only vulnerability in org.jline:jline-builtins in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-77423
- GitHub Advisory Database https://github.com/advisories/GHSA-2v9w-34q6-wpqx