{"affected":[{"defaultStatus":"unknown","ecosystem":"software-id","packageName":"otp","product":"OTP","source":"CNA: EEF","vendor":"Erlang","versions":[{"changes":[{"at":"26.2.5.20","status":"unaffected"},{"at":"27.3.4.11","status":"unaffected"},{"at":"28.4.3","status":"unaffected"}],"lessThan":"*","status":"affected","version":"17.0","versionType":"otp"}]},{"defaultStatus":"unknown","ecosystem":"otp","packageName":"ssh","product":"OTP","source":"CNA: EEF","vendor":"Erlang","versions":[{"changes":[{"at":"5.1.4.15","status":"unaffected"},{"at":"5.2.11.7","status":"unaffected"},{"at":"5.5.2","status":"unaffected"}],"lessThan":"*","status":"affected","version":"3.0.1","versionType":"otp"}]},{"defaultStatus":"unknown","ecosystem":"github","packageName":"erlang/otp","product":"OTP","source":"CNA: EEF","vendor":"Erlang","versions":[{"lessThan":"28c5d5a6c5f873dc701b597276271763e7d1c004","status":"affected","version":"07b8f441ca711f9812fad9e9115bab3c3aa92f79","versionType":"git"},{"lessThan":"*","status":"unaffected","version":"28c5d5a6c5f873dc701b597276271763e7d1c004","versionType":"git"}]}],"cveId":"CVE-2026-32147","cwes":["CWE-22"],"description":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Erlang OTP ssh (ssh_sftpd module) allows an authenticated SFTP user to modify file attributes outside the configured chroot directory.\n\nThe SFTP daemon (ssh_sftpd) stores the raw, user-supplied path in file handles instead of the chroot-resolved path. When SSH_FXP_FSETSTAT is issued on such a handle, file attributes (permissions, ownership, timestamps) are modified on the real filesystem path, bypassing the root directory boundary entirely.\n\nAny authenticated SFTP user on a server configured with the root option can modify file attributes of files outside the intended chroot boundary. The prerequisite is that a target file must exist on the real filesystem at the same relative path. Note that this vulnerability only allows modification of file attributes; file contents cannot be read or altered through this attack vector.\n\nIf the SSH daemon runs as root, this enables direct privilege escalation: an attacker can set the setuid bit on any binary, change ownership of sensitive files, or make system configuration world-writable.\n\nThis vulnerability is associated with program files lib/ssh/src/ssh_sftpd.erl and program routines ssh_sftpd:do_open/4 and ssh_sftpd:handle_op/4.\n\nThis issue affects OTP from OTP 17.0 before OTP 26.2.5.20, OTP 27.3.4.11, and OTP 28.4.3, corresponding to ssh from 3.0.1 before 5.1.4.15, 5.2.11.7, and 5.5.2. Whether OTP before OTP 17.0, corresponding to ssh before 3.0.1, is affected is unknown.","epss":{"date":"2026-11-10","percentile":0.29349,"score":0.00354},"exploits":[],"kev":null,"metrics":[{"score":5.3,"severity":"medium","source":"CNA: EEF","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N","version":"4.0"}],"modifiedAt":1794424867336,"publishedAt":1776772880350,"references":[{"source":"CNA: EEF","tags":["vendor-advisory","related"],"url":"https://github.com/erlang/otp/security/advisories/GHSA-28jg-mw9x-hpm5"},{"source":"CNA: EEF","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-32147.html"},{"source":"CNA: EEF","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-32147"},{"source":"CNA: EEF","tags":["x_version-scheme"],"url":"https://www.erlang.org/doc/system/versions.html#order-of-versions"},{"source":"CNA: EEF","tags":["related"],"url":"https://github.com/erlang/otp/commit/07b8f441ca711f9812fad9e9115bab3c3aa92f79"},{"source":"CNA: EEF","tags":["patch"],"url":"https://github.com/erlang/otp/commit/28c5d5a6c5f873dc701b597276271763e7d1c004"}],"remediation":[{"kind":"workaround","source":"CNA: EEF","text":"* Do not use the root option in ssh_sftpd:subsystem_spec/1, and instead rely on OS-level chroot or container isolation to confine SFTP users.\n* Ensure the Erlang VM is not running as a privileged OS user. Running the VM as an unprivileged user limits the impact of this vulnerability, since attribute modifications are constrained by that user's OS-level permissions."},{"kind":"fix","source":"CNA: EEF","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/erlang/otp/commit/28c5d5a6c5f873dc701b597276271763e7d1c004"}],"revision":"a01718bda990ed52b25724058934db62289706ca93ee1c47ec86f5b2a5288721","sources":[{"modifiedAt":1794424867336,"name":"CNA: EEF","retrievedAt":1794427755711,"url":"https://www.cve.org/CVERecord?id=CVE-2026-32147"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1794427765777,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-32147"}],"ssvc":{"assessedAt":1776777066946,"automatable":"no","exploitation":"none","source":"ADP: CISA-ADP","technicalImpact":"partial"},"status":"published","title":"SFTP chroot bypass via path traversal in SSH_FXP_FSETSTAT","updatedAt":1794427765777}