{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-32147","id":"CVE-2026-32147","title":"SFTP chroot bypass via path traversal in SSH_FXP_FSETSTAT","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, fi","descriptionLong":"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.","published":"2026-04-21T12:01:20.350Z","updated":"2026-11-13T02:47:28.398714154Z","reserved":"2026-03-10T22:37:29.213Z","status":"Modified","rejected":false,"assigner":"EEF","metric":{"version":"4.0","score":5.3,"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","rating":"medium","source":"EEF"},"metrics":[{"version":"4.0","score":5.3,"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","rating":"medium","source":"EEF"},{"version":"4.0","score":5.3,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":["Erlang OTP"],"affectedProducts":[{"vendor":"Erlang","product":"OTP","defaultStatus":"unknown","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"}],"platforms":[]},{"vendor":"Erlang","product":"OTP","defaultStatus":"unknown","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"}],"platforms":[]},{"vendor":"Erlang","product":"OTP","defaultStatus":"unknown","versions":[{"lessThan":"28c5d5a6c5f873dc701b597276271763e7d1c004","status":"affected","version":"07b8f441ca711f9812fad9e9115bab3c3aa92f79","versionType":"git"},{"lessThan":"*","status":"unaffected","version":"28c5d5a6c5f873dc701b597276271763e7d1c004","versionType":"git"}],"platforms":[]}],"packages":[],"cwes":["CWE-22"],"aliases":["EEF-CVE-2026-32147","GHSA-28jg-mw9x-hpm5"],"references":[{"url":"https://github.com/erlang/otp/security/advisories/GHSA-28jg-mw9x-hpm5","tags":["vendor-advisory","related","Vendor Advisory","advisory"]},{"url":"https://cna.erlef.org/cves/CVE-2026-32147.html","tags":["related","Vendor Advisory","web"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-32147","tags":["related","Third Party Advisory","web"]},{"url":"https://www.erlang.org/doc/system/versions.html#order-of-versions","tags":["x_version-scheme","Product","web"]},{"url":"https://github.com/erlang/otp/commit/07b8f441ca711f9812fad9e9115bab3c3aa92f79","tags":["related","fix"]},{"url":"https://github.com/erlang/otp/commit/28c5d5a6c5f873dc701b597276271763e7d1c004","tags":["patch","Patch","fix"]},{"url":"https://github.com","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/32xxx/CVE-2026-32147.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32147","tags":["advisory"]},{"url":"https://github.com/erlang/otp","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00382,"epssPercentile":0.32952,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-32147","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32147","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-32147","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-32147","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}