{"id":"CVE-2017-5899","aliases":["DEBIAN-CVE-2017-5899","EUVD-2017-14974","GHSA-42jr-32cj-2c5c","UBUNTU-CVE-2017-5899","USN-4820-1"],"status":"published","title":"Directory traversal vulnerability in the setuid root helper binary in S-nail (later S-mailx)...","description":"Directory traversal vulnerability in the setuid root helper binary in S-nail (later S-mailx) before 14.8.16 allows local users to write to arbitrary files and consequently gain root privileges via a .. (dot dot) in the randstr argument.","severity":{"version":"3.0","score":7,"vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00976,"percentile":0.62357,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-22","CWE-362"],"published":"2017-03-27T15:00:00Z","modified":"2026-09-01T20:03:48Z","exploits":[{"source":"exploitdb","id":"EDB-47172","title":"S-nail \u003c 14.8.16 - Local Privilege Escalation","type":"local","platform":"multiple","date":"2019-01-13","url":"https://www.exploit-db.com/exploits/47172"}],"fixes":[{"ecosystem":"Debian:12","package":"s-nail","fixed_in":["14.8.16-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"s-nail","fixed_in":["14.8.16-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"s-nail","fixed_in":["14.8.16-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"s-nail","fixed_in":["14.8.6-1ubuntu0.1~esm1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"s-nail","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.8.16-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"s-nail","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.8.16-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"s-nail","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.8.16-1"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"s-nail","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.8.6-1ubuntu0.1~esm1"}]}],"versions":["14.8.5-1","14.8.5-2","14.8.5-3","14.8.5-4","14.8.5-5","14.8.6-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"s-nail","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"14.8.6-1ubuntu0.1~esm1"}]}],"versions":["14.8.5-1","14.8.5-2","14.8.5-3","14.8.5-4","14.8.5-5","14.8.6-1"]}],"products":[{"vendor":"s-nail_project","product":"s-nail"}],"references":[{"url":"http://www.openwall.com/lists/oss-security/2017/02/07/4","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://www.mail-archive.com/s-nail-users%40lists.sourceforge.net/msg00551.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://www.openwall.com/lists/oss-security/2017/01/27/7","tags":["mailing-list","x_refsource_MLIST","x_transferred","Exploit","Mailing List","Third Party Advisory","evidence"]},{"url":"http://www.securityfocus.com/bid/96138","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-5899"},{"url":"https://www.mail-archive.com/s-nail-users@lists.sourceforge.net/msg00551.html","tags":["report"]},{"url":"https://github.com/advisories/GHSA-42jr-32cj-2c5c"},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-5899","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2017-5899","tags":["report"]},{"url":"https://git.sdaoden.eu/cgit/s-nail.git/commit/?id=f797c27efecad45af191c518b7f87fda32ada160","tags":["report"]},{"url":"https://git.sdaoden.eu/cgit/s-nail.git/commit/?id=f2699449b66dd702a98925bd1b11153a6f7294bf","tags":["report"]},{"url":"https://www.openwall.com/lists/oss-security/2017/01/27/7","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-5899","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4820-1","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2017-5899","description":"Directory traversal vulnerability in the setuid root helper binary in S-nail (later S-mailx) before 14.8.16 allows local users to write to arbitrary files and consequently gain root privileges via a .. (dot dot) in the randstr argument.","status":"published","published":"2017-03-27T15:00:00Z","modified":"2024-08-05T15:11:49.048Z","updated_at":"2026-11-02T14:33:12.599234Z"}],"euvd":[{"id":"EUVD-2017-14974","description":"Directory traversal vulnerability in the setuid root helper binary in S-nail (later S-mailx) before 14.8.16 allows local users to write to arbitrary files and consequently gain root privileges via a .. (dot dot) in the randstr argument.","status":"published","published":"2017-03-27T15:00:00Z","modified":"2024-08-05T15:11:49Z","updated_at":"2026-11-03T02:39:13.965943Z"}],"ghsa":[{"id":"GHSA-42jr-32cj-2c5c","title":"Directory traversal vulnerability in the setuid root helper binary in S-nail (later S-mailx)...","description":"Directory traversal vulnerability in the setuid root helper binary in S-nail (later S-mailx) before 14.8.16 allows local users to write to arbitrary files and consequently gain root privileges via a .. (dot dot) in the randstr argument.","status":"published","published":"2022-05-17T02:52:23Z","modified":"2025-04-20T03:35:54Z","cvss":[{"version":"3.0","score":7,"vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:01:43.480751Z"}],"nvd":[{"id":"CVE-2017-5899","description":"Directory traversal vulnerability in the setuid root helper binary in S-nail (later S-mailx) before 14.8.16 allows local users to write to arbitrary files and consequently gain root privileges via a .. (dot dot) in the randstr argument.","status":"published","published":"2017-03-27T15:59:00.497Z","modified":"2026-06-17T01:21:24.287Z","cvss":[{"version":"3.0","score":7,"vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.9,"vector":"AV:L/AC:M/Au:N/C:C/I:C/A:C","level":"medium","assessor":"primary"}],"cwes":["CWE-22","CWE-362"],"updated_at":"2026-11-02T14:03:44.275273Z"}],"osv":[{"id":"CVE-2017-5899","description":"Directory traversal vulnerability in the setuid root helper binary in S-nail (later S-mailx) before 14.8.16 allows local users to write to arbitrary files and consequently gain root privileges via a .. (dot dot) in the randstr argument.","status":"published","published":"2017-03-27T15:59:00.497Z","modified":"2026-03-14T09:23:04.832337Z","cvss":[{"version":"3.0","score":7,"vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:06.029968Z"},{"id":"DEBIAN-CVE-2017-5899","description":"Directory traversal vulnerability in the setuid root helper binary in S-nail (later S-mailx) before 14.8.16 allows local users to write to arbitrary files and consequently gain root privileges via a .. (dot dot) in the randstr argument.","status":"published","published":"2017-03-27T15:59:00.497Z","modified":"2026-09-01T20:03:48.975534038Z","cvss":[{"version":"3.0","score":7,"vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:29.412243Z"},{"id":"UBUNTU-CVE-2017-5899","description":"Directory traversal vulnerability in the setuid root helper binary in S-nail (later S-mailx) before 14.8.16 allows local users to write to arbitrary files and consequently gain root privileges via a .. (dot dot) in the randstr argument.","status":"published","published":"2017-03-27T15:59:00Z","modified":"2026-02-04T03:35:46.439285Z","cvss":[{"version":"3.0","score":7,"vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:15.388065Z"},{"id":"USN-4820-1","title":"s-nail vulnerability","description":"It was discovered that S-nail incorrectly handled paths. An attacker could\npossible use this issue to write arbitrary files and escalate privileges.","status":"published","published":"2021-03-15T21:57:21Z","modified":"2026-06-25T13:30:29.518883653Z","updated_at":"2026-11-02T16:58:15.159055Z"}]}}
