{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "state": "PUBLISHED",
        "cveId": "CVE-2023-22809",
        "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
        "assignerShortName": "mitre",
        "dateUpdated": "2024-08-02T10:20:30.856Z",
        "dateReserved": "2023-01-06T00:00:00",
        "datePublished": "2023-01-18T00:00:00"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca",
                "shortName": "mitre",
                "dateUpdated": "2023-09-06T07:06:47.365601"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "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."
                }
            ],
            "affected": [
                {
                    "vendor": "n/a",
                    "product": "n/a",
                    "versions": [
                        {
                            "version": "n/a",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf"
                },
                {
                    "url": "https://www.sudo.ws/security/advisories/sudoedit_any/"
                },
                {
                    "name": "[debian-lts-announce] 20230118 [SECURITY] [DLA 3272-1] sudo security update",
                    "tags": [
                        "mailing-list"
                    ],
                    "url": "https://lists.debian.org/debian-lts-announce/2023/01/msg00012.html"
                },
                {
                    "name": "DSA-5321",
                    "tags": [
                        "vendor-advisory"
                    ],
                    "url": "https://www.debian.org/security/2023/dsa-5321"
                },
                {
                    "name": "[oss-security] 20230119 CVE-2023-22809: Sudoedit can edit arbitrary files",
                    "tags": [
                        "mailing-list"
                    ],
                    "url": "http://www.openwall.com/lists/oss-security/2023/01/19/1"
                },
                {
                    "name": "FEDORA-2023-9078f609e6",
                    "tags": [
                        "vendor-advisory"
                    ],
                    "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/"
                },
                {
                    "url": "https://security.netapp.com/advisory/ntap-20230127-0015/"
                },
                {
                    "name": "FEDORA-2023-298c136eee",
                    "tags": [
                        "vendor-advisory"
                    ],
                    "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/"
                },
                {
                    "url": "http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html"
                },
                {
                    "name": "GLSA-202305-12",
                    "tags": [
                        "vendor-advisory"
                    ],
                    "url": "https://security.gentoo.org/glsa/202305-12"
                },
                {
                    "url": "https://support.apple.com/kb/HT213758"
                },
                {
                    "url": "http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html"
                },
                {
                    "name": "20230817 KL-001-2023-003: Cisco ThousandEyes Enterprise Agent Virtual Appliance Arbitrary File Modification via sudoedit",
                    "tags": [
                        "mailing-list"
                    ],
                    "url": "http://seclists.org/fulldisclosure/2023/Aug/21"
                },
                {
                    "url": "http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "text",
                            "lang": "en",
                            "description": "n/a"
                        }
                    ]
                }
            ]
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T10:20:30.856Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://www.synacktiv.com/sites/default/files/2023-01/sudo-CVE-2023-22809.pdf",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://www.sudo.ws/security/advisories/sudoedit_any/",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "name": "[debian-lts-announce] 20230118 [SECURITY] [DLA 3272-1] sudo security update",
                        "tags": [
                            "mailing-list",
                            "x_transferred"
                        ],
                        "url": "https://lists.debian.org/debian-lts-announce/2023/01/msg00012.html"
                    },
                    {
                        "name": "DSA-5321",
                        "tags": [
                            "vendor-advisory",
                            "x_transferred"
                        ],
                        "url": "https://www.debian.org/security/2023/dsa-5321"
                    },
                    {
                        "name": "[oss-security] 20230119 CVE-2023-22809: Sudoedit can edit arbitrary files",
                        "tags": [
                            "mailing-list",
                            "x_transferred"
                        ],
                        "url": "http://www.openwall.com/lists/oss-security/2023/01/19/1"
                    },
                    {
                        "name": "FEDORA-2023-9078f609e6",
                        "tags": [
                            "vendor-advisory",
                            "x_transferred"
                        ],
                        "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2QDGFCGAV5QRJCE6IXRXIS4XJHS57DDH/"
                    },
                    {
                        "url": "https://security.netapp.com/advisory/ntap-20230127-0015/",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "name": "FEDORA-2023-298c136eee",
                        "tags": [
                            "vendor-advisory",
                            "x_transferred"
                        ],
                        "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G4YNBTTKTRT2ME3NTSXAPTOKYUE47XHZ/"
                    },
                    {
                        "url": "http://packetstormsecurity.com/files/171644/sudo-1.9.12p1-Privilege-Escalation.html",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "name": "GLSA-202305-12",
                        "tags": [
                            "vendor-advisory",
                            "x_transferred"
                        ],
                        "url": "https://security.gentoo.org/glsa/202305-12"
                    },
                    {
                        "url": "https://support.apple.com/kb/HT213758",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "http://packetstormsecurity.com/files/172509/Sudoedit-Extra-Arguments-Privilege-Escalation.html",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "name": "20230817 KL-001-2023-003: Cisco ThousandEyes Enterprise Agent Virtual Appliance Arbitrary File Modification via sudoedit",
                        "tags": [
                            "mailing-list",
                            "x_transferred"
                        ],
                        "url": "http://seclists.org/fulldisclosure/2023/Aug/21"
                    },
                    {
                        "url": "http://packetstormsecurity.com/files/174234/Cisco-ThousandEyes-Enterprise-Agent-Virtual-Appliance-Arbitrary-File-Modification.html",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}