{"id":"CVE-2018-6954","details":"systemd-tmpfiles in systemd through 237 mishandles symlinks present in non-terminal path components, which allows local users to obtain ownership of arbitrary files via vectors involving creation of a directory and a file under that directory, and later replacing that directory with a symlink. This occurs even if the fs.protected_symlinks sysctl is turned on.","modified":"2026-08-07T11:48:02.962350654Z","published":"2018-02-13T20:29:00.547Z","related":["CGA-px9r-2m6c-69fp","SUSE-SU-2019:0137-1","SUSE-SU-2019:1265-1","openSUSE-SU-2019:0098-1","openSUSE-SU-2024:11420-1"],"database_specific":{"unresolved_ranges":[{"source":"CPE_STRING","vendor_product":"canonical:ubuntu_linux","cpes":["cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"16.04"},{"last_affected":"16.04"},{"introduced":"18.04"},{"last_affected":"18.04"},{"introduced":"18.10"},{"last_affected":"18.10"}]},{"extracted_events":[{"introduced":"42.3"},{"last_affected":"42.3"}],"source":"CPE_STRING","vendor_product":"opensuse:leap","cpes":["cpe:2.3:o:opensuse:leap:42.3:*:*:*:*:*:*:*"]}]},"references":[{"type":"WEB","url":"https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E"},{"type":"WEB","url":"https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E"},{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00062.html"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3816-1/"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3816-2/"},{"type":"FIX","url":"https://github.com/systemd/systemd/issues/7986"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/systemd/systemd","events":[{"introduced":"0"},{"last_affected":"46659f7deb962f55c728e70597e37c2a3ab6326d"}],"database_specific":{"source":"CPE_RANGE","cpe":"cpe:2.3:a:systemd_project:systemd:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"237"}]}}],"versions":["v237","v236","v235","v234","v233","v232","v231","v230","v229","v228","v227","v226","v225","v224","v223","v222","v221","v219","v220","v218","v217","v216","v215","v214","v213","v212","v211","v210","v209","v208","v207","v206","v205","v204","v203","v202","v201","v200","v199","v198","v197","v196","v195","v194","v193","v192","v191","v190","v189","v188","v187","v186","v185","v184","v183","v44","v43","v42","v41","v40","v39","v38","v37","v36","v35","v34","v33","v32","v31","v30","v29","v28","v27","v26","v25","v24","v23","v22","v21","v20","v19","v18","v17","v16","v15","v14","v13","v12","v11","v10","v9","v8","v7","v6","v5","v4","v3","v2","v1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-6954.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/systemd/systemd-stable","events":[{"introduced":"0"},{"last_affected":"46659f7deb962f55c728e70597e37c2a3ab6326d"}],"database_specific":{"source":"CPE_RANGE","cpe":"cpe:2.3:a:systemd_project:systemd:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"last_affected":"237"}]}}],"versions":["v237","v236","v235","v234","v233","v232","v231","v230","v229","v228","v227","v226","v225","v224","v223","v222","v221","v219","v220","v218","v217","v216","v215","v214","v213","v212","v211","v210","v208","v209","v201","v204","v207","v206","v205","v203","v202","v200","v199","v198","v197","v196","systemd-v196","v195","systemd-v195","v194","systemd-v194","v193","systemd-v193","v192","systemd-v192","v191","systemd-v191","v190","systemd-v190","v189","systemd-v189","v188","systemd-v188","v187","systemd-v187","v186","systemd-v186","v185","systemd-v185","v184","systemd-v184","v183","systemd-v183","v44","systemd-v44","v43","systemd-v43","v42","systemd-v42","v41","systemd-v41","v40","systemd-v40","v39","systemd-v39","v38","systemd-v38","v37","systemd-v37","v36","systemd-v36","v35","systemd-v35","v34","systemd-v34","v33","systemd-v33","v32","systemd-v32","v31","systemd-v31","v30","systemd-v30","v29","systemd-v29","v28","systemd-v28","v27","systemd-v27","v26","systemd-v26","v25","systemd-v25","v24","systemd-v24","v23","systemd-v23","v22","systemd-v22","v21","systemd-v21","v20","systemd-v20","v19","systemd-v19","v18","systemd-v18","v17","systemd-v17","v16","systemd-v16","v15","systemd-v15","v14","systemd-v14","v13","systemd-v13","v12","systemd-v12","v11","systemd-v11","v10","systemd-v10","v9","systemd-v9","v8","systemd-v8","v7","systemd-v7","v6","systemd-v6","v5","systemd-v5","v4","systemd-v4","v3","systemd-v3","v2","systemd-v2","v1","systemd-v1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-6954.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}