CVE-2021-23240
CVE-2021-23240
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 7.8 · High · EPSS 1.1% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
n/a
- Versions
- n/a: Affected
No fix published
sudo Debian:12
- Affected ranges
- ECOSYSTEM: < 1.9.5-1
Update to 1.9.5-1
sudo Debian:13
- Affected ranges
- ECOSYSTEM: < 1.9.5-1
Update to 1.9.5-1
sudo Debian:14
- Affected ranges
- ECOSYSTEM: < 1.9.5-1
Update to 1.9.5-1
sudo Ubuntu:Pro:14.04:LTS
- Versions
- 1.8.6p3-0ubuntu3
- 1.8.8-2ubuntu1
- 1.8.8-2ubuntu2
- 1.8.9p4-1ubuntu1
- 1.8.9p4-1ubuntu2
- 1.8.9p5-1ubuntu1
- 1.8.9p5-1ubuntu1.1
- 1.8.9p5-1ubuntu1.2
- 1.8.9p5-1ubuntu1.3
- 1.8.9p5-1ubuntu1.4
- 1.8.9p5-1ubuntu1.5+esm1
- 1.8.9p5-1ubuntu1.5+esm2
- 1.8.9p5-1ubuntu1.5+esm3
- 1.8.9p5-1ubuntu1.5+esm5
- 1.8.9p5-1ubuntu1.5+esm6
- 1.8.9p5-1ubuntu1.5+esm7
- 1.8.9p5-1ubuntu1.5+esm8
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
sudo Ubuntu:Pro:16.04:LTS
- Versions
- 1.8.12-1ubuntu3
- 1.8.16-0ubuntu1
- 1.8.16-0ubuntu1.1
- 1.8.16-0ubuntu1.2
- 1.8.16-0ubuntu1.3
- 1.8.16-0ubuntu1.4
- 1.8.16-0ubuntu1.5
- 1.8.16-0ubuntu1.6
- 1.8.16-0ubuntu1.7
- 1.8.16-0ubuntu1.8
- 1.8.16-0ubuntu1.9
- 1.8.16-0ubuntu1.10
- 1.8.16-0ubuntu1.10+esm1
- 1.8.16-0ubuntu1.10+esm2
- 1.8.16-0ubuntu1.10+esm3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
sudo Ubuntu:Pro:18.04:LTS
- Versions
- 1.8.20p2-1ubuntu1
- 1.8.21p2-2ubuntu1
- 1.8.21p2-3ubuntu1
- 1.8.21p2-3ubuntu1.1
- 1.8.21p2-3ubuntu1.2
- 1.8.21p2-3ubuntu1.3
- 1.8.21p2-3ubuntu1.4
- 1.8.21p2-3ubuntu1.5
- 1.8.21p2-3ubuntu1.6
- 1.8.21p2-3ubuntu1.6+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
sudo Ubuntu:Pro:20.04:LTS
- Versions
- 1.8.27-1ubuntu4
- 1.8.29-1ubuntu1
- 1.8.31-1ubuntu1
- 1.8.31-1ubuntu1.1
- 1.8.31-1ubuntu1.2
- 1.8.31-1ubuntu1.4
- 1.8.31-1ubuntu1.5
- 1.8.31-1ubuntu1.5+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://bugzilla.suse.com/show_bug.cgi?id=CVE-2021-23240
- https://www.sudo.ws/stable.html#1.9.5
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EE42Y35SMJOLONAIBNYNFC7J44UUZ2Y6/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GMY4VSSBIND7VAYSN6T7XIWJRWG4GBB3/
- https://security.gentoo.org/glsa/202101-33
- https://security.netapp.com/advisory/ntap-20210129-0010/
- https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E
- https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E
- https://nvd.nist.gov/vuln/detail/CVE-2021-23240