{"id":"UBUNTU-CVE-2017-5899","details":"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.","modified":"2026-11-24T14:52:54.271603079Z","published":"2017-03-27T15:59:00Z","related":["USN-4820-1"],"upstream":["CVE-2017-5899"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-5899"},{"type":"REPORT","url":"https://www.mail-archive.com/s-nail-users@lists.sourceforge.net/msg00551.html"},{"type":"REPORT","url":"https://git.sdaoden.eu/cgit/s-nail.git/commit/?id=f797c27efecad45af191c518b7f87fda32ada160"},{"type":"REPORT","url":"https://git.sdaoden.eu/cgit/s-nail.git/commit/?id=f2699449b66dd702a98925bd1b11153a6f7294bf"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2017/01/27/7"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-5899"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4820-1"}],"affected":[{"package":{"name":"s-nail","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/s-nail?arch=source&distro=esm-apps%2Fxenial"},"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"],"ecosystem_specific":{"binaries":[{"binary_version":"14.8.6-1ubuntu0.1~esm1","binary_name":"heirloom-mailx"},{"binary_version":"14.8.6-1ubuntu0.1~esm1","binary_name":"s-nail"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-5899.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"NVD"},{"type":"Ubuntu","score":"high","source":"SELF"}]}