{"id":"CVE-2023-26604","details":"systemd before 247 does not adequately block local privilege escalation for some Sudo configurations, e.g., plausible sudoers files in which the \"systemctl status\" command may be executed. Specifically, systemd does not set LESSSECURE to 1, and thus other programs may be launched from the less program. This presents a substantial security risk when running systemctl from Sudo, because less executes as root when the terminal size is too small to show the complete systemctl output.","modified":"2026-08-12T13:32:29.914736Z","published":"2023-03-03T00:00:00Z","related":["ALSA-2023:3837","CGA-pg4c-gxcv-5737","SUSE-SU-2023:1622-1","SUSE-SU-2023:1776-1","SUSE-SU-2025:02019-1"],"database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/26xxx/CVE-2023-26604.json"},"references":[{"type":"WEB","url":"http://packetstormsecurity.com/files/174130/systemd-246-Local-Root-Privilege-Escalation.html"},{"type":"WEB","url":"https://github.com/systemd/systemd/blob/main/NEWS#L4335-L4340"},{"type":"WEB","url":"https://medium.com/%40zenmoviefornotification/saidov-maxim-cve-2023-26604-c1232a526ba7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/26xxx/CVE-2023-26604.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26604"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20230505-0009/"},{"type":"ARTICLE","url":"https://blog.compass-security.com/2012/10/dangerous-sudoers-entries-part-2-insecure-functionality/"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00032.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/systemd/systemd","events":[{"introduced":"0"},{"fixed":"4d484e14bb9864cef1d124885e625f33bf31e91c"}],"database_specific":{"source":["DESCRIPTION","CPE_RANGE"],"cpe":"cpe:2.3:a:systemd_project:systemd:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"247"},{"fixed":"246.7"}]}},{"type":"GIT","repo":"https://github.com/systemd/systemd-stable","events":[{"introduced":"0"},{"fixed":"599f51fde46875c34875da27de647caa2cd27f2e"}],"database_specific":{"source":"CPE_RANGE","cpe":"cpe:2.3:a:systemd_project:systemd:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"246.7"}]}}],"versions":["v247-rc2","v247-rc1","v246","v246-rc2","v246-rc1","v245","v245-rc2","v245-rc1","v244","v244-rc1","v243","v243-rc2","v243-rc1","v242","v242-rc4","v242-rc3","v242-rc2","v242-rc1","v241","v241-rc2","v241-rc1","v240","v239","v238","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","v246.6","v246.5","v246.4","v246.3","v246.2","v246.1","systemd-v196","systemd-v195","systemd-v194","systemd-v193","systemd-v192","systemd-v191","systemd-v190","systemd-v189","systemd-v188","systemd-v187","systemd-v186","systemd-v185","systemd-v184","systemd-v183","systemd-v44","systemd-v43","systemd-v42","systemd-v41","systemd-v40","systemd-v39","systemd-v38","systemd-v37","systemd-v36","systemd-v35","systemd-v34","systemd-v33","systemd-v32","systemd-v31","systemd-v30","systemd-v29","systemd-v28","systemd-v27","systemd-v26","systemd-v25","systemd-v24","systemd-v23","systemd-v22","systemd-v21","systemd-v20","systemd-v19","systemd-v18","systemd-v17","systemd-v16","systemd-v15","systemd-v14","systemd-v13","systemd-v12","systemd-v11","systemd-v10","systemd-v9","systemd-v8","systemd-v7","systemd-v6","systemd-v5","systemd-v4","systemd-v3","systemd-v2","systemd-v1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-26604.json","vanir_signatures_modified":"2026-08-12T13:32:29Z","vanir_signatures":[{"deprecated":false,"digest":{"line_hashes":["318711030978310331642235974679609360116","307640268728214119927163043456253956765","8967009968766380217906284700898542844","155993720531951557899946112549439870319","22106076470461617867595361251402226545","330196428359369019498190397279613034150"],"threshold":0.9},"id":"CVE-2023-26604-0685c00b","signature_type":"Line","signature_version":"v1","source":"https://github.com/systemd/systemd-stable/commit/599f51fde46875c34875da27de647caa2cd27f2e","target":{"file":"src/shared/generator.c"}},{"target":{"file":"src/shared/generator.c","function":"log_setup_generator"},"deprecated":false,"digest":{"function_hash":"260140710217297298051493159538639007030","length":63},"id":"CVE-2023-26604-7f98207f","signature_type":"Function","signature_version":"v1","source":"https://github.com/systemd/systemd-stable/commit/599f51fde46875c34875da27de647caa2cd27f2e"}]}}],"schema_version":"1.9.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"}]}