cve.bz

CVE-2026-77422 jline jline3

7.5 highEPSS 0.6%Fix available

High (7.5) in jline jline3. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in org.jline:jline-builtins 3.30.15, 4.3.1.

On this page
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.

Severity

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
EPSS
0.6% (unchanged from 0.6% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 49th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-09-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • org.jline:jline-builtins (Maven): fixed in 4.3.1, 3.30.15

Ask an AI about this CVE

Show the promptExplain CVE-2026-77422 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-77422?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-77422?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-77422 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
jline3>= 3.0.0, < 3.30.15
jline3>= 4.0.0, < 4.3.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-r2xf-8xr9-62gwMavenorg.jline:jline-builtins>=4.0.0 <4.3.14.3.1
GHSA-r2xf-8xr9-62gwMavenorg.jline:jline-builtins>=3.0.0 <3.30.153.30.15

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14jline3no fix listedDEBIAN-CVE-2026-77422
Ubuntu14.04:LTS, 16.04:LTS, 18.04:LTS and 1 morejline, jline2no fix listedUBUNTU-CVE-2026-77422
Ubuntu22.04:LTS, 24.04:LTS, 26.04:LTS and 1 morejline, jline2, jline3no fix listedUBUNTU-CVE-2026-77422

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an Important denial of service flaw in the JLine library's built-in `grep` command. An attacker could provide a specially crafted regular expression, leading to excessive CPU consumption due to amplified backtracking in the regular expression engine. This could indefinitely block command workers, potentially resulting in a remote denial of service in applications that expose JLine's console input functionality, especially in remotely accessible shell sessions.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Fuse 7jlineOut of support scope
Red Hat OpenShift AI (RHOAI)rhoai/odh-spark-operator-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cpu-torch210-py312-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cpu-torch291-py312-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cuda130-torch210-py312-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cuda130-torch291-py312-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-rocm64-torch291-py312-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th-torch-cpu-py312-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th-torch-cuda-py312-rhel9Not affected
Red Hat OpenStack Platform 13 (Queens)opendaylightWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-77422.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON