{"answers":{"affected":"6 open source packages ship an affected version, including org.jline:jline-remote-telnet. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-56740 exists.","fix":"Upgrade org.jline:jline-remote-telnet to a fixed version for your release line: 3.30.14, 4.0.16 or 4.2.1.","what":"CVE-2026-56740 is a high-severity denial of service vulnerability in jline3, published on 17 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-56740 and fix it if it is affected.\n\nWhat it is: CVE-2026-56740 is a high-severity denial of service vulnerability in jline3, published on 17 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-56740 exists.\n\nAffected packages and fixed versions:\n- org.jline:jline-remote-telnet (Maven): affected all versions; fixed in 3.30.14\n- org.jline:jline-remote-telnet (Maven): affected all versions; fixed in 3.30.14\n- org.jline:jline-remote-telnet (Maven): affected from 4.0.0; fixed in 4.0.16\n- org.jline:jline-remote-telnet (Maven): affected from 4.0.0; fixed in 4.0.16\n- org.jline:jline-remote-telnet (Maven): affected from 4.1.0; fixed in 4.2.1\n- org.jline:jline-remote-telnet (Maven): affected from 4.1.0; fixed in 4.2.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-56740/ (Markdown: https://insights.sbomify.com/CVE-2026-56740/index.md)","id":"CVE-2026-56740","markdown":"https://insights.sbomify.com/CVE-2026-56740/index.md","name":"CVE-2026-56740","record":{"aliases":["AZL-92450","CLEANSTART-2026-HI15908","CLEANSTART-2026-JG25359","CLEANSTART-2026-RC30814","DEBIAN-CVE-2026-56740","ECHO-227b-e898-679d","GHSA-47qp-hqvx-6r3f","MINI-237r-mxq5-9xwv","MINI-2hc7-qx7m-66jc","MINI-4p7h-7cf4-jhc3","MINI-723q-cc27-p8hj","MINI-79h3-68fr-w9v3","MINI-7r4c-v965-36fp","MINI-8c35-v7x2-rcfq","MINI-969f-c6v5-h999","MINI-cp2j-28cc-wh55","MINI-f864-cj5c-v22r","MINI-f94x-5383-c856","MINI-fcgr-j9ww-5f2q","MINI-fppj-gfpp-6fw7","MINI-g2ww-vjcj-v8gp","MINI-gc97-qqp2-gjvw","MINI-gr4q-pxgc-mc3j","MINI-gv96-9jf2-fg7r","MINI-jhx3-85qr-2m5h","MINI-m83g-rhgr-h94h","MINI-mm6f-pq96-xwj9","MINI-p2c5-c9qf-m5q9","MINI-p3jh-6rjq-7xpc","MINI-p68w-8c79-7v46","MINI-pg6p-cw9x-3r3v","MINI-phf7-gg4f-fh36","MINI-rrg2-jfc8-33hx","MINI-rxv7-6hpf-cwvr","MINI-v7ph-435g-9478","MINI-vm5f-8rw2-r8g5","MINI-x3xg-93h9-chw6","ROOT-APP-MAVEN-CVE-2026-56740","ROOT-APP-MAVEN-GHSA-47qp-hqvx-6r3f","UBUNTU-CVE-2026-56740"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Java console input library","requires_auth":"none","summary":"Unauthenticated attackers can exhaust JVM memory via unbounded Telnet environment variables, causing denial of service in applications using JLine.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"jline","vendor":"jline"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"JLine: Unauthenticated Remote Memory Exhaustion via Unbounded Telnet NEW-ENVIRON Variables","id":"CVE-2026-56740","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":6,"n_references":9,"next":{"headline":"JLine: Unauthenticated Remote DoS via Unbounded Telnet NAWS Terminal Geometry","id":"CVE-2026-56741"},"packages":[{"ecosystem":"Maven","fixed":["3.30.14"],"introduced":["0"],"last_affected":[],"package":"org.jline:jline-remote-telnet","purl":null,"source":"GHSA-47qp-hqvx-6r3f"},{"ecosystem":"Maven","fixed":["3.30.14"],"introduced":["0"],"last_affected":[],"package":"org.jline:jline-remote-telnet","purl":"pkg:maven/org.jline/jline-remote-telnet","source":"GHSA-47qp-hqvx-6r3f"},{"ecosystem":"Maven","fixed":["4.0.16"],"introduced":["4.0.0"],"last_affected":[],"package":"org.jline:jline-remote-telnet","purl":null,"source":"GHSA-47qp-hqvx-6r3f"},{"ecosystem":"Maven","fixed":["4.0.16"],"introduced":["4.0.0"],"last_affected":[],"package":"org.jline:jline-remote-telnet","purl":"pkg:maven/org.jline/jline-remote-telnet","source":"GHSA-47qp-hqvx-6r3f"},{"ecosystem":"Maven","fixed":["4.2.1"],"introduced":["4.1.0"],"last_affected":[],"package":"org.jline:jline-remote-telnet","purl":null,"source":"GHSA-47qp-hqvx-6r3f"},{"ecosystem":"Maven","fixed":["4.2.1"],"introduced":["4.1.0"],"last_affected":[],"package":"org.jline:jline-remote-telnet","purl":"pkg:maven/org.jline/jline-remote-telnet","source":"GHSA-47qp-hqvx-6r3f"}],"prev":{"headline":"Logto: SSRF via Webhooks and Custom OAuth2 Connector UserInfo Endpoint","id":"CVE-2026-56739"},"products":["jline3"],"published":"2026-07-17","related":[{"cvss_score":7.5,"headline":"JLine: Unauthenticated Remote DoS via Unbounded Telnet NAWS Terminal Geometry","id":"CVE-2026-56741","kev_date_added":null,"published":"2026-07-17"},{"cvss_score":5.5,"headline":"JLine vulnerable to out of memory error","id":"CVE-2023-50572","kev_date_added":null,"published":"2023-12-29"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-20","vendors":["jline"]},"summary":"Unauthenticated attackers can exhaust JVM memory via unbounded Telnet environment variables, causing denial of service in applications using JLine.","url":"https://insights.sbomify.com/CVE-2026-56740/"}