{"id":"MGASA-2021-0042","summary":"Updated sudo packages fix security vulnerabilities","details":"The sudoedit personality of Sudo before 1.9.5 may allow a local unprivileged\nuser to perform arbitrary directory-existence tests by winning a sudo_edit.c\nrace condition in replacing a user-controlled directory by a symlink to an\narbitrary path. (CVE-2021-23239).\n\nselinux_edit_copy_tfiles in sudoedit in Sudo before 1.9.5 allows a local\nunprivileged user to gain file ownership and escalate privileges by replacing\na temporary file with a symlink to an arbitrary file target. This affects\nSELinux RBAC support in permissive mode. Machines without SELinux are not\nvulnerable. (CVE-2021-23240).\n","modified":"2026-04-16T04:43:05.364588475Z","published":"2021-01-17T16:07:01Z","upstream":["CVE-2021-23239","CVE-2021-23240"],"references":[{"type":"ADVISORY","url":"https://advisories.mageia.org/MGASA-2021-0042.html"},{"type":"REPORT","url":"https://bugs.mageia.org/show_bug.cgi?id=28067"},{"type":"WEB","url":"https://www.openwall.com/lists/oss-security/2021/01/11/2"},{"type":"WEB","url":"https://www.sudo.ws/stable.html"}],"affected":[{"package":{"name":"sudo","ecosystem":"Mageia:7","purl":"pkg:rpm/mageia/sudo?arch=source&distro=mageia-7"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.9.5-1.mga7"}]}],"ecosystem_specific":{"section":"core"},"database_specific":{"source":"https://advisories.mageia.org/MGASA-2021-0042.json"}}],"schema_version":"1.7.5","credits":[{"name":"Mageia","contact":["https://wiki.mageia.org/en/Packages_Security_Team"],"type":"COORDINATOR"}]}