{ "CVE_data_meta": { "ASSIGNER": "cve@mitre.org", "ID": "CVE-2023-22809", "STATE": "PUBLIC" }, "affects": { "vendor": { "vendor_data": [ { "product": { "product_data": [ { "product_name": "n/a", "version": { "version_data": [ { "version_value": "n/a" } ] } } ] }, "vendor_name": "n/a" } ] } }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", "value": "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." } ] }, "problemtype": { "problemtype_data": [ { "description": [ { "lang": "eng", "value": "n/a" } ] } ] }, "references": { "reference_data": [ { "refsource": "MISC", "name": "https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf", "url": "https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf" }, { "refsource": "CONFIRM", "name": "https://www.sudo.ws/security/advisories/sudoedit_any/", "url": "https://www.sudo.ws/security/advisories/sudoedit_any/" }, { "refsource": "MLIST", "name": "[debian-lts-announce] 20230118 [SECURITY] [DLA 3272-1] sudo security update", "url": "https://lists.debian.org/debian-lts-announce/2023/01/msg00012.html" }, { "refsource": "DEBIAN", "name": "DSA-5321", "url": "https://www.debian.org/security/2023/dsa-5321" }, { "refsource": "MLIST", "name": "[oss-security] 20230119 CVE-2023-22809: Sudoedit can edit arbitrary files", "url": "http://www.openwall.com/lists/oss-security/2023/01/19/1" }, { "refsource": "FEDORA", "name": "FEDORA-2023-9078f609e6", "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/" }, { "refsource": "CONFIRM", "name": "https://security.netapp.com/advisory/ntap-20230127-0015/", "url": "https://security.netapp.com/advisory/ntap-20230127-0015/" }, { "refsource": "FEDORA", "name": "FEDORA-2023-298c136eee", "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/" }, { "refsource": "MISC", "name": "http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html", "url": "http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html" }, { "refsource": "GENTOO", "name": "GLSA-202305-12", "url": "https://security.gentoo.org/glsa/202305-12" }, { "refsource": "CONFIRM", "name": "https://support.apple.com/kb/HT213758", "url": "https://support.apple.com/kb/HT213758" }, { "refsource": "MISC", "name": "http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html", "url": "http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html" }, { "refsource": "FULLDISC", "name": "20230817 KL-001-2023-003: Cisco ThousandEyes Enterprise Agent Virtual Appliance Arbitrary File Modification via sudoedit", "url": "http://seclists.org/fulldisclosure/2023/Aug/21" }, { "refsource": "MISC", "name": "http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html", "url": "http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html" } ] } }