Path Traversal in Erlangotp
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-23942 has been found in Erlangotp.
Risk of unauthorized operations or information disclosure. CVSS score: 5.4/10.
What to do: apply the vendor's official patched release.
If unsure, ask your IT team or search "Erlangotp CVE-2026-23942" on the vendor's site.
CVE-2026-23942 (Erlangotp) — CWE-22 / CVSS v3 5.4
Attack vector: remote (network-reachable) / no user interaction
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
Path traversal (CWE-22) exists in Erlangotp.
Check the vendor advisory for the affected versions of Erlangotp.
Severity: Medium (CVSS 5.4/10). Risk of unauthorized operations or information disclosure.
Update to the patched release per vendor advisory.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'Erlangotp' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'Erlangotp' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
Erlangotpを grep し、稼働しているサービス・バージョンを把握する。 -
2
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| ErlangOTP |
≥ 84adefa331c4159d432d22840663c38f155cd4c1 (no fix yet)→ 27688a824f753d4c16371dc70e88753fb410590b, 5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759, 9e0ac85d3485e7898e0da88a14be0ee2310a3b28 |
27688a824f753d4c16371dc70e88753fb410590b, 5ed603a1211b83b8be2d1fc06d3f3bf30c3c9759, 9e0ac85d3485e7898e0da88a14be0ee2310a3b28 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-23942 erlang Fix available
- Ubuntu UBUNTU-CVE-2026-23942 erlang Fix available
Original description The description as published by the source.
Summary
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Erlang OTP (ssh_sftpd module) allows Path Traversal.
This vulnerability is associated with program files lib/ssh/src/ssh_sftpd.erl and program routines ssh_sftpd:is_within_root/2.
The 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.
This issue affects OTP from OTP 17.0 before OTP 26.2.5.18, OTP 27.3.4.9, and OTP 28.4.1, corresponding to ssh from 3.0.1 before 5.1.4.14, 5.2.11.6, and 5.5.1. Whether OTP before OTP 17.0, corresponding to ssh before 3.0.1, is affected is unknown.
Workarounds
- Use OS-level chroot to run the Erlang VM/SFTP server process in an isolated filesystem environment.
- Ensure that no sensitive or precious data is readable or writable by the OS user running the Erlang VM.
- Ensure that the SFTP server port is not reachable from untrusted machines.
- Use directory naming conventions that avoid common prefixes (e.g.,
/home/users/alice/instead of/home/user1/).
Configurations
The SFTP subsystem must be enabled on the SSH server, the SSH port m…
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- patch github.com
- web erlang.org
- web cna.erlef.org
- web osv.dev
- web github.com