Skip to main content

JLine3 CVE-2026-56741

| EUVDEUVD-2026-45342 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-07-17 GitHub_M GHSA-2r2c-cx56-8933
7.5
CVSS 3.1 · Vendor: GitHub_M
Share

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

Unauthenticated, network-reachable NAWS input with no user interaction and trivial repetition (AV:N/AC:L/PR:N/UI:N); impact is pure CPU-exhaustion DoS, so A:H with C:N/I:N.

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
qualitative
Red Hat
7.5 HIGH
qualitative

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

4
Patch available
Jul 17, 2026 - 23:19 EUVD
Source Code Evidence Fetched
Jul 17, 2026 - 21:46 vuln.today
Analysis Generated
Jul 17, 2026 - 21:46 vuln.today
CVE Published
Jul 17, 2026 - 21:15 cve.org
HIGH 7.5

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.

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 apply an upper bound to terminal dimensions received via the Telnet NAWS option, and TelnetIO.handleNAWS() in TelnetIO.java:856-879 reads client-supplied width and height as 16-bit unsigned integers and passes values such as 65535x65535 to setTerminalGeometry(), allowing an unauthenticated remote attacker to repeatedly alternate values and trigger continuous expensive rendering work that causes CPU exhaustion and denial of service. This issue is fixed in versions 3.30.14, 4.0.16, and 4.2.1.

AnalysisAI

Denial of service in the JLine3 Telnet server (jline-remote-telnet module) lets an unauthenticated remote attacker exhaust server CPU by abusing the Telnet NAWS window-size option. Because TelnetIO enforces only a lower bound on terminal dimensions, a client can advertise a 65535x65535 terminal and repeatedly alternate values to force continuous, expensive redisplay/rendering cycles. Publicly available exploit code exists (a raw two-packet Telnet PoC is published in the vendor GHSA advisory), and there is no public exploit identified as being actively exploited; the issue is fixed in 3.30.14, 4.0.16, and 4.2.1.

Technical ContextAI

JLine is a widely used Java library for console/line input handling; the vulnerable code lives specifically in its optional remote-telnet module (org.jline:jline-remote-telnet), which implements a Telnet server built on JLine's LineReader. The root cause is CWE-400 (Uncontrolled Resource Consumption): TelnetIO.handleNAWS() (TelnetIO.java:856-879) parses client-supplied width and height from the Telnet NAWS (Negotiate About Window Size, RFC 1073) subnegotiation as 16-bit unsigned integers and forwards them through setTerminalGeometry(), which clamps only the minimum (SMALLEST_BELIEVABLE_WIDTH/HEIGHT, ~20x6) and accepts values up to 65535. The geometry change raises a WINCH signal (Telnet.java:140-175) that drives LineReaderImpl.redisplay() (LineReaderImpl.java:929-962), where freshLine() loops size.getColumns()-1 (~65534) iterations building space-padded output and columnSplitLength() reprocesses the full line width, so each spoofed resize triggers work proportional to the enormous declared dimensions. The CPE cpe:2.3:a:jline:jline3:*:*:*:*:*:*:*:* identifies the affected component as jline3.

RemediationAI

Upgrade JLine to a fixed release on your branch: Vendor-released patch: 3.30.14, 4.0.16, or 4.2.1 (see release notes at https://github.com/jline/jline3/releases/tag/4.0.16 and https://github.com/jline/jline3/releases/tag/4.2.1). The fix (https://github.com/jline/jline3/pull/2000) adds an upper bound of 500 for width and height (LARGEST_BELIEVABLE_WIDTH/HEIGHT) so oversized NAWS geometries are rejected, and also caps environment variable counts (NE_VAR_COUNT_MAX). If you cannot upgrade immediately, the most effective compensating control is to stop exposing the JLine3 Telnet server to untrusted networks - disable the remote-telnet module if unused, or restrict its listening port to trusted management networks via firewall/ACL, accepting that this removes remote console access for legitimate users. Where a resize hook is available you can also clamp incoming terminal dimensions to sane values before they reach setSize(); reference the advisory at https://github.com/jline/jline3/security/advisories/GHSA-2r2c-cx56-8933 for exact code locations.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

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

Share

CVE-2026-56741 vulnerability details – vuln.today

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