Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2023-22809

Summary
Assigner-mitre
Assigner Org ID-8254265b-2729-46b6-b9e3-3dfca2d5bfca
Published At-18 Jan, 2023 | 00:00
Updated At-04 Apr, 2025 | 15:45
Rejected At-
Credits

In Sudo before 1.9.12p2, the sudoedit (aka -e) feature mishandles extra arguments passed in the user-provided environment variables (SUDO_EDITOR, VISUAL, and EDITOR), allowing a local attacker to append arbitrary entries to the list of files to process. This can lead to privilege escalation. Affected versions are 1.8.0 through 1.9.12.p1. The problem exists because a user-specified editor may contain a "--" argument that defeats a protection mechanism, e.g., an EDITOR='vim -- /path/to/extra/file' value.

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
▼Common Vulnerabilities and Exposures (CVE)
cve.org
Assigner:mitre
Assigner Org ID:8254265b-2729-46b6-b9e3-3dfca2d5bfca
Published At:18 Jan, 2023 | 00:00
Updated At:04 Apr, 2025 | 15:45
Rejected At:
▼CVE Numbering Authority (CNA)

In Sudo before 1.9.12p2, the sudoedit (aka -e) feature mishandles extra arguments passed in the user-provided environment variables (SUDO_EDITOR, VISUAL, and EDITOR), allowing a local attacker to append arbitrary entries to the list of files to process. This can lead to privilege escalation. Affected versions are 1.8.0 through 1.9.12.p1. The problem exists because a user-specified editor may contain a "--" argument that defeats a protection mechanism, e.g., an EDITOR='vim -- /path/to/extra/file' value.

Affected Products
Vendor
n/a
Product
n/a
Versions
Affected
  • n/a
Problem Types
TypeCWE IDDescription
textN/An/a
Type: text
CWE ID: N/A
Description: n/a
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf
N/A
https://www.sudo.ws/security/advisories/sudoedit_any/
N/A
https://lists.debian.org/debian-lts-announce/2023/01/msg00012.html
mailing-list
https://www.debian.org/security/2023/dsa-5321
vendor-advisory
http://www.openwall.com/lists/oss-security/2023/01/19/1
mailing-list
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/
vendor-advisory
https://security.netapp.com/advisory/ntap-20230127-0015/
N/A
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/
vendor-advisory
http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html
N/A
https://security.gentoo.org/glsa/202305-12
vendor-advisory
https://support.apple.com/kb/HT213758
N/A
http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html
N/A
http://seclists.org/fulldisclosure/2023/Aug/21
mailing-list
http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html
N/A
Hyperlink: https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf
Resource: N/A
Hyperlink: https://www.sudo.ws/security/advisories/sudoedit_any/
Resource: N/A
Hyperlink: https://lists.debian.org/debian-lts-announce/2023/01/msg00012.html
Resource:
mailing-list
Hyperlink: https://www.debian.org/security/2023/dsa-5321
Resource:
vendor-advisory
Hyperlink: http://www.openwall.com/lists/oss-security/2023/01/19/1
Resource:
mailing-list
Hyperlink: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/
Resource:
vendor-advisory
Hyperlink: https://security.netapp.com/advisory/ntap-20230127-0015/
Resource: N/A
Hyperlink: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/
Resource:
vendor-advisory
Hyperlink: http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html
Resource: N/A
Hyperlink: https://security.gentoo.org/glsa/202305-12
Resource:
vendor-advisory
Hyperlink: https://support.apple.com/kb/HT213758
Resource: N/A
Hyperlink: http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html
Resource: N/A
Hyperlink: http://seclists.org/fulldisclosure/2023/Aug/21
Resource:
mailing-list
Hyperlink: http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html
Resource: N/A
▼Authorized Data Publishers (ADP)
1. CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf
x_transferred
https://www.sudo.ws/security/advisories/sudoedit_any/
x_transferred
https://lists.debian.org/debian-lts-announce/2023/01/msg00012.html
mailing-list
x_transferred
https://www.debian.org/security/2023/dsa-5321
vendor-advisory
x_transferred
http://www.openwall.com/lists/oss-security/2023/01/19/1
mailing-list
x_transferred
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/
vendor-advisory
x_transferred
https://security.netapp.com/advisory/ntap-20230127-0015/
x_transferred
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/
vendor-advisory
x_transferred
http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html
x_transferred
https://security.gentoo.org/glsa/202305-12
vendor-advisory
x_transferred
https://support.apple.com/kb/HT213758
x_transferred
http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html
x_transferred
http://seclists.org/fulldisclosure/2023/Aug/21
mailing-list
x_transferred
http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html
x_transferred
Hyperlink: https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf
Resource:
x_transferred
Hyperlink: https://www.sudo.ws/security/advisories/sudoedit_any/
Resource:
x_transferred
Hyperlink: https://lists.debian.org/debian-lts-announce/2023/01/msg00012.html
Resource:
mailing-list
x_transferred
Hyperlink: https://www.debian.org/security/2023/dsa-5321
Resource:
vendor-advisory
x_transferred
Hyperlink: http://www.openwall.com/lists/oss-security/2023/01/19/1
Resource:
mailing-list
x_transferred
Hyperlink: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/
Resource:
vendor-advisory
x_transferred
Hyperlink: https://security.netapp.com/advisory/ntap-20230127-0015/
Resource:
x_transferred
Hyperlink: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/
Resource:
vendor-advisory
x_transferred
Hyperlink: http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html
Resource:
x_transferred
Hyperlink: https://security.gentoo.org/glsa/202305-12
Resource:
vendor-advisory
x_transferred
Hyperlink: https://support.apple.com/kb/HT213758
Resource:
x_transferred
Hyperlink: http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html
Resource:
x_transferred
Hyperlink: http://seclists.org/fulldisclosure/2023/Aug/21
Resource:
mailing-list
x_transferred
Hyperlink: http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html
Resource:
x_transferred
2. CISA ADP Vulnrichment
Affected Products
Problem Types
TypeCWE IDDescription
CWECWE-269CWE-269 Improper Privilege Management
Type: CWE
CWE ID: CWE-269
Description: CWE-269 Improper Privilege Management
Metrics
VersionBase scoreBase severityVector
3.17.8HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Version: 3.1
Base score: 7.8
Base severity: HIGH
Vector:
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
Information is not available yet
▼National Vulnerability Database (NVD)
nvd.nist.gov
Source:cve@mitre.org
Published At:18 Jan, 2023 | 17:15
Updated At:04 Apr, 2025 | 16:15

In Sudo before 1.9.12p2, the sudoedit (aka -e) feature mishandles extra arguments passed in the user-provided environment variables (SUDO_EDITOR, VISUAL, and EDITOR), allowing a local attacker to append arbitrary entries to the list of files to process. This can lead to privilege escalation. Affected versions are 1.8.0 through 1.9.12.p1. The problem exists because a user-specified editor may contain a "--" argument that defeats a protection mechanism, e.g., an EDITOR='vim -- /path/to/extra/file' value.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Primary3.17.8HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Secondary3.17.8HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Type: Primary
Version: 3.1
Base score: 7.8
Base severity: HIGH
Vector:
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Type: Secondary
Version: 3.1
Base score: 7.8
Base severity: HIGH
Vector:
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CPE Matches

sudo_project
sudo_project
>>sudo>>Versions from 1.8.0(inclusive) to 1.9.12(exclusive)
cpe:2.3:a:sudo_project:sudo:*:*:*:*:*:*:*:*
sudo_project
sudo_project
>>sudo>>1.9.12
cpe:2.3:a:sudo_project:sudo:1.9.12:-:*:*:*:*:*:*
sudo_project
sudo_project
>>sudo>>1.9.12
cpe:2.3:a:sudo_project:sudo:1.9.12:p1:*:*:*:*:*:*
Debian GNU/Linux
debian
>>debian_linux>>10.0
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
Debian GNU/Linux
debian
>>debian_linux>>11.0
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
Fedora Project
fedoraproject
>>fedora>>36
cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
Fedora Project
fedoraproject
>>fedora>>37
cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
Apple Inc.
apple
>>macos>>Versions before 13.4(exclusive)
cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:*
Weaknesses
CWE IDTypeSource
CWE-269Primarynvd@nist.gov
CWE-269Secondary134c704f-9b21-4f2e-91b3-4a467353bcc0
CWE ID: CWE-269
Type: Primary
Source: nvd@nist.gov
CWE ID: CWE-269
Type: Secondary
Source: 134c704f-9b21-4f2e-91b3-4a467353bcc0
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.htmlcve@mitre.org
Third Party Advisory
VDB Entry
http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.htmlcve@mitre.org
Third Party Advisory
VDB Entry
http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.htmlcve@mitre.org
Third Party Advisory
VDB Entry
http://seclists.org/fulldisclosure/2023/Aug/21cve@mitre.org
Mailing List
Third Party Advisory
http://www.openwall.com/lists/oss-security/2023/01/19/1cve@mitre.org
Exploit
Mailing List
Third Party Advisory
https://lists.debian.org/debian-lts-announce/2023/01/msg00012.htmlcve@mitre.org
Mailing List
Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/cve@mitre.org
Mailing List
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/cve@mitre.org
Mailing List
https://security.gentoo.org/glsa/202305-12cve@mitre.org
Third Party Advisory
https://security.netapp.com/advisory/ntap-20230127-0015/cve@mitre.org
Third Party Advisory
https://support.apple.com/kb/HT213758cve@mitre.org
Third Party Advisory
https://www.debian.org/security/2023/dsa-5321cve@mitre.org
Third Party Advisory
https://www.sudo.ws/security/advisories/sudoedit_any/cve@mitre.org
Exploit
Mitigation
Vendor Advisory
https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdfcve@mitre.org
Exploit
Mitigation
Technical Description
Third Party Advisory
http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.htmlaf854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
VDB Entry
http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.htmlaf854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
VDB Entry
http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.htmlaf854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
VDB Entry
http://seclists.org/fulldisclosure/2023/Aug/21af854a3a-2127-422b-91ae-364da2661108
Mailing List
Third Party Advisory
http://www.openwall.com/lists/oss-security/2023/01/19/1af854a3a-2127-422b-91ae-364da2661108
Exploit
Mailing List
Third Party Advisory
https://lists.debian.org/debian-lts-announce/2023/01/msg00012.htmlaf854a3a-2127-422b-91ae-364da2661108
Mailing List
Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/af854a3a-2127-422b-91ae-364da2661108
Mailing List
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/af854a3a-2127-422b-91ae-364da2661108
Mailing List
https://security.gentoo.org/glsa/202305-12af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://security.netapp.com/advisory/ntap-20230127-0015/af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://support.apple.com/kb/HT213758af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://www.debian.org/security/2023/dsa-5321af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
https://www.sudo.ws/security/advisories/sudoedit_any/af854a3a-2127-422b-91ae-364da2661108
Exploit
Mitigation
Vendor Advisory
https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdfaf854a3a-2127-422b-91ae-364da2661108
Exploit
Mitigation
Technical Description
Third Party Advisory
Hyperlink: http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html
Source: cve@mitre.org
Resource:
Third Party Advisory
VDB Entry
Hyperlink: http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html
Source: cve@mitre.org
Resource:
Third Party Advisory
VDB Entry
Hyperlink: http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html
Source: cve@mitre.org
Resource:
Third Party Advisory
VDB Entry
Hyperlink: http://seclists.org/fulldisclosure/2023/Aug/21
Source: cve@mitre.org
Resource:
Mailing List
Third Party Advisory
Hyperlink: http://www.openwall.com/lists/oss-security/2023/01/19/1
Source: cve@mitre.org
Resource:
Exploit
Mailing List
Third Party Advisory
Hyperlink: https://lists.debian.org/debian-lts-announce/2023/01/msg00012.html
Source: cve@mitre.org
Resource:
Mailing List
Third Party Advisory
Hyperlink: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/
Source: cve@mitre.org
Resource:
Mailing List
Hyperlink: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/
Source: cve@mitre.org
Resource:
Mailing List
Hyperlink: https://security.gentoo.org/glsa/202305-12
Source: cve@mitre.org
Resource:
Third Party Advisory
Hyperlink: https://security.netapp.com/advisory/ntap-20230127-0015/
Source: cve@mitre.org
Resource:
Third Party Advisory
Hyperlink: https://support.apple.com/kb/HT213758
Source: cve@mitre.org
Resource:
Third Party Advisory
Hyperlink: https://www.debian.org/security/2023/dsa-5321
Source: cve@mitre.org
Resource:
Third Party Advisory
Hyperlink: https://www.sudo.ws/security/advisories/sudoedit_any/
Source: cve@mitre.org
Resource:
Exploit
Mitigation
Vendor Advisory
Hyperlink: https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf
Source: cve@mitre.org
Resource:
Exploit
Mitigation
Technical Description
Third Party Advisory
Hyperlink: http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Third Party Advisory
VDB Entry
Hyperlink: http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Third Party Advisory
VDB Entry
Hyperlink: http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Third Party Advisory
VDB Entry
Hyperlink: http://seclists.org/fulldisclosure/2023/Aug/21
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Mailing List
Third Party Advisory
Hyperlink: http://www.openwall.com/lists/oss-security/2023/01/19/1
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Exploit
Mailing List
Third Party Advisory
Hyperlink: https://lists.debian.org/debian-lts-announce/2023/01/msg00012.html
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Mailing List
Third Party Advisory
Hyperlink: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Mailing List
Hyperlink: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Mailing List
Hyperlink: https://security.gentoo.org/glsa/202305-12
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Third Party Advisory
Hyperlink: https://security.netapp.com/advisory/ntap-20230127-0015/
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Third Party Advisory
Hyperlink: https://support.apple.com/kb/HT213758
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Third Party Advisory
Hyperlink: https://www.debian.org/security/2023/dsa-5321
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Third Party Advisory
Hyperlink: https://www.sudo.ws/security/advisories/sudoedit_any/
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Exploit
Mitigation
Vendor Advisory
Hyperlink: https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Exploit
Mitigation
Technical Description
Third Party Advisory

Change History

0
Information is not available yet

Similar CVEs

0Records found

Details not found