Junglewise Threat Intelligence

CVE-2026-56741: JLine JLine3 denial of service in Telnet server NAWS handling

CVE-2026-56741 · Severity: high · CVSS 7.5 · Published 2026-07-17

Executive brief

JLine is a Java library used by applications to handle console input and terminal interactions. A vulnerability in its Telnet server component allows an unauthenticated remote attacker to crash or slow down the service by sending specially crafted terminal size instructions. This can lead to a denial of service, making the affected application unavailable to legitimate users.

Technical details

The JLine3 Telnet server's remote-telnet module fails to validate the upper bounds of terminal dimensions provided via the Telnet Negotiate About Window Size (NAWS) option. Specifically, TelnetIO.handleNAWS() in TelnetIO.java reads client-supplied width and height as 16-bit unsigned integers and passes values up to 65535x65535 to setTerminalGeometry(). An unauthenticated remote attacker can repeatedly alternate these large values to trigger continuous, computationally expensive rendering work (such as freshLine loops and columnSplitLength calculations), leading to CPU exhaustion and denial of service. The fix introduces upper bounds (LARGEST_BELIEVABLE_WIDTH/HEIGHT set to 500) and clamps exceeding values to defaults.

Affected products

  • jline jline3 < 3.30.14, >= 4.0.0 < 4.0.16, >= 4.1.0 < 4.2.1

Timeline

  • 2026-06-26: patched: Fixes merged into 3.x and 4.0.x branches
  • 2026-07-17: disclosed: CVE-2026-56741 published

References

Related threats