{"answers":{"affected":"It affects 4 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-22809 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2023-22809 is a high-severity vulnerability in Apple Macos, published on 18 Jan 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-22809 and fix it if it is affected.\n\nWhat it is: CVE-2023-22809 is a high-severity vulnerability in Apple Macos, published on 18 Jan 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-22809 exists.\n\nAffected product: Apple Macos. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-22809/ (Markdown: https://insights.sbomify.com/CVE-2023-22809/index.md)","id":"CVE-2023-22809","markdown":"https://insights.sbomify.com/CVE-2023-22809/index.md","name":"CVE-2023-22809","record":{"aliases":["ALPINE-CVE-2023-22809","ALSA-2023:0282","ALSA-2023:0284","AZL-13030","CLSA-2023-1675984342","CLSA-2023-1675984682","CLSA-2023-1675985375","CLSA-2023-1675985571","CLSA-2023-1675986271","DEBIAN-CVE-2023-22809","DLA-3272-1","DSA-5321-1","GHSA-3vwp-294x-6v9c","MGASA-2023-0025","OESA-2023-1049","RHSA-2023:0280","RHSA-2023:0281","RHSA-2023:0282","RHSA-2023:0283","RHSA-2023:0284","RHSA-2023:0287","RHSA-2023:0291","RHSA-2023:0292","RHSA-2023:0293","RHSA-2023:3262","RHSA-2023:3264","RHSA-2023:3276","RLSA-2023:0282","RLSA-2023:0284","SUSE-SU-2023:0100-1","SUSE-SU-2023:0101-1","SUSE-SU-2023:0114-1","SUSE-SU-2023:0115-1","SUSE-SU-2023:0116-1","SUSE-SU-2023:0117-1","UBUNTU-CVE-2023-22809","USN-5811-2","USN-5811-3","openSUSE-SU-2024:12638-1"],"analysis":{"component_type":"operating_system","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Sudo utility","requires_auth":"low_privilege","summary":"A local attacker can escalate privileges by manipulating editor environment variables in sudoedit to append arbitrary files to the processing list.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"macos","vendor":"apple"},{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"sudo","vendor":"sudo_project"}],"cvss":{"score":7.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-269","name":"Improper Privilege Management"}],"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.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:rhel_aus:7.4::server","Red Hat:rhel_aus:7.6::server","Red Hat:rhel_aus:7.7::server","Red Hat:rhel_aus:8.2::baseos","Red Hat:rhel_e4s:7.7::server","Red Hat:rhel_e4s:8.1::baseos","Red Hat:rhel_e4s:8.2::baseos","Red Hat:rhel_els:6","Red Hat:rhel_eus:8.4::baseos","Red Hat:rhel_eus:8.6::baseos","Red Hat:rhel_eus:9.0::appstream","Red Hat:rhel_eus:9.0::baseos","Red Hat:rhel_tus:7.7::server","Red Hat:rhel_tus:8.2::baseos","Rocky Linux:8","Rocky Linux:9","SUSE:Enterprise Storage 6","SUSE:Enterprise Storage 7","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Real Time 15 SP3","SUSE:Linux Enterprise Server 12 SP2-BCL","SUSE:Linux Enterprise Server 12 SP4-LTSS","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP4","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Manager Proxy 4.2","SUSE:Manager Retail Branch Server 4.2","SUSE:Manager Server 4.2","SUSE:OpenStack Cloud 9","SUSE:OpenStack Cloud Crowbar 9","openSUSE:Leap 15.4","openSUSE:Leap Micro 5.2","openSUSE:Leap Micro 5.3","openSUSE:Tumbleweed"],"exploits":{"exploitdb":1,"first_seen":"2023-01-18","github_poc":12,"max_poc_stars":164,"metasploit":1,"nuclei":0,"refs":[{"date":"2023-01-21T15:19:23Z","kind":"github_poc","ref":"https://github.com/n3m1sys/CVE-2023-22809-sudoedit-privesc","stars":164,"title":"A script to automate privilege escalation with CVE-2023-22809 vulnerability"},{"date":"2023-02-22T17:50:03Z","kind":"github_poc","ref":"https://github.com/M4fiaB0y/CVE-2023-22809","stars":6,"title":null},{"date":"2023-04-06T03:11:48Z","kind":"github_poc","ref":"https://github.com/P4x1s/CVE-2023-22809-sudo-POC","stars":6,"title":"CVE-2023-22809 Linux Sudo"},{"date":"2023-07-10T06:38:14Z","kind":"github_poc","ref":"https://github.com/asepsaepdin/CVE-2023-22809","stars":6,"title":null},{"date":"2023-06-20T00:38:08Z","kind":"github_poc","ref":"https://github.com/Chan9Yan9/CVE-2023-22809","stars":2,"title":"Analysis \u0026 Exploit"},{"date":"2023-08-06T06:46:40Z","kind":"github_poc","ref":"https://github.com/Toothless5143/CVE-2023-22809","stars":2,"title":"Running this exploit on a vulnerable system allows a local attacker to gain a root shell on the machine."},{"date":"2024-08-28T14:22:53Z","kind":"github_poc","ref":"https://github.com/D0rDa4aN919/CVE-2023-22809-Exploiter","stars":2,"title":null},{"date":"2025-07-30T09:48:25Z","kind":"github_poc","ref":"https://github.com/Spydomain/CVE-2023-22809-automated-python-exploits","stars":1,"title":"Automates vulnerability check for sudo versions and privilege escalation via sudoedit if exploitable, helping users test and gain root access."}],"tier":"weaponised"},"has_fix":true,"headline":"Privilege escalation in n/a","id":"CVE-2023-22809","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"apple:macos","products":["apple:macos","debian:debian_linux","fedoraproject:fedora"],"type":"privilege_escalation","year":"2023"},"n_packages":104,"n_references":14,"next":{"headline":"SanDisk PrivateAccess Deprecated TLS protocol versions supported","id":"CVE-2023-22812"},"packages":[{"ecosystem":"AlmaLinux:8","fixed":["1.8.29-8.el8_7.1"],"introduced":["0"],"last_affected":[],"package":"sudo","purl":"pkg:rpm/almalinux/sudo","source":"ALSA-2023:0284"},{"ecosystem":"AlmaLinux:9","fixed":["1.9.5p2-7.el9_1.1"],"introduced":["0"],"last_affected":[],"package":"sudo","purl":"pkg:rpm/almalinux/sudo","source":"ALSA-2023:0282"},{"ecosystem":"AlmaLinux:9","fixed":["1.9.5p2-7.el9_1.1"],"introduced":["0"],"last_affected":[],"package":"sudo-python-plugin","purl":"pkg:rpm/almalinux/sudo-python-plugin","source":"ALSA-2023:0282"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.23-10.el7_9.3"],"introduced":["0"],"last_affected":[],"package":"sudo","purl":"pkg:rpm/redhat/sudo","source":"RHSA-2023:0291"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.23-10.el7_9.3"],"introduced":["0"],"last_affected":[],"package":"sudo-debuginfo","purl":"pkg:rpm/redhat/sudo-debuginfo","source":"RHSA-2023:0291"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:1.8.23-10.el7_9.3"],"introduced":["0"],"last_affected":[],"package":"sudo-devel","purl":"pkg:rpm/redhat/sudo-devel","source":"RHSA-2023:0291"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.23-10.el7_9.3"],"introduced":["0"],"last_affected":[],"package":"sudo-debuginfo","purl":"pkg:rpm/redhat/sudo-debuginfo","source":"RHSA-2023:0291"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:1.8.23-10.el7_9.3"],"introduced":["0"],"last_affected":[],"package":"sudo-devel","purl":"pkg:rpm/redhat/sudo-devel","source":"RHSA-2023:0291"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.8.23-10.el7_9.3"],"introduced":["0"],"last_affected":[],"package":"sudo","purl":"pkg:rpm/redhat/sudo","source":"RHSA-2023:0291"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.8.23-10.el7_9.3"],"introduced":["0"],"last_affected":[],"package":"sudo-debuginfo","purl":"pkg:rpm/redhat/sudo-debuginfo","source":"RHSA-2023:0291"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:1.8.23-10.el7_9.3"],"introduced":["0"],"last_affected":[],"package":"sudo-devel","purl":"pkg:rpm/redhat/sudo-devel","source":"RHSA-2023:0291"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.8.23-10.el7_9.3"],"introduced":["0"],"last_affected":[],"package":"sudo","purl":"pkg:rpm/redhat/sudo","source":"RHSA-2023:0291"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.8.23-10.el7_9.3"],"introduced":["0"],"last_affected":[],"package":"sudo-debuginfo","purl":"pkg:rpm/redhat/sudo-debuginfo","source":"RHSA-2023:0291"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:1.8.23-10.el7_9.3"],"introduced":["0"],"last_affected":[],"package":"sudo-devel","purl":"pkg:rpm/redhat/sudo-devel","source":"RHSA-2023:0291"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.8.29-8.el8_7.1"],"introduced":["0"],"last_affected":[],"package":"sudo","purl":"pkg:rpm/redhat/sudo","source":"RHSA-2023:0284"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.8.29-8.el8_7.1"],"introduced":["0"],"last_affected":[],"package":"sudo-debuginfo","purl":"pkg:rpm/redhat/sudo-debuginfo","source":"RHSA-2023:0284"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:1.8.29-8.el8_7.1"],"introduced":["0"],"last_affected":[],"package":"sudo-debugsource","purl":"pkg:rpm/redhat/sudo-debugsource","source":"RHSA-2023:0284"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.9.5p2-7.el9_1.1"],"introduced":["0"],"last_affected":[],"package":"sudo-debuginfo","purl":"pkg:rpm/redhat/sudo-debuginfo","source":"RHSA-2023:0282"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.9.5p2-7.el9_1.1"],"introduced":["0"],"last_affected":[],"package":"sudo-debugsource","purl":"pkg:rpm/redhat/sudo-debugsource","source":"RHSA-2023:0282"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.9.5p2-7.el9_1.1"],"introduced":["0"],"last_affected":[],"package":"sudo-python-plugin","purl":"pkg:rpm/redhat/sudo-python-plugin","source":"RHSA-2023:0282"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.9.5p2-7.el9_1.1"],"introduced":["0"],"last_affected":[],"package":"sudo-python-plugin-debuginfo","purl":"pkg:rpm/redhat/sudo-python-plugin-debuginfo","source":"RHSA-2023:0282"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:1.9.5p2-7.el9_1.1"],"introduced":["0"],"last_affected":[],"package":"sudo","purl":"pkg:rpm/redhat/sudo","source":"RHSA-2023:0282"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:1.9.5p2-7.el9_1.1"],"introduced":["0"],"last_affected":[],"package":"sudo-debuginfo","purl":"pkg:rpm/redhat/sudo-debuginfo","source":"RHSA-2023:0282"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:1.9.5p2-7.el9_1.1"],"introduced":["0"],"last_affected":[],"package":"sudo-debugsource","purl":"pkg:rpm/redhat/sudo-debugsource","source":"RHSA-2023:0282"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:1.9.5p2-7.el9_1.1"],"introduced":["0"],"last_affected":[],"package":"sudo-python-plugin-debuginfo","purl":"pkg:rpm/redhat/sudo-python-plugin-debuginfo","source":"RHSA-2023:0282"},{"ecosystem":"Red Hat:rhel_aus:7.4::server","fixed":["0:1.8.19p2-12.el7_4.3"],"introduced":["0"],"last_affected":[],"package":"sudo","purl":"pkg:rpm/redhat/sudo","source":"RHSA-2023:3264"},{"ecosystem":"Red Hat:rhel_aus:7.4::server","fixed":["0:1.8.19p2-12.el7_4.3"],"introduced":["0"],"last_affected":[],"package":"sudo-debuginfo","purl":"pkg:rpm/redhat/sudo-debuginfo","source":"RHSA-2023:3264"},{"ecosystem":"Red Hat:rhel_aus:7.4::server","fixed":["0:1.8.19p2-12.el7_4.3"],"introduced":["0"],"last_affected":[],"package":"sudo-devel","purl":"pkg:rpm/redhat/sudo-devel","source":"RHSA-2023:3264"},{"ecosystem":"Red Hat:rhel_aus:7.6::server","fixed":["0:1.8.23-3.el7_6.3"],"introduced":["0"],"last_affected":[],"package":"sudo","purl":"pkg:rpm/redhat/sudo","source":"RHSA-2023:3262"},{"ecosystem":"Red Hat:rhel_aus:7.6::server","fixed":["0:1.8.23-3.el7_6.3"],"introduced":["0"],"last_affected":[],"package":"sudo-debuginfo","purl":"pkg:rpm/redhat/sudo-debuginfo","source":"RHSA-2023:3262"},{"ecosystem":"Red Hat:rhel_aus:7.6::server","fixed":["0:1.8.23-3.el7_6.3"],"introduced":["0"],"last_affected":[],"package":"sudo-devel","purl":"pkg:rpm/redhat/sudo-devel","source":"RHSA-2023:3262"},{"ecosystem":"Red Hat:rhel_aus:7.7::server","fixed":["0:1.8.23-4.el7_7.4"],"introduced":["0"],"last_affected":[],"package":"sudo","purl":"pkg:rpm/redhat/sudo","source":"RHSA-2023:3276"},{"ecosystem":"Red Hat:rhel_aus:7.7::server","fixed":["0:1.8.23-4.el7_7.4"],"introduced":["0"],"last_affected":[],"package":"sudo-debuginfo","purl":"pkg:rpm/redhat/sudo-debuginfo","source":"RHSA-2023:3276"},{"ecosystem":"Red Hat:rhel_aus:7.7::server","fixed":["0:1.8.23-4.el7_7.4"],"introduced":["0"],"last_affected":[],"package":"sudo-devel","purl":"pkg:rpm/redhat/sudo-devel","source":"RHSA-2023:3276"},{"ecosystem":"Red Hat:rhel_aus:8.2::baseos","fixed":["0:1.8.29-5.el8_2.2"],"introduced":["0"],"last_affected":[],"package":"sudo","purl":"pkg:rpm/redhat/sudo","source":"RHSA-2023:0292"},{"ecosystem":"Red Hat:rhel_aus:8.2::baseos","fixed":["0:1.8.29-5.el8_2.2"],"introduced":["0"],"last_affected":[],"package":"sudo-debuginfo","purl":"pkg:rpm/redhat/sudo-debuginfo","source":"RHSA-2023:0292"},{"ecosystem":"Red Hat:rhel_aus:8.2::baseos","fixed":["0:1.8.29-5.el8_2.2"],"introduced":["0"],"last_affected":[],"package":"sudo-debugsource","purl":"pkg:rpm/redhat/sudo-debugsource","source":"RHSA-2023:0292"},{"ecosystem":"Red Hat:rhel_e4s:7.7::server","fixed":["0:1.8.23-4.el7_7.4"],"introduced":["0"],"last_affected":[],"package":"sudo","purl":"pkg:rpm/redhat/sudo","source":"RHSA-2023:3276"},{"ecosystem":"Red Hat:rhel_e4s:7.7::server","fixed":["0:1.8.23-4.el7_7.4"],"introduced":["0"],"last_affected":[],"package":"sudo-debuginfo","purl":"pkg:rpm/redhat/sudo-debuginfo","source":"RHSA-2023:3276"},{"ecosystem":"Red Hat:rhel_e4s:7.7::server","fixed":["0:1.8.23-4.el7_7.4"],"introduced":["0"],"last_affected":[],"package":"sudo-devel","purl":"pkg:rpm/redhat/sudo-devel","source":"RHSA-2023:3276"}],"prev":{"headline":"Information disclosure in n/a","id":"CVE-2023-22808"},"products":["n/a"],"published":"2023-01-18","related":[{"cvss_score":9.8,"headline":"Apple macOS Improper Authentication","id":"CVE-2026-65400","kev_date_added":"2026-08-18","published":"2026-08-06"},{"cvss_score":10,"headline":"Security feature bypass in macOS","id":"CVE-2024-44146","kev_date_added":null,"published":"2024-09-16"},{"cvss_score":10,"headline":"Security feature bypass in macOS","id":"CVE-2024-44148","kev_date_added":null,"published":"2024-09-16"},{"cvss_score":10,"headline":"Security feature bypass in macOS","id":"CVE-2023-38586","kev_date_added":null,"published":"2023-09-26"},{"cvss_score":10,"headline":"Security feature bypass in macOS","id":"CVE-2023-40455","kev_date_added":null,"published":"2023-09-26"},{"cvss_score":10,"headline":"Other in n/a","id":"CVE-1999-0590","kev_date_added":null,"published":"2000-02-04"},{"cvss_score":9.8,"headline":"Memory corruption in macOS","id":"CVE-2026-84520","kev_date_added":null,"published":"2026-09-14"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-04","vendors":["n/a"]},"summary":"A local attacker can escalate privileges by manipulating editor environment variables in sudoedit to append arbitrary files to the processing list.","url":"https://insights.sbomify.com/CVE-2023-22809/"}