CVE-2026-56740Jline
High 7.5 No auth needed
Follow: this CVE · Jline · Jline We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Jul 17, 2026
- Updated
- Oct 24, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-400
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Jline.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.jline:jline-remote-telnet |
≥ 4.1.0 < 4.2.1 |
4.2.1 |
— |
| Maven | org.jline:jline-remote-telnet |
≥ 4.0.0 < 4.0.16 |
4.0.16 |
— |
| Maven | org.jline:jline-remote-telnet |
< 3.30.14 |
3.30.14 |
— |
Per OSV / GitHub Advisories (GHSA-47qp-hqvx-6r3f). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| jline | jline | < 3.30.14 |
| jline | jline | ≥ 4.0.0 < 4.0.16 |
| jline | jline | ≥ 4.1.0 < 4.2.1 |
Official advisories
- Security update for jline3 · SUSE · openSUSE-SU-2026:21423-1 · Jul 22, 2026 High
- Security update for jline3 · SUSE · SUSE-SU-2026:22856-1 · Jul 22, 2026 High
- jline3-3.30.15-3.1 on GA media · SUSE · openSUSE-SU-2026:11338-1 · Jul 22, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Issue Tracking
- github.com Issue Tracking
- github.com Release Notes
- github.com Release Notes
- github.com Release Notes
- github.com Exploit Vendor Advisory