Skip to main content

JLine3 CVE-2026-56740

| EUVDEUVD-2026-45343 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-07-17 GitHub_M GHSA-47qp-hqvx-6r3f
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Reach exposed JLine3 Telnet port
  2. Delivery
    Complete WILL/DO option negotiation
  3. Exploit
    Send NEW-ENVIRON IS subnegotiation
  4. Install
    Flood unbounded unique variable pairs before IAC SE
  5. C2
    Fill uncapped ConnectionData HashMap
  6. Execute
    Trigger JVM OutOfMemoryError
  7. Impact
    Service denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target application embeds and exposes the JLine3 remote-telnet server module (org.jline:jline-remote-telnet) with a reachable Telnet listener; the attacker must be able to reach that TCP port and reach the pre-login Telnet option-negotiation phase where the NEW-ENVIRON (RFC 1572) option is handled. Given AV:N/AC:L/PR:N/UI:N, no authentication, no user interaction, and no non-default per-connection tuning are needed once the telnet server is running - the attacker simply completes WILL/DO negotiation and sends a NEW-ENVIRON IS subnegotiation with many unique variable pairs before IAC SE. The primary limiting factor is deployment: the remote-telnet module is optional and often not enabled or not internet-facing, so exploitation is bounded by whether an organization actually runs and exposes this server rather than by any authentication or configuration barrier.

Impact

The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, base 7.5) is internally consistent with the description: fully network-reachable, low complexity, no privileges, no user interaction, availability-only impact. The advisory quantifies feasibility precisely - ~250,000 pairs / ~3.25 MB of traffic exhausts a 512 MB heap in seconds - which supports the AC:L/A:H rating and indicates the attack is trivially automatable. However, real-world risk is gated by exposure: the affected component is the remote-telnet server module, which is an opt-in feature rarely deployed and typically not internet-facing, so blast radius is far narrower than the network-vector score implies. No EPSS value and no SSVC decision data were provided, so probability-of-exploitation cannot be quantified here; the CVE is not in CISA KEV and no weaponized exploit is identified, meaning this is a real but likely low-frequency, targeted-DoS issue rather than a mass-exploitation priority. The impact is confined to availability (a crash) with no confidentiality or integrity effect and no code execution.

Exploit ScenarioDerived

An attacker locates an exposed JLine3 Telnet service and connects without credentials, since NEW-ENVIRON negotiation happens before login. After completing WILL/DO option negotiation, they send a single NEW-ENVIRON IS subnegotiation packing hundreds of thousands of unique 1-byte variable pairs before the terminating IAC SE, and the accumulating HashMap exhausts the JVM heap and throws OutOfMemoryError, taking the service down; the vendor advisory documents this proof-of-concept methodology, though no packaged exploit tool is identified.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 17, 2026

Unauthenticated remote denial of service in the JLine3 remote-telnet server module (versions before 3.30.14, 4.0.16, and 4.2.1) lets an attacker crash the JVM by flooding the Telnet NEW-ENVIRON negotiation with unbounded unique environment-variable pairs. Because TelnetIO.readNEVariables() stores every pair in an uncapped HashMap on ConnectionData before login, roughly 3-4 MB of traffic can exhaust a 512 MB heap and force an OutOfMemoryError. No public exploit code is identified, but the vendor advisory (GHSA-47qp-hqvx-6r3f) documents proof-of-concept methodology; the flaw is not listed in CISA KEV and no EPSS score was supplied.

RemediationAI

Upgrade the org.jline:jline-remote-telnet (and JLine3) dependency to a patched release - Vendor-released patch: 3.30.14, 4.0.16, or 4.2.1, choosing the one matching your current branch (3.30.x, 4.0.x, or 4.2.x). The fix (pull requests https://github.com/jline/jline3/pull/2000 and https://github.com/jline/jline3/pull/2001; commits 0389f0e, 4ee3a73, 934f09e) introduces a NE_VAR_COUNT_MAX cap of 100 variables in readNEVariables(), logging a warning and calling skipToSE()/returning once the limit is exceeded, and also adds upper bounds on reported terminal width/height. If you cannot upgrade immediately, restrict network reachability of the Telnet listener: bind it to localhost or an internal management VLAN, place it behind a firewall rule or ACL that limits source IPs, and require a network-layer gateway/VPN before the port - accepting that this breaks legitimate remote Telnet clients from disallowed networks. As a defense-in-depth measure, run the JVM with a bounded, sensibly-sized heap and enable process supervision/auto-restart so an OutOfMemoryError crash is recovered quickly, and consider disabling the remote-telnet feature entirely if it is not required, which fully removes the attack surface at the cost of remote console access. Details are in the advisory at https://github.com/jline/jline3/security/advisories/GHSA-47qp-hqvx-6r3f.

Affected VersionsENISA

jline3 < 3.30.14
jline3 4.0.0, < 4.0.16
jline3 4.1.0, < 4.2.1

Affected Packages

maven org.jline:jline-remote-telnet fix: 3.30.14, 4.0.16, 4.2.1
euvd jline3 fix: 3.30.14, 4.0.16, 4.2.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

JLine3 is a Java library for console/line-editing input; the vulnerable code lives specifically in its optional remote-telnet module (org.jline:jline-remote-telnet), which implements a Telnet server supporting RFC 1572 NEW-ENVIRON option negotiation. During negotiation the server parses NE_VAR/NE_USERVAR pairs in TelnetIO.readNEVariables() (TelnetIO.java:1127-1180) and inserts each into the environment map of ConnectionData, which is a plain HashMap constructed with initial capacity 20 and no maximum size (ConnectionData.java:98). This is a textbook CWE-400 (Uncontrolled Resource Consumption): per-variable length limits exist (name ≤50 chars, value ≤1000 chars) but there is no bound on the number of variables, so the parse loop keeps accumulating entries (~2 KB heap each) until the terminating IAC SE arrives. NEW-ENVIRON exchange occurs before authentication, so the allocation is fully attacker-controlled and pre-login.

Know when Jline gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Pre-auth network-reachable NEW-ENVIRON parsing (AV:N/PR:N/UI:N) with trivially automatable heap flooding (AC:L) yielding a crash only, so C:N/I:N/A:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 7.5 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Jul 17, 2026 - 23:19 EUVD
CVE Published
Jul 17, 2026 - 21:17 cve.org
HIGH 7.5

DescriptionCVE.org

JLine is a Java library for handling console input. Prior to 3.30.14, 4.0.16, and 4.2.1, the JLine3 Telnet server remote-telnet module does not limit the number of environment variables a client may inject via the Telnet NEW-ENVIRON option, and TelnetIO.readNEVariables() in TelnetIO.java:1127-1180 stores each variable pair in a HashMap held by ConnectionData, allowing an unauthenticated attacker to flood unique variable pairs before the terminating IAC SE byte and exhaust JVM heap memory with an OutOfMemoryError. This issue is fixed in versions 3.30.14, 4.0.16, and 4.2.1.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 maven packages depend on org.jline:jline-remote-telnet (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 4.1.0.

Executive ViewAI

Why It Matters

JLine3 remote-telnet server module versions before 3.30.14, 4.0.16, and 4.2.1 are vulnerable to unauthenticated remote denial-of-service attacks that crash the Java Virtual Machine, impacting application availability for any organization deploying this component. An attacker requires only 3-4 MB of network traffic to trigger an OutOfMemoryError, making this a significant operational risk with no vendor patch currently available.

Business Impact: High
Compensating Controls

Since no vendor-released patch is currently available, implement interim mitigations: restrict network access to the telnet port via firewall rules, disable the remote-telnet module or entire JLine3 service if not operationally necessary, deploy connection-rate limiting to absorb exploitation attempts, and monitor heap usage and process restart events for indicators of attack activity.

Threat Intelligence Overview

EPSS Score
0.5%
Top 60% exploitable
Prevalence
Low
JLine core is common in Java tooling, but the telnet server module is rarely deployed
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Social Media
4
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

59
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
openSUSE Leap 16.0 Fixed
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Server 16.0 Affected
SUSE Linux Enterprise Server for SAP applications 16.0 Affected
SUSE Linux Enterprise Server 16.0 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy