{"id":"CVE-2026-56741","aliases":["AZL-92453","CLSA-2026-1793728908","DEBIAN-CVE-2026-56741","EUVD-2026-45342","GHSA-2r2c-cx56-8933","ROOT-APP-MAVEN-CVE-2026-56741","ROOT-APP-MAVEN-GHSA-2r2c-cx56-8933","SUSE-SU-2026:22856-1","UBUNTU-CVE-2026-56741","openSUSE-SU-2026:11338-1","openSUSE-SU-2026:21423-1"],"status":"published","title":"JLine: Unauthenticated Remote DoS via Unbounded Telnet NAWS Terminal Geometry","description":"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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.00595,"percentile":0.48911,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-400"],"published":"2026-06-18T13:07:16Z","modified":"2026-11-11T06:00:12Z","fixes":[{"ecosystem":"Maven","package":"org.jline:jline-remote-telnet","fixed_in":["4.2.1","4.0.16","3.30.14"],"sources":["ghsa","osv"]},{"ecosystem":"TuxCare:Maven","package":"org.jline:jline-remote-telnet","fixed_in":["3.21.0-tuxcare.1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"jline3","fixed_in":["3.29.0+ds-2"],"sources":["osv"]},{"ecosystem":"Root:Maven","package":"org.jline:jline-remote-telnet","fixed_in":["3.25.1-aikido.4","3.25.1-aikido.2","3.25.1-aikido.1","3.25.1-aikido.3"],"sources":["osv"]},{"ecosystem":"Root:Maven","package":"io.root.org.jline:jline-remote-telnet","fixed_in":["3.25.1-root.io.4","3.25.1-root.io.2","3.25.1-root.io.1","3.25.1-root.io.3"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.jline:jline-remote-telnet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.1.0"},{"fixed":"4.2.1"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.jline:jline-remote-telnet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.0.16"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.jline:jline-remote-telnet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.30.14"}]}]},{"source":"osv","ecosystem":"Azure Linux:3","package":"jline","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.14.6-1"}]}]},{"source":"osv","ecosystem":"TuxCare:Maven","package":"org.jline:jline-remote-telnet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.21.0"},{"fixed":"3.21.0-tuxcare.1"}]}],"versions":["3.21.0"]},{"source":"osv","ecosystem":"Debian:12","package":"jline","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0-3"]},{"source":"osv","ecosystem":"Debian:13","package":"jline","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0-3"]},{"source":"osv","ecosystem":"Debian:14","package":"jline","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0-3"]},{"source":"osv","ecosystem":"Debian:12","package":"jline2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.14.6-5","2.14.6-6"]},{"source":"osv","ecosystem":"Debian:13","package":"jline2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.14.6-6"]},{"source":"osv","ecosystem":"Debian:14","package":"jline2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.14.6-6"]},{"source":"osv","ecosystem":"Debian:12","package":"jline3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.29.0+ds-1","3.29.0+ds-2","3.29.0+ds-3","3.3.1-3","3.3.1-4","3.3.1-5"]},{"source":"osv","ecosystem":"Debian:13","package":"jline3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.29.0+ds-1","3.29.0+ds-2","3.29.0+ds-3","3.3.1-4","3.3.1-5"]},{"source":"osv","ecosystem":"Debian:14","package":"jline3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.29.0+ds-2"}]}],"versions":["3.29.0+ds-1","3.3.1-4","3.3.1-5"]},{"source":"osv","ecosystem":"Maven","package":"org.jline:jline-remote-telnet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.1.0"},{"fixed":"4.2.1"}]}],"versions":["4.1.0","4.1.1","4.1.2","4.1.3","4.2.0"]},{"source":"osv","ecosystem":"Maven","package":"org.jline:jline-remote-telnet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.0.0"},{"fixed":"4.0.16"}]}],"versions":["4.0.0","4.0.10","4.0.11","4.0.12","4.0.13","4.0.14","4.0.15","4.0.2","4.0.3","4.0.4","4.0.5","4.0.6","4.0.7","4.0.8","4.0.9"]},{"source":"osv","ecosystem":"Maven","package":"org.jline:jline-remote-telnet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.30.14"}]}],"versions":["3.10.0","3.11.0","3.12.0","3.12.1","3.13.0","3.13.1","3.13.2","3.13.3","3.14.0","3.14.1","3.15.0","3.16.0","3.17.0","3.17.1","3.18.0","3.19.0","3.2.0","3.20.0","3.21.0","3.22.0","3.23.0","3.24.0","3.24.1","3.25.0","3.25.1","3.26.0","3.26.1","3.26.2","3.26.3","3.27.0","3.27.1","3.28.0","3.29.0","3.3.0","3.3.1","3.30.0","3.30.1","3.30.10","3.30.11","3.30.12","3.30.13","3.30.2","3.30.3","3.30.4","3.30.5","3.30.6","3.30.7","3.30.8","3.30.9","3.4.0","3.5.0","3.5.1","3.5.2","3.6.0","3.6.1","3.6.2","3.7.0","3.7.1","3.8.0","3.8.1","3.8.2","3.9.0"]},{"source":"osv","ecosystem":"Root:Maven","package":"org.jline:jline-remote-telnet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.25.1-aikido.4"}]}]},{"source":"osv","ecosystem":"Root:Maven","package":"io.root.org.jline:jline-remote-telnet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.25.1-root.io.4"}]}]},{"source":"osv","ecosystem":"Root:Maven","package":"org.jline:jline-remote-telnet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.25.1-aikido.2"},{"fixed":"3.25.1-aikido.1"},{"fixed":"3.25.1-aikido.3"},{"fixed":"3.25.1-aikido.4"}]}]},{"source":"osv","ecosystem":"Root:Maven","package":"io.root.org.jline:jline-remote-telnet","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.25.1-root.io.2"},{"fixed":"3.25.1-root.io.1"},{"fixed":"3.25.1-root.io.3"},{"fixed":"3.25.1-root.io.4"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 16.0","package":"jline3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.30.15-160000.1.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP applications 16.0","package":"jline3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.30.15-160000.1.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"jline","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0-2"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"jline2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.11-1","2.11-2"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"jline","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0-2"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"jline2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.11-4"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"jline","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0-2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"jline2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.11-4","2.12.1-1","2.14.6-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"jline","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0-2"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"jline2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.14.6-3"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"jline","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0-3"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"jline2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.14.6-4"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"jline3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.3.1-2"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"jline","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0-3"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"jline2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.14.6-5"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"jline3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.3.1-3","3.3.1-3ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"jline","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0-3build1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"jline2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.14.6-6"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"jline3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.3.1-4build1","3.3.1-5"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"jline","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0-3","1.0-3build1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"jline2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.14.6-6"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"jline3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.3.1-4","3.3.1-4build1"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"jline3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.30.15-3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Leap 16.0","package":"jline3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.30.15-160000.1.1"}]}],"bundled":2}],"products":[{"vendor":"jline","product":"jline"},{"vendor":"jline","product":"jline3"}],"references":[{"url":"https://github.com/jline/jline3/security/advisories/GHSA-2r2c-cx56-8933","tags":["x_refsource_CONFIRM","exploit","Vendor Advisory","Exploit","advisory","web","report"]},{"url":"https://github.com/jline/jline3/pull/2000","tags":["x_refsource_MISC","Issue Tracking","fix","web","report"]},{"url":"https://github.com/jline/jline3/commit/3ea9cad8699714dc072fade29d36be0d1e23d708","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/jline/jline3/commit/733eb353dca7b0ea0252e724445b6defa29c393e","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/jline/jline3/commit/86b7ba7801988aadb1a67555629522a71d603bd3","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/jline/jline3/releases/tag/4.0.16","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/jline/jline3/releases/tag/4.2.1","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56741","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-2r2c-cx56-8933"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/56xxx/CVE-2026-56741.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-56741","tags":["advisory"]},{"url":"https://github.com/jline/jline3","tags":["package"]},{"url":"https://www.suse.com/support/update/announcement/2026/suse-su-202622856-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1269021","tags":["report"]},{"url":"https://bugzilla.suse.com/1270083","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2026-56740","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2026-56741","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2026-56741","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-56741","tags":["report"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-56741","title":"JLine: Unauthenticated Remote DoS via Unbounded Telnet NAWS Terminal Geometry","description":"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.","status":"published","published":"2026-07-17T21:15:14.732Z","modified":"2026-07-20T15:21:23.382Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T13:36:51.6229Z"}],"euvd":[{"id":"EUVD-2026-45342","description":"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.","status":"published","published":"2026-07-17T21:15:14Z","modified":"2026-07-20T15:21:23Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T18:19:48.530346Z"}],"ghsa":[{"id":"GHSA-2r2c-cx56-8933","title":"JLine3 Telnet server: Unauthenticated Remote DoS via Unbounded Telnet NAWS Terminal Geometry","description":"### Summary\n\nThe JLine3 Telnet server (`remote-telnet` module) does not apply an upper bound to\nterminal dimensions received via the Telnet NAWS (Negotiate About Window Size) option.\nAn unauthenticated remote attacker can send a NAWS subnegotiation advertising a\n65535×65535 terminal and repeatedly alternate values to trigger continuous, expensive\nrendering work on the server, causing CPU exhaustion and denial of service.\n\n### Details\n\n`TelnetIO.handleNAWS()` (TelnetIO.java:856-879) reads the client-supplied width and\nheight as 16-bit unsigned integers and passes them to `setTerminalGeometry()`:\n\n```java\n// TelnetIO.java:869-875\nprivate void setTerminalGeometry(int columns, int rows) {\n    if (columns \u003c SMALLEST_BELIEVABLE_WIDTH) columns = DEFAULT_WIDTH;  // lower bound only\n    if (rows    \u003c SMALLEST_BELIEVABLE_HEIGHT) rows    = DEFAULT_HEIGHT;\n    connectionData.setTerminalGeometry(columns, rows);\n    connection.processConnectionEvent(\n        new ConnectionEvent(connection, ConnectionEvent.Type.CONNECTION_TERMINAL_GEOMETRY_CHANGED));\n}\n```\n\nOnly a *lower* bound is enforced (minimum 20 columns / 6 rows). Values up to 65535 are\naccepted and stored. The geometry change event propagates to Telnet.java:153-158 where\nit calls:\n\n    terminal.setSize(new Size(65535, 65535));\n    terminal.raise(Signal.WINCH);\n\nThe WINCH signal triggers `LineReaderImpl.handleSignal()` → `redisplay()`. Inside\n`redisplay()`, multiple paths iterate up to `size.getColumns()` times:\n\n- `freshLine()` (LineReaderImpl.java:937,953): loops `size.getColumns()-1` = **65534\n  iterations**, building and writing a space-padding string across the network socket.\n- `columnSplitLength(terminal, size.getColumns(), ...)`: called multiple times,\n  each processing all characters against the 65535-wide line width.\n\nBecause WINCH only fires on *change*, the attacker alternates between two large values\n(e.g., 65535 and 65534) to trigger an unlimited stream of expensive render cycles.\nNo authentication is required; the NAWS option is negotiated before any login sequence.\n\nAffected source files:\n- `remote-telnet/src/main/java/org/jline/builtins/telnet/TelnetIO.java` lines 856-879\n- `remote-telnet/src/main/java/org/jline/builtins/telnet/Telnet.java` lines 140-175\n- `reader/src/main/java/org/jline/reader/impl/LineReaderImpl.java` lines 929-962, 1293-1313\n\n### PoC\n\nSend the following two raw Telnet packets in a loop to a running JLine Telnet server.\nNo login or authentication is required.\n\nPacket 1 — NAWS 65535 × 65535:\n  FF FA 1F FF FF FF FF FF F0\n  (IAC SB NAWS 0xFF 0xFF 0xFF 0xFF IAC SE)\n\nPacket 2 — NAWS 65534 × 65534:\n  FF FA 1F FF FE FF FE FF F0\n  (IAC SB NAWS 0xFF 0xFE 0xFF 0xFE IAC SE)\n\nSending these alternately at ~10 packets/second is sufficient to peg one CPU core on\nthe server. The server remains in this state for as long as the connection is open.\n\nReproduction environment:\n- JLine3 built from current master on x86_64 Linux, OpenJDK 25.0.2\n- `remote-telnet` module started with its default `Telnet` server configuration\n- Test confirmed by source-code analysis and tracing the call chain at runtime\n\n### Impact\n\n**Type**: Denial of Service (CPU exhaustion)\n**Who is affected**: Any application that embeds the JLine3 `remote-telnet` module and\nexposes its Telnet server on a network interface. The attacker requires no credentials.\nA single connection making ~10 alternating NAWS packets per second fully occupies the\nconnection-handling thread and produces continuous I/O on the server's output stream.\nBecause connection threads are re-used for the life of the session, one attacker per\navailable connection slot can deny service to all users of that slot.\n\n### Credits\nThis issue was identified by Michał Majchrowicz and Marcin Wyczechowski, members of the AFINE Team.","status":"published","published":"2026-06-18T13:07:16Z","modified":"2026-09-01T21:02:04Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:41:08.980668Z"}],"nvd":[{"id":"CVE-2026-56741","description":"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.","status":"published","published":"2026-07-17T22:17:57.317Z","modified":"2026-10-24T20:10:00.137Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T14:12:30.631352Z"}],"osv":[{"id":"CVE-2026-56741","title":"JLine: Unauthenticated Remote DoS via Unbounded Telnet NAWS Terminal Geometry","description":"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.","status":"published","published":"2026-07-17T21:15:14.732Z","modified":"2026-10-28T11:17:52.175385411Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:45:11.609219Z"},{"id":"DEBIAN-CVE-2026-56741","description":"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.","status":"published","published":"2026-07-17T22:17:57.317Z","modified":"2026-11-11T06:00:12.445985093Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-11T06:24:57.738571Z"},{"id":"GHSA-2r2c-cx56-8933","title":"JLine3 Telnet server: Unauthenticated Remote DoS via Unbounded Telnet NAWS Terminal Geometry","description":"### Summary\n\nThe JLine3 Telnet server (`remote-telnet` module) does not apply an upper bound to\nterminal dimensions received via the Telnet NAWS (Negotiate About Window Size) option.\nAn unauthenticated remote attacker can send a NAWS subnegotiation advertising a\n65535×65535 terminal and repeatedly alternate values to trigger continuous, expensive\nrendering work on the server, causing CPU exhaustion and denial of service.\n\n### Details\n\n`TelnetIO.handleNAWS()` (TelnetIO.java:856-879) reads the client-supplied width and\nheight as 16-bit unsigned integers and passes them to `setTerminalGeometry()`:\n\n```java\n// TelnetIO.java:869-875\nprivate void setTerminalGeometry(int columns, int rows) {\n    if (columns \u003c SMALLEST_BELIEVABLE_WIDTH) columns = DEFAULT_WIDTH;  // lower bound only\n    if (rows    \u003c SMALLEST_BELIEVABLE_HEIGHT) rows    = DEFAULT_HEIGHT;\n    connectionData.setTerminalGeometry(columns, rows);\n    connection.processConnectionEvent(\n        new ConnectionEvent(connection, ConnectionEvent.Type.CONNECTION_TERMINAL_GEOMETRY_CHANGED));\n}\n```\n\nOnly a *lower* bound is enforced (minimum 20 columns / 6 rows). Values up to 65535 are\naccepted and stored. The geometry change event propagates to Telnet.java:153-158 where\nit calls:\n\n    terminal.setSize(new Size(65535, 65535));\n    terminal.raise(Signal.WINCH);\n\nThe WINCH signal triggers `LineReaderImpl.handleSignal()` → `redisplay()`. Inside\n`redisplay()`, multiple paths iterate up to `size.getColumns()` times:\n\n- `freshLine()` (LineReaderImpl.java:937,953): loops `size.getColumns()-1` = **65534\n  iterations**, building and writing a space-padding string across the network socket.\n- `columnSplitLength(terminal, size.getColumns(), ...)`: called multiple times,\n  each processing all characters against the 65535-wide line width.\n\nBecause WINCH only fires on *change*, the attacker alternates between two large values\n(e.g., 65535 and 65534) to trigger an unlimited stream of expensive render cycles.\nNo authentication is required; the NAWS option is negotiated before any login sequence.\n\nAffected source files:\n- `remote-telnet/src/main/java/org/jline/builtins/telnet/TelnetIO.java` lines 856-879\n- `remote-telnet/src/main/java/org/jline/builtins/telnet/Telnet.java` lines 140-175\n- `reader/src/main/java/org/jline/reader/impl/LineReaderImpl.java` lines 929-962, 1293-1313\n\n### PoC\n\nSend the following two raw Telnet packets in a loop to a running JLine Telnet server.\nNo login or authentication is required.\n\nPacket 1 — NAWS 65535 × 65535:\n  FF FA 1F FF FF FF FF FF F0\n  (IAC SB NAWS 0xFF 0xFF 0xFF 0xFF IAC SE)\n\nPacket 2 — NAWS 65534 × 65534:\n  FF FA 1F FF FE FF FE FF F0\n  (IAC SB NAWS 0xFF 0xFE 0xFF 0xFE IAC SE)\n\nSending these alternately at ~10 packets/second is sufficient to peg one CPU core on\nthe server. The server remains in this state for as long as the connection is open.\n\nReproduction environment:\n- JLine3 built from current master on x86_64 Linux, OpenJDK 25.0.2\n- `remote-telnet` module started with its default `Telnet` server configuration\n- Test confirmed by source-code analysis and tracing the call chain at runtime\n\n### Impact\n\n**Type**: Denial of Service (CPU exhaustion)\n**Who is affected**: Any application that embeds the JLine3 `remote-telnet` module and\nexposes its Telnet server on a network interface. The attacker requires no credentials.\nA single connection making ~10 alternating NAWS packets per second fully occupies the\nconnection-handling thread and produces continuous I/O on the server's output stream.\nBecause connection threads are re-used for the life of the session, one attacker per\navailable connection slot can deny service to all users of that slot.\n\n### Credits\nThis issue was identified by Michał Majchrowicz and Marcin Wyczechowski, members of the AFINE Team.","status":"published","published":"2026-06-18T13:07:16Z","modified":"2026-09-10T03:51:07.726046123Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-400"],"updated_at":"2026-11-02T15:46:34.700741Z"},{"id":"UBUNTU-CVE-2026-56741","description":"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.","status":"published","published":"2026-07-17T22:17:00Z","modified":"2026-10-17T12:59:10.511454416Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T16:56:41.382716Z"},{"id":"AZL-92453","title":"CVE-2026-56741 affecting package jline 2.14.6-1","description":"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.","status":"published","published":"2026-07-17T22:17:57Z","modified":"2026-11-05T05:36:30Z","updated_at":"2026-11-05T16:41:25.880689Z"},{"id":"CLSA-2026-1793728908","title":"TuxCare security update for org.jline:jline-remote-telnet (1 CVE)","description":"TuxCare rebuilt org.jline:jline-remote-telnet to address 1 CVE. Fixed in 3.21.0-tuxcare.1.","status":"published","published":"2026-11-03T19:01:49Z","modified":"2026-11-04T02:30:04.081034996Z","updated_at":"2026-11-04T02:55:01.518827Z"},{"id":"openSUSE-SU-2026:11338-1","title":"jline3-3.30.15-3.1 on GA media","description":"These are all security issues fixed in the jline3-3.30.15-3.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2026-07-22T00:00:00Z","modified":"2026-07-23T09:45:09.29729857Z","updated_at":"2026-11-02T16:58:38.95195Z"},{"id":"openSUSE-SU-2026:21423-1","title":"Security update for jline3","description":"This update for jline3 fixes the following issues:\n\n- CVE-2026-56740: unauthenticated remote memory exhaustion via unbounded Telnet `NEW-ENVIRON` variables (bsc#1269021).\n- CVE-2026-56741: unauthenticated remote DoS via Unbounded Telnet NAWS Terminal Geometry (bsc#1270083).\n\nChanges for jline3:\n\n- Update to upstream version 3.30.15\n\n + fix: guard regex matching against catastrophic backtracking\n   (ReDoS) (#2018, backport of #2012):\n   * Adds SafeRegex utility with TimeoutCharSequence to enforce\n     wall-clock deadlines during regex matching\n   * Fixes 8 locations across terminal, reader, and builtins\n     where user-controlled input could trigger catastrophic\n     backtracking\n   * Addresses GHSA-r2xf-8xr9-62gw, GHSA-2v9w-34q6-wpqx,\n     GHSA-ph9c-7hw9-vhhw, GHSA-5q95-hrpc-m3w3\n + fix: backport security hardening (#1986, #1995):\n   * Create persisted history file with owner-only permissions\n   * Use exclusive create for extracted native library temp files\n + fix: warn on insecure permissions when history file created\n   concurrently\n","status":"published","published":"2026-07-22T16:48:17Z","modified":"2026-07-24T18:24:23.717103033Z","updated_at":"2026-11-02T16:58:41.885092Z"},{"id":"ROOT-APP-MAVEN-CVE-2026-56741","title":"CVE-2026-56741 in org.jline:jline-remote-telnet - Patched by Root","description":"Root has patched CVE-2026-56741 in the org.jline:jline-remote-telnet package for Root:Maven. Multiple fixed versions available.","status":"published","published":"2026-10-01T12:04:23Z","modified":"2026-10-01T13:15:04.296850164Z","updated_at":"2026-11-02T15:53:27.066589Z"},{"id":"ROOT-APP-MAVEN-GHSA-2r2c-cx56-8933","title":"GHSA-2r2c-cx56-8933 in org.jline:jline-remote-telnet - Patched by Root","description":"Root has patched GHSA-2r2c-cx56-8933 in the org.jline:jline-remote-telnet package for Root:Maven. Multiple fixed versions available.","status":"published","published":"2026-10-01T12:04:23Z","modified":"2026-10-01T13:15:04.292096615Z","updated_at":"2026-11-02T15:53:27.066589Z"},{"id":"SUSE-SU-2026:22856-1","title":"Security update for jline3","description":"This update for jline3 fixes the following issues:\n\n- CVE-2026-56740: unauthenticated remote memory exhaustion via unbounded Telnet `NEW-ENVIRON` variables (bsc#1269021).\n- CVE-2026-56741: unauthenticated remote DoS via Unbounded Telnet NAWS Terminal Geometry (bsc#1270083).\n\nChanges for jline3:\n\n- Update to upstream version 3.30.15\n\n + fix: guard regex matching against catastrophic backtracking\n   (ReDoS) (#2018, backport of #2012):\n   * Adds SafeRegex utility with TimeoutCharSequence to enforce\n     wall-clock deadlines during regex matching\n   * Fixes 8 locations across terminal, reader, and builtins\n     where user-controlled input could trigger catastrophic\n     backtracking\n   * Addresses GHSA-r2xf-8xr9-62gw, GHSA-2v9w-34q6-wpqx,\n     GHSA-ph9c-7hw9-vhhw, GHSA-5q95-hrpc-m3w3\n + fix: backport security hardening (#1986, #1995):\n   * Create persisted history file with owner-only permissions\n   * Use exclusive create for extracted native library temp files\n + fix: warn on insecure permissions when history file created\n   concurrently\n","status":"published","published":"2026-07-22T16:48:02Z","modified":"2026-07-28T18:24:10.7567431Z","updated_at":"2026-11-02T15:54:03.080707Z"}]}}
