All vulnerabilities

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
Weakness
Regular expression denial of service (ReDoS) (CWE-1333)
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:

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
org.jline:jline-builtinsMaven · osv:Maven:org.jline:jline-builtins
  • Every version before 3.30.15
  • From 4.0.0 before 4.3.1

About org.jline:jline-builtins

This is the only vulnerability in org.jline:jline-builtins in our list.

References