{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-22809","id":"CVE-2023-22809","title":"In Sudo before 1.9.12p2, the sudoedit (aka -e) feature mishandles extra arguments passed in the user-provided environ…","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 conta","descriptionLong":"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.","published":"2023-01-18T00:00:00.000Z","updated":"2026-10-28T02:30:59.107219060Z","reserved":"2023-01-06T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-269"],"aliases":[],"references":[{"url":"https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf","tags":["x_transferred","Exploit","Mitigation","Technical Description","Third Party Advisory","web"]},{"url":"https://www.sudo.ws/security/advisories/sudoedit_any/","tags":["x_transferred","Exploit","Mitigation","Vendor Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/01/msg00012.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","article"]},{"url":"https://www.debian.org/security/2023/dsa-5321","tags":["vendor-advisory","x_transferred","Third Party Advisory","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2023/01/19/1","tags":["mailing-list","x_transferred","Exploit","Mailing List","Third Party Advisory","article"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/","tags":["vendor-advisory","x_transferred","Mailing List","advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20230127-0015/","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/","tags":["vendor-advisory","x_transferred","Mailing List","advisory"]},{"url":"http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html","tags":["x_transferred","Third Party Advisory","VDB Entry","web"]},{"url":"https://security.gentoo.org/glsa/202305-12","tags":["vendor-advisory","x_transferred","Third Party Advisory","advisory"]},{"url":"https://support.apple.com/kb/HT213758","tags":["x_transferred","Third Party Advisory","web"]},{"url":"http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html","tags":["x_transferred","Third Party Advisory","VDB Entry","web"]},{"url":"http://seclists.org/fulldisclosure/2023/Aug/21","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","article"]},{"url":"http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html","tags":["x_transferred","Third Party Advisory","VDB Entry","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/22xxx/CVE-2023-22809.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22809","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.55367,"epssPercentile":0.99053,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-22809","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-22809","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-22809","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-22809","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["sudo"],"critical":["EPSS 55% with CVSS 7.8"],"attention":null}