{"id":"ALPINE-CVE-2021-23240","details":"selinux_edit_copy_tfiles in sudoedit in Sudo before 1.9.5 allows a local unprivileged user to gain file ownership and escalate privileges by replacing a temporary file with a symlink to an arbitrary file target. This affects SELinux RBAC support in permissive mode. Machines without SELinux are not vulnerable.","modified":"2026-08-27T22:18:01.491797672Z","published":"2021-01-12T09:15:14.107Z","upstream":["CVE-2021-23240"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2021-23240"}],"affected":[{"package":{"name":"sudo","ecosystem":"Alpine:v3.10","purl":"pkg:apk/alpine/sudo?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.9.0"},{"fixed":"1.9.5p2-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-23240.json"}},{"package":{"name":"sudo","ecosystem":"Alpine:v3.11","purl":"pkg:apk/alpine/sudo?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.9.0"},{"fixed":"1.9.5p2-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-23240.json"}},{"package":{"name":"sudo","ecosystem":"Alpine:v3.12","purl":"pkg:apk/alpine/sudo?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.9.0"},{"fixed":"1.9.5-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-23240.json"}},{"package":{"name":"sudo","ecosystem":"Alpine:v3.13","purl":"pkg:apk/alpine/sudo?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.9.0"},{"fixed":"1.9.5-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-23240.json"}},{"package":{"name":"sudo","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/sudo?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.9.0"},{"fixed":"1.9.5-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-23240.json"}},{"package":{"name":"sudo","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/sudo?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.9.0"},{"fixed":"1.9.5-r0"}]}],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-23240.json"}}],"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"}]}