CVE-2026-77423: jline3 leads to ReDoS in Built-in Less Viewer Search
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.
References
- github.com/advisories/GHSA-2v9w-34q6-wpqx
- github.com/jline/jline3/commit/1d5fc3099e77938b971e197211cad2d4fbb17541
- github.com/jline/jline3/commit/341ee69ccc57b7733c1b40d6993219b64b3206ae
- github.com/jline/jline3/pull/2012
- github.com/jline/jline3/pull/2018
- github.com/jline/jline3/releases/tag/4.3.1
- github.com/jline/jline3/releases/tag/jline-3.30.15
- github.com/jline/jline3/security/advisories/GHSA-2v9w-34q6-wpqx
- nvd.nist.gov/vuln/detail/CVE-2026-77423
Code Behaviors & Features
Detect and mitigate CVE-2026-77423 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →