CVE-2026-56740: JLine: Unauthenticated Remote Memory Exhaustion via Unbounded Telnet NEW-ENVIRON Variables

Published Jul 17, 2026
·
Updated

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.

Affected Software

1 affected component
jline jline>0<=3.30.13, >0<=4.0.15, >0<=4.2.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade JLine3 Telnet server remote-telnet module to a version that resolves this vulnerability.

    Fixed in 3.30.14
  2. Upgrade

    Upgrade JLine3 Telnet server remote-telnet module to a version that resolves this vulnerability.

    Fixed in 4.0.16
  3. Upgrade

    Upgrade JLine3 Telnet server remote-telnet module to a version that resolves this vulnerability.

    Fixed in 4.2.1

Event History

Jul 17, 2026
CVE Published
via MITRE·09:17 PM
Data Sourced
via MITRE·09:17 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:17 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-56740?

CVE-2026-56740 has a severity rating of 7.5, indicating a high level of risk.

2

What is the main issue described in CVE-2026-56740?

CVE-2026-56740 involves unauthenticated remote memory exhaustion due to unbounded Telnet NEW-ENVIRON variables in the JLine library.

3

How do I fix CVE-2026-56740?

To mitigate CVE-2026-56740, update to JLine versions 3.30.14, 4.0.16, or 4.2.1 where the issue has been resolved.

4

What software is affected by CVE-2026-56740?

CVE-2026-56740 affects the JLine library used for handling console input in Java applications.

5

What type of vulnerability is CVE-2026-56740?

CVE-2026-56740 is a memory exhaustion vulnerability that can be exploited via unbounded environment variables in Telnet.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2026-56740 - JLine: Unauthenticated Remote Memory Exhaustion via Unbounded Telnet NEW-ENVIRON Variables - SecAlerts