sudo up to 1.9.4 sudoedit selinux_edit_copy_tfiles temp file
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.3 | $0-$5k | 0.00 |
Summary
A vulnerability was found in sudo up to 1.9.4 and classified as critical. This affects the function selinux_edit_copy_tfiles of the component sudoedit. Executing a manipulation can lead to temp file.
This vulnerability is handled as CVE-2021-23240. It is possible to launch the attack on the local host. Additionally, an exploit exists.
It is suggested to upgrade the affected component.
Details
A vulnerability classified as critical was found in sudo up to 1.9.4 (Operating System Utility Software). This vulnerability affects the function selinux_edit_copy_tfiles of the component sudoedit. The manipulation with an unknown input leads to a temp file vulnerability. The CWE definition for the vulnerability is CWE-377. Creating and using insecure temporary files can leave application and system data vulnerable to attack. As an impact it is known to affect confidentiality, integrity, and availability.
The weakness was released 01/12/2021. The advisory is available at bugzilla.suse.com. This vulnerability was named CVE-2021-23240. Technical details and also a public exploit are known.
A public exploit has been developed by Rich Mirch and been published 2 weeks after the advisory. It is possible to download the exploit at blog.mirch.io. It is declared as proof-of-concept. The vulnerability scanner Nessus provides a plugin with the ID 236710 (Alibaba Cloud Linux 3 : 0113: sudo (ALINUX3-SA-2022:0113)), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 1.9.5 eliminates this vulnerability. The upgrade is hosted for download at sudo.ws.
The vulnerability is also documented in the vulnerability database at Tenable (236710). If you want to get best quality of vulnerability data, you may have to visit VulDB.
Product
Type
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.5VulDB Meta Temp Score: 6.3
VulDB Base Score: 5.3
VulDB Temp Score: 4.8
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 7.8
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Temp fileCWE: CWE-377
CAPEC: 🔍
ATT&CK: 🔍
Physical: Partially
Local: Yes
Remote: No
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Author: Rich Mirch
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 236710
Nessus Name: Alibaba Cloud Linux 3 : 0113: sudo (ALINUX3-SA-2022:0113)
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Exploit Delay Time: 🔍
Upgrade: sudo 1.9.5
Timeline
01/07/2021 🔍01/12/2021 🔍
01/12/2021 🔍
01/25/2021 🔍
05/16/2025 🔍
Sources
Advisory: bugzilla.suse.comStatus: Confirmed
Confirmation: 🔍
CVE: CVE-2021-23240 (🔍)
GCVE (CVE): GCVE-0-2021-23240
GCVE (VulDB): GCVE-100-167626
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 01/12/2021 14:01Updated: 05/16/2025 20:27
Changes: 01/12/2021 14:01 (40), 01/27/2021 20:13 (7), 02/11/2021 18:20 (6), 02/11/2021 18:22 (18), 05/16/2025 20:27 (19)
Complete: 🔍
Committer: misc
Cache ID: 216::103
If you want to get best quality of vulnerability data, you may have to visit VulDB.
No comments yet. Languages: en.
Please log in to comment.