jline3 leads to ReDoS in Built-in Less Viewer Search
CVE-2026-77423
Summary 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. Details Less.getPattern() in builtins/src/main/java/org/jline/builtins/Less.java compiles the user-controlled search string directly with Pattern.compile(): java private Pattern getPattern(boolean doDisplayPattern) { Pattern compiled = null; String pattern = doDisplayPattern ? displayPattern : pattern; if (pattern != null) { boolean insensitive = ignoreCaseAlways || ignoreCaseCond && pattern.toLowerCase().equals(pattern); compiled = Pattern.compile( "(" + pattern + ")", insensitive ? Pattern.CASEINSENSITIVE | Pattern.UNICODECASE : 0); } return compiled; } 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…
Proof-of-concept code is published
Public PoC
- Public PoCgooglesky/CVE-2026-77423
Signals come from Exploit-DB, Metasploit, Nuclei and published proof-of-concept repositories. Their absence means nothing was found, not that nothing exists.
Assessment
- CVSS
- 7.5 (v3.1)
- Severity
- High
- EPSS
- 0.00461% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Public PoC
- Published
- 23 November 2026
- Last updated
- 23 November 2026
- Affected
- org.jline:jline-builtins
- Weakness
- CWE-1333
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
At the source
References
- https://github.com/jline/jline3/security/advisories/GHSA-2v9w-34q6-wpqx
- https://nvd.nist.gov/vuln/detail/CVE-2026-77423
- https://github.com/jline/jline3/pull/2012
- https://github.com/jline/jline3/pull/2018
- https://github.com/jline/jline3/commit/1d5fc3099e77938b971e197211cad2d4fbb17541
- https://github.com/jline/jline3/commit/341ee69ccc57b7733c1b40d6993219b64b3206ae
- https://github.com/jline/jline3/releases/tag/4.3.1
- https://github.com/jline/jline3/releases/tag/jline-3.30.15
- https://github.com/advisories/GHSA-2v9w-34q6-wpqx
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-77423