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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/56xxx/CVE-2026-56740.json",
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-400"
]
}{
"source": [
"AFFECTED_FIELD",
"REFERENCES"
],
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "3.30.14"
},
{
"introduced": "4.0.0"
},
{
"fixed": "4.0.16"
},
{
"introduced": "4.1.0"
},
{
"fixed": "4.2.1"
}
]
}[
{
"digest": {
"length": 1474.0,
"function_hash": "9659067575893753802717095945310300604"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"target": {
"function": "readNEVariables",
"file": "remote-telnet/src/main/java/org/jline/builtins/telnet/TelnetIO.java"
},
"id": "CVE-2026-56740-05baba86",
"source": "https://github.com/jline/jline3/commit/4ee3a73849ffb9a85ec748e4e8cd8f6d81f84f40"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"114553106841320954481591867832549336960",
"252612839105147054231880134571793758531",
"283447327005235130799948611758560330175",
"62630067785711623491723545854880784477",
"177258765830403900940084317790318807210",
"116576334301746100171185812302241474861",
"129486502375561182486208346847798694875",
"252554145284528077034036932622068314126",
"119447324916635354966779118074940025716",
"68449694872116802040829898989487612640",
"76152990609906644015187505641628864299",
"318842209164117888817773013311510931037",
"254285511972821347395851233230491879827",
"315396873570121005309938374681341441154",
"305942254708714560704278022408065769543",
"190969554850831459262039945539883669452",
"213135248747880834674709502399209061058",
"119502526220449648074071543086322591867",
"333458897145637082651967716843097551618",
"226223177838734511668181214253325791428",
"35268129683398808192557976811372907612",
"89504487205750622351797002402111733211",
"178304634225702254318241383902381193877"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "remote-telnet/src/main/java/org/jline/builtins/telnet/TelnetIO.java"
},
"id": "CVE-2026-56740-40600949",
"source": "https://github.com/jline/jline3/commit/0389f0ee6d0375901b602671ad5dafd4d1d4ee09"
},
{
"digest": {
"length": 1484.0,
"function_hash": "18293505911945577055547336982745324144"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"target": {
"function": "readNEVariables",
"file": "remote-telnet/src/main/java/org/jline/builtins/telnet/TelnetIO.java"
},
"id": "CVE-2026-56740-7cfd139e",
"source": "https://github.com/jline/jline3/commit/934f09e6128cee33c2b13d42b6e859c1ee2d194b"
},
{
"digest": {
"length": 1474.0,
"function_hash": "9659067575893753802717095945310300604"
},
"signature_version": "v1",
"source": "https://github.com/jline/jline3/commit/0389f0ee6d0375901b602671ad5dafd4d1d4ee09",
"signature_type": "Function",
"target": {
"function": "readNEVariables",
"file": "remote-telnet/src/main/java/org/jline/builtins/telnet/TelnetIO.java"
},
"id": "CVE-2026-56740-820c2de1",
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"114553106841320954481591867832549336960",
"252612839105147054231880134571793758531",
"283447327005235130799948611758560330175",
"62630067785711623491723545854880784477",
"26131782598948083288601203857488271455",
"212194375308035009938747385810830404053",
"119502526220449648074071543086322591867",
"333458897145637082651967716843097551618",
"112679841775866632023851657384301624213",
"141996291166526693053120114535732079549",
"330965013841398701078877539099207484578",
"261354662018613459591414882692417150585"
]
},
"signature_version": "v1",
"source": "https://github.com/jline/jline3/commit/934f09e6128cee33c2b13d42b6e859c1ee2d194b",
"signature_type": "Line",
"target": {
"file": "remote-telnet/src/main/java/org/jline/builtins/telnet/TelnetIO.java"
},
"id": "CVE-2026-56740-ae6eeaea",
"deprecated": false
},
{
"digest": {
"length": 347.0,
"function_hash": "236413241627164877253365168930117531644"
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Function",
"target": {
"function": "setTerminalGeometry",
"file": "remote-telnet/src/main/java/org/jline/builtins/telnet/TelnetIO.java"
},
"id": "CVE-2026-56740-d70e878e",
"source": "https://github.com/jline/jline3/commit/4ee3a73849ffb9a85ec748e4e8cd8f6d81f84f40"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"114553106841320954481591867832549336960",
"252612839105147054231880134571793758531",
"283447327005235130799948611758560330175",
"62630067785711623491723545854880784477",
"177258765830403900940084317790318807210",
"116576334301746100171185812302241474861",
"129486502375561182486208346847798694875",
"252554145284528077034036932622068314126",
"119447324916635354966779118074940025716",
"68449694872116802040829898989487612640",
"76152990609906644015187505641628864299",
"318842209164117888817773013311510931037",
"254285511972821347395851233230491879827",
"315396873570121005309938374681341441154",
"305942254708714560704278022408065769543",
"190969554850831459262039945539883669452",
"213135248747880834674709502399209061058",
"119502526220449648074071543086322591867",
"333458897145637082651967716843097551618",
"226223177838734511668181214253325791428",
"35268129683398808192557976811372907612",
"89504487205750622351797002402111733211",
"178304634225702254318241383902381193877"
]
},
"signature_version": "v1",
"deprecated": false,
"signature_type": "Line",
"target": {
"file": "remote-telnet/src/main/java/org/jline/builtins/telnet/TelnetIO.java"
},
"id": "CVE-2026-56740-ea21c22f",
"source": "https://github.com/jline/jline3/commit/4ee3a73849ffb9a85ec748e4e8cd8f6d81f84f40"
},
{
"digest": {
"length": 347.0,
"function_hash": "236413241627164877253365168930117531644"
},
"signature_version": "v1",
"source": "https://github.com/jline/jline3/commit/0389f0ee6d0375901b602671ad5dafd4d1d4ee09",
"signature_type": "Function",
"target": {
"function": "setTerminalGeometry",
"file": "remote-telnet/src/main/java/org/jline/builtins/telnet/TelnetIO.java"
},
"id": "CVE-2026-56740-ec9360e5",
"deprecated": false
}
]
"2026-07-22T08:04:25Z"
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-56740.json"