JLine jline3
JLine: Unauthenticated Remote DoS via Unbounded Telnet NAWS Terminal Geometry
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.30.14
- >= 4.0.0, < 4.0.16
- >= 4.1.0, < 4.2.1
Fixed in 3.30.14, 4.0.16, 4.2.1
Mitigation
Upgrade jline3 to 3.30.14 or 4.0.16 or 4.2.1 or later.
References
- Vendor advisory github.com/jline/jline3/security/advisories/GH…
- Patch github.com/jline/jline3/pull/2000
- Patch github.com/jline/jline3/commit/3ea9cad8699714d…
4 more
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.