{"id":"CVE-2026-56740","published":"2026-07-17T21:17:03Z","modified":"2026-07-20T13:58:00Z","title":"JLine: Unauthenticated Remote Memory Exhaustion via Unbounded Telnet NEW-ENVIRON Variables","vendor":"jline","product":"jline3","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00884,"percentile":0.56995,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/jline/jline3/security/advisories/GHSA-47qp-hqvx-6r3f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jline/jline3/pull/2000","tags":["x_refsource_MISC"]},{"url":"https://github.com/jline/jline3/pull/2001","tags":["x_refsource_MISC"]},{"url":"https://github.com/jline/jline3/commit/0389f0ee6d0375901b602671ad5dafd4d1d4ee09","tags":["x_refsource_MISC"]},{"url":"https://github.com/jline/jline3/commit/4ee3a73849ffb9a85ec748e4e8cd8f6d81f84f40","tags":["x_refsource_MISC"]},{"url":"https://github.com/jline/jline3/commit/934f09e6128cee33c2b13d42b6e859c1ee2d194b","tags":["x_refsource_MISC"]},{"url":"https://github.com/jline/jline3/releases/tag/4.0.16","tags":["x_refsource_MISC"]},{"url":"https://github.com/jline/jline3/releases/tag/4.2.1","tags":["x_refsource_MISC"]},{"url":"https://github.com/jline/jline3/releases/tag/jline-3.30.14","tags":["x_refsource_MISC"]}],"priority":{"score":16.6,"factors":[{"name":"EPSS percentile","points":11.4},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"jline","affectedVersions":[{"vendor":"jline","product":"jline3","versions":["< 3.30.14",">= 4.0.0, < 4.0.16",">= 4.1.0, < 4.2.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-20T13:57:48.412665Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.jline:jline-remote-telnet","vulnerableRanges":[">=4.1.0, <4.2.1",">=4.0.0, <4.0.16","<3.30.14"],"patched":["4.2.1","4.0.16","3.30.14"],"from":["GHSA-47qp-hqvx-6r3f"],"provenance":"source"}],"summary":{"text":"The JLine3 Telnet server's remote-telnet module, in the TelnetIO readNEVariables handling of the Telnet NEW-ENVIRON option, fails to limit how many environment variables a client can send, storing each pair in a per-connection HashMap. An unauthenticated remote attacker with network access to the Telnet server can flood unique variable pairs before the terminating IAC SE byte, exhausting JVM heap memory and causing an OutOfMemoryError; no user interaction or specific configuration is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:47:58Z"},"euvd":{"id":"EUVD-2026-45343","exploited":false,"provenance":"source"}}