{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2026-23942 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-23942 is a medium-severity path traversal vulnerability in Erlang OTP, published on 13 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-23942 and fix it if it is affected.\n\nWhat it is: CVE-2026-23942 is a medium-severity path traversal vulnerability in Erlang OTP, published on 13 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-23942 in the wild and no public exploit code.\n\nAffected product: Erlang OTP. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-23942/ (Markdown: https://insights.sbomify.com/CVE-2026-23942/index.md)","id":"CVE-2026-23942","markdown":"https://insights.sbomify.com/CVE-2026-23942/index.md","name":"CVE-2026-23942","record":{"aliases":["AZL-79874","DEBIAN-CVE-2026-23942","EEF-CVE-2026-23942","GHSA-4749-w85x-hw9h","UBUNTU-CVE-2026-23942"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Erlang OTP SSH","requires_auth":"low_privilege","summary":"Authenticated users can escape SFTP root directories via prefix matching flaws, accessing sibling directories in Erlang OTP.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"EEF","cpe":[{"product":"erlang\\/otp","vendor":"erlang"},{"product":"erlang\\/ssh","vendor":"erlang"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Erlang OTP (ssh_sftpd module) allows Path Traversal.\n\nThis vulnerability is associated with program files lib/ssh/src/ssh_sftpd.erl and program routines ssh_sftpd:is_within_root/2.\n\nThe SFTP server uses string prefix matching via lists:prefix/2 rather than proper path component validation when checking if a path is within the configured root directory. This allows authenticated users to access sibling directories that share a common name prefix with the configured root directory. For example, if root is set to /home/user1, paths like /home/user10 or /home/user1_backup would incorrectly be considered within the root.\n\nThis issue affects OTP from OTP 17.0 before OTP 28.4.1, OTP 27.3.4.9 and OTP 26.2.5.18, corresponding to ssh from 3.0.1 before 5.5.1, 5.2.11.6 and 5.1.4.14.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"SFTP root escape via component-agnostic prefix check in ssh_sftpd","id":"CVE-2026-23942","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":0,"n_references":7,"next":{"headline":"Pre-auth SSH DoS via unbounded zlib inflate","id":"CVE-2026-23943"},"packages":[],"prev":{"headline":"Request smuggling via first-wins Content-Length parsing in inets httpd","id":"CVE-2026-23941"},"products":["OTP"],"published":"2026-03-13","related":[{"cvss_score":9.8,"headline":"Auth bypass in n/a","id":"CVE-2022-37026","kev_date_added":null,"published":"2022-09-21"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2016-10253","kev_date_added":null,"published":"2017-03-18"},{"cvss_score":9.1,"headline":"TLS 1.2 and DTLS client accepts unoffered anonymous cipher suite, bypassing server authentication","id":"CVE-2026-55953","kev_date_added":null,"published":"2026-07-27"},{"cvss_score":8.8,"headline":"Stack buffer overflow in SCTP error cause parsing in inet_drv allows remote VM crash","id":"CVE-2026-49759","kev_date_added":null,"published":"2026-06-10"},{"cvss_score":8.7,"headline":"TLS/DTLS denial of service via unbounded recursion on cross-signed peer certificate chain","id":"CVE-2026-58227","kev_date_added":null,"published":"2026-07-27"},{"cvss_score":8.7,"headline":"Denial of service via exponential certificate policy tree growth in path validation","id":"CVE-2026-59251","kev_date_added":null,"published":"2026-07-27"},{"cvss_score":8.7,"headline":"DTLS listener crash via race condition in dtls_packet_demux causes denial of service for all sessions","id":"CVE-2026-55950","kev_date_added":null,"published":"2026-07-02"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-24","vendors":["Erlang"]},"summary":"Authenticated users can escape SFTP root directories via prefix matching flaws, accessing sibling directories in Erlang OTP.","url":"https://insights.sbomify.com/CVE-2026-23942/"}