CVE-2026-56740
HIGH 7.5CVSS 3.1JLine3 Telnet server: Unauthenticated Remote Memory Exhaustion via Unbounded Telnet NEW-ENVIRON Variables
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.
- Published
- 17 Jul 2026
- Last modified
- 24 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-400
- Also known as
- GHSA-47qp-hqvx-6r3f
- Sources
- NVDJSONOSV GHSA-47qp-hqvx-6r3fJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jline | jlinecpe:2.3:a:jline:jline:*:*:*:*:*:*:*:* |
< 3.30.14 | 3.30.14 |
| NVD | jline | jlinecpe:2.3:a:jline:jline:*:*:*:*:*:*:*:* |
>= 4.0.0, < 4.0.16 | 4.0.16 |
| NVD | jline | jlinecpe:2.3:a:jline:jline:*:*:*:*:*:*:*:* |
>= 4.1.0, < 4.2.1 | 4.2.1 |
| OSV | Maven | org.jline:jline-remote-telnet | >= 4.1.0, < 4.2.1 | 4.2.1 |
| OSV | Maven | org.jline:jline-remote-telnet | >= 4.0.0, < 4.0.16 | 4.0.16 |
| OSV | Maven | org.jline:jline-remote-telnet | < 3.30.14 | 3.30.14 |
References
- https://github.com/jline/jline3/commit/0389f0ee6d0375901b602671ad5dafd4d1d4ee09 · Patch, WEB
- https://github.com/jline/jline3/commit/4ee3a73849ffb9a85ec748e4e8cd8f6d81f84f40 · Patch, WEB
- https://github.com/jline/jline3/commit/934f09e6128cee33c2b13d42b6e859c1ee2d194b · Patch, WEB
- https://github.com/jline/jline3/pull/2000 · Issue Tracking, WEB
- https://github.com/jline/jline3/pull/2001 · Issue Tracking, WEB
- https://github.com/jline/jline3/releases/tag/4.0.16 · Release Notes, WEB
- https://github.com/jline/jline3/releases/tag/4.2.1 · Release Notes, WEB
- https://github.com/jline/jline3/releases/tag/jline-3.30.14 · Release Notes, WEB
- https://github.com/jline/jline3/security/advisories/GHSA-47qp-hqvx-6r3f · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-56740 · ADVISORY
- https://github.com/jline/jline3 · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 17 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 18 Jun 2026)