CVE-2026-56740
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 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.
Weakness
- CWE-400: Uncontrolled Resource Consumption
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-07-20 |
Timeline
- 2026-06-18GitHub advisory published (GHSA-47qp-hqvx-6r3f)29 days before publication
- 2026-07-17Published by the CNA21:17 UTC
- 2026-07-20CISA SSVC decision recorded3 days after publication
Exploit and advisory records
GitHub advisory GHSA-47qp-hqvx-6r3f, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Maven org.jline:jline-remote-telnet | before 3.30.14 | 3.30.14 |
| Maven org.jline:jline-remote-telnet | from 4.0.0 before 4.0.16 | 4.0.16 |
| Maven org.jline:jline-remote-telnet | from 4.1.0 before 4.2.1 | 4.2.1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| jline jline | before 3.30.14fixed in 3.30.14from 4.0.0 before 4.0.16fixed in 4.0.16from 4.1.0 before 4.2.1fixed in 4.2.1 | 3.30.144.0.164.2.1 |
References
- https://github.com/jline/jline3/commit/0389f0ee6d0375901b602671ad5dafd4d1d4ee09
- https://github.com/jline/jline3/commit/4ee3a73849ffb9a85ec748e4e8cd8f6d81f84f40
- https://github.com/jline/jline3/commit/934f09e6128cee33c2b13d42b6e859c1ee2d194b
- https://github.com/jline/jline3/security/advisories/GHSA-47qp-hqvx-6r3f
- https://github.com/jline/jline3/pull/2000
- https://github.com/jline/jline3/pull/2001
- https://github.com/jline/jline3/releases/tag/4.0.16
- https://github.com/jline/jline3/releases/tag/4.2.1
- https://github.com/jline/jline3/releases/tag/jline-3.30.14
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-56740'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-56740'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-56740'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-56740'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).