{"id":"UBUNTU-CVE-2017-6512","details":"Race condition in the rmtree and remove_tree functions in the File-Path module before 2.13 for Perl allows attackers to set the mode on arbitrary files via vectors involving directory-permission loosening logic.","modified":"2026-01-30T02:42:26.227513Z","published":"2017-06-01T00:00:00Z","related":["USN-3625-1","USN-3625-2"],"upstream":["CVE-2017-6512"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-6512"},{"type":"REPORT","url":"http://cpansearch.perl.org/src/JKEENAN/File-Path-2.13/Changes"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3625-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3625-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-6512"}],"affected":[{"package":{"name":"perl","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/perl@5.18.2-2ubuntu1.4?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.18.2-2ubuntu1.4"}]}],"versions":["5.14.2-21build1","5.18.1-4","5.18.1-4build1","5.18.1-5","5.18.2-2","5.18.2-2ubuntu1","5.18.2-2ubuntu1.1","5.18.2-2ubuntu1.3"],"ecosystem_specific":{"binaries":[{"binary_version":"5.18.2-2ubuntu1.4","binary_name":"libcgi-fast-perl"},{"binary_version":"5.18.2-2ubuntu1.4","binary_name":"libperl-dev"},{"binary_version":"5.18.2-2ubuntu1.4","binary_name":"libperl5.18"},{"binary_version":"5.18.2-2ubuntu1.4","binary_name":"perl"},{"binary_version":"5.18.2-2ubuntu1.4","binary_name":"perl-base"},{"binary_version":"5.18.2-2ubuntu1.4","binary_name":"perl-debug"},{"binary_version":"5.18.2-2ubuntu1.4","binary_name":"perl-modules"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-6512.json"}},{"package":{"name":"perl","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/perl@5.22.1-9ubuntu0.3?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.22.1-9ubuntu0.3"}]}],"versions":["5.20.2-6","5.22.1-3","5.22.1-4","5.22.1-5","5.22.1-7","5.22.1-8","5.22.1-9","5.22.1-9ubuntu0.2"],"ecosystem_specific":{"binaries":[{"binary_version":"5.22.1-9ubuntu0.3","binary_name":"libperl-dev"},{"binary_version":"5.22.1-9ubuntu0.3","binary_name":"libperl5.22"},{"binary_version":"5.22.1-9ubuntu0.3","binary_name":"perl"},{"binary_version":"5.22.1-9ubuntu0.3","binary_name":"perl-base"},{"binary_version":"5.22.1-9ubuntu0.3","binary_name":"perl-debug"},{"binary_version":"5.22.1-9ubuntu0.3","binary_name":"perl-modules-5.22"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-6512.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"type":"Ubuntu","score":"low"}]}