Description

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.

INFO

Published Date :

Jan. 18, 2023, 5:15 p.m.

Last Modified :

Nov. 21, 2024, 7:45 a.m.

Remotely Exploitable :

No

Impact Score :

5.9

Exploitability Score :

1.8
Public PoC/Exploit Available at Github

CVE-2023-22809 has a 39 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2023-22809 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Fedoraproject fedora
1 Debian debian_linux
1 Apple macos
1 Sudo_project sudo
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2023-22809.

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

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

oscp notes

Updated: 4 days, 14 hours ago
0 stars 0 fork 0 watcher
Born at : Dec. 9, 2024, 6:26 p.m. This repo has been linked 66 different CVEs too.

A curated collection of Proof of Concept (PoC) tools, scripts, and techniques designed for red team operations, penetration testing, and cybersecurity research. This repository focuses on providing practical resources for exploring vulnerabilities

attack cybersecurity exp hw penetration-testing poc red-team security-tools vulnerability-poc

Updated: 2 weeks, 4 days ago
1 stars 2 fork 2 watcher
Born at : Nov. 17, 2024, 11:53 a.m. This repo has been linked 414 different CVEs too.

This repository is designed to provide a comprehensive collection of study materials, notes, and resources for the Offensive Security Certified Professional (OSCP) exam. It covers all key topics from basic to advanced, helping aspiring penetration testers to prepare efficiently for the exam.

cybersecurity hacking oscp oscp-guide oscp-journey oscp-prep

Updated: 1 month, 3 weeks ago
2 stars 0 fork 0 watcher
Born at : Oct. 4, 2024, 4:43 p.m. This repo has been linked 75 different CVEs too.

None

Python C Shell PHP PowerShell ASP.NET

Updated: 2 months ago
0 stars 0 fork 0 watcher
Born at : Oct. 1, 2024, 2:21 p.m. This repo has been linked 66 different CVEs too.

这是一个每天同步Vulnerability-Wiki中docs-base中内容的项目

HTML

Updated: 1 month, 1 week ago
0 stars 0 fork 0 watcher
Born at : Sept. 20, 2024, 3:27 a.m. This repo has been linked 210 different CVEs too.

None

Python Shell

Updated: 3 months, 2 weeks ago
1 stars 0 fork 0 watcher
Born at : Aug. 28, 2024, 2:22 p.m. This repo has been linked 1 different CVEs too.

Sudo Privilege Escalation: CVE-2023-22809 Simulation This project simulates the Sudo privilege escalation vulnerability (CVE-2023-22809) to demonstrate how unauthorized root access can be gained. It involves identifying and exploiting this vulnerability in a controlled environment using Parrot OS, the Sudo command, and Bash scripting.

Shell

Updated: 3 months, 3 weeks ago
0 stars 2 fork 2 watcher
Born at : Aug. 26, 2024, 6:27 a.m. This repo has been linked 1 different CVEs too.

None

Python

Updated: 4 months, 1 week ago
0 stars 0 fork 0 watcher
Born at : Aug. 14, 2024, 7:48 a.m. This repo has been linked 1 different CVEs too.

OSCP and stuffs

Updated: 4 months ago
1 stars 0 fork 0 watcher
Born at : April 19, 2024, 8:18 p.m. This repo has been linked 63 different CVEs too.

None

Updated: 8 months, 1 week ago
0 stars 0 fork 0 watcher
Born at : April 13, 2024, 7:45 a.m. This repo has been linked 16 different CVEs too.

None

Python C Shell

Updated: 5 months, 1 week ago
1 stars 0 fork 0 watcher
Born at : March 29, 2024, 5:29 a.m. This repo has been linked 62 different CVEs too.

OffSec Certified Professional Certification (OSCP).

oscp oscp-cheatsheet oscp-guide oscp-journey oscp-prep oscp-tools offsec-certified-professional-certification offensive-security offensivesecurity awesome-list awesome-lists cheatsheet offensive-ops

Updated: 9 months, 2 weeks ago
1 stars 1 fork 1 watcher
Born at : March 5, 2024, 9:21 a.m. This repo has been linked 61 different CVEs too.

Oscp-notes

Updated: 4 months ago
1 stars 0 fork 0 watcher
Born at : March 3, 2024, 5:12 a.m. This repo has been linked 61 different CVEs too.

None

CSS HTML JavaScript

Updated: 10 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : Feb. 2, 2024, 2:11 p.m. This repo has been linked 494 different CVEs too.

None

Python C Shell

Updated: 11 months, 2 weeks ago
0 stars 0 fork 0 watcher
Born at : Jan. 7, 2024, 10:22 a.m. This repo has been linked 61 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-22809 vulnerability anywhere in the article.

  • Kaspersky
Exploits and vulnerabilities in Q3 2024

Q3 2024 saw multiple vulnerabilities discovered in Windows and Linux subsystems that are not standard for cyberattacks. This is because operating system developers have been releasing new security mit ... Read more

Published Date: Dec 06, 2024 (2 weeks, 2 days ago)

The following table lists the changes that have been made to the CVE-2023-22809 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html
    Added Reference http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html
    Added Reference http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html
    Added Reference http://seclists.org/fulldisclosure/2023/Aug/21
    Added Reference http://www.openwall.com/lists/oss-security/2023/01/19/1
    Added Reference https://lists.debian.org/debian-lts-announce/2023/01/msg00012.html
    Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/
    Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/
    Added Reference https://security.gentoo.org/glsa/202305-12
    Added Reference https://security.netapp.com/advisory/ntap-20230127-0015/
    Added Reference https://support.apple.com/kb/HT213758
    Added Reference https://www.debian.org/security/2023/dsa-5321
    Added Reference https://www.sudo.ws/security/advisories/sudoedit_any/
    Added Reference https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Nov. 17, 2023

    Action Type Old Value New Value
    Changed Reference Type http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html No Types Assigned http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html Third Party Advisory, VDB Entry
    Changed Reference Type http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html No Types Assigned http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html Third Party Advisory, VDB Entry
    Changed Reference Type http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html No Types Assigned http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html Third Party Advisory, VDB Entry
    Changed Reference Type http://seclists.org/fulldisclosure/2023/Aug/21 No Types Assigned http://seclists.org/fulldisclosure/2023/Aug/21 Mailing List, Third Party Advisory
    Changed Reference Type https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/ No Types Assigned https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/ Mailing List
    Changed Reference Type https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/ No Types Assigned https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/ Mailing List
    Changed Reference Type https://security.gentoo.org/glsa/202305-12 No Types Assigned https://security.gentoo.org/glsa/202305-12 Third Party Advisory
    Changed Reference Type https://support.apple.com/kb/HT213758 No Types Assigned https://support.apple.com/kb/HT213758 Third Party Advisory
    Changed CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* OR *cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:* versions up to (excluding) 13.4
  • CVE Modified by [email protected]

    Nov. 07, 2023

    Action Type Old Value New Value
    Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/ [No types assigned]
    Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/ [No types assigned]
    Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/
    Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/
  • CVE Modified by [email protected]

    Sep. 06, 2023

    Action Type Old Value New Value
    Added Reference https://support.apple.com/kb/HT213758 [No Types Assigned]
  • CVE Modified by [email protected]

    Aug. 18, 2023

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html [No Types Assigned]
  • CVE Modified by [email protected]

    Aug. 17, 2023

    Action Type Old Value New Value
    Added Reference http://seclists.org/fulldisclosure/2023/Aug/21 [No Types Assigned]
  • CVE Modified by [email protected]

    May. 23, 2023

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html [No Types Assigned]
  • CVE Modified by [email protected]

    May. 03, 2023

    Action Type Old Value New Value
    Added Reference https://security.gentoo.org/glsa/202305-12 [No Types Assigned]
  • CVE Modified by [email protected]

    Apr. 03, 2023

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html [No Types Assigned]
  • CVE Modified by [email protected]

    Feb. 05, 2023

    Action Type Old Value New Value
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/ [No Types Assigned]
  • Modified Analysis by [email protected]

    Jan. 31, 2023

    Action Type Old Value New Value
    Changed Reference Type https://security.netapp.com/advisory/ntap-20230127-0015/ No Types Assigned https://security.netapp.com/advisory/ntap-20230127-0015/ Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* *cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Jan. 27, 2023

    Action Type Old Value New Value
    Added Reference https://security.netapp.com/advisory/ntap-20230127-0015/ [No Types Assigned]
  • Initial Analysis by [email protected]

    Jan. 26, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type http://www.openwall.com/lists/oss-security/2023/01/19/1 No Types Assigned http://www.openwall.com/lists/oss-security/2023/01/19/1 Exploit, Mailing List, Third Party Advisory
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2023/01/msg00012.html No Types Assigned https://lists.debian.org/debian-lts-announce/2023/01/msg00012.html Mailing List, Third Party Advisory
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/ Mailing List, Third Party Advisory
    Changed Reference Type https://www.debian.org/security/2023/dsa-5321 No Types Assigned https://www.debian.org/security/2023/dsa-5321 Third Party Advisory
    Changed Reference Type https://www.sudo.ws/security/advisories/sudoedit_any/ No Types Assigned https://www.sudo.ws/security/advisories/sudoedit_any/ Exploit, Mitigation, Vendor Advisory
    Changed Reference Type https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf No Types Assigned https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf Exploit, Mitigation, Technical Description, Third Party Advisory
    Added CWE NIST CWE-269
    Added CPE Configuration OR *cpe:2.3:a:sudo_project:sudo:*:*:*:*:*:*:*:* versions from (including) 1.8.0 up to (excluding) 1.9.12 *cpe:2.3:a:sudo_project:sudo:1.9.12:-:*:*:*:*:*:* *cpe:2.3:a:sudo_project:sudo:1.9.12:p1:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Jan. 22, 2023

    Action Type Old Value New Value
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/ [No Types Assigned]
  • CVE Modified by [email protected]

    Jan. 19, 2023

    Action Type Old Value New Value
    Added Reference http://www.openwall.com/lists/oss-security/2023/01/19/1 [No Types Assigned]
  • CVE Modified by [email protected]

    Jan. 19, 2023

    Action Type Old Value New Value
    Added Reference https://www.debian.org/security/2023/dsa-5321 [No Types Assigned]
  • CVE Modified by [email protected]

    Jan. 18, 2023

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2023/01/msg00012.html [No Types Assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-22809 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2023-22809 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.09 }} 0.04%

score

0.39389

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability