{
    "CVE_data_meta": {
        "ASSIGNER": "cve@mitre.org",
        "ID": "CVE-2021-3156",
        "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": "Sudo before 1.9.5p2 contains an off-by-one error that can result in a heap-based buffer overflow, which allows privilege escalation to root via \"sudoedit -s\" and a command-line argument that ends with a single backslash character."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "n/a"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "refsource": "MLIST",
                "name": "[debian-lts-announce] 20210126 [SECURITY] [DLA 2534-1] sudo security update",
                "url": "https://lists.debian.org/debian-lts-announce/2021/01/msg00022.html"
            },
            {
                "refsource": "FULLDISC",
                "name": "20210126 Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)",
                "url": "http://seclists.org/fulldisclosure/2021/Jan/79"
            },
            {
                "refsource": "MLIST",
                "name": "[oss-security] 20210126 Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)",
                "url": "http://www.openwall.com/lists/oss-security/2021/01/26/3"
            },
            {
                "refsource": "GENTOO",
                "name": "GLSA-202101-33",
                "url": "https://security.gentoo.org/glsa/202101-33"
            },
            {
                "refsource": "DEBIAN",
                "name": "DSA-4839",
                "url": "https://www.debian.org/security/2021/dsa-4839"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2021-2cb63d912a",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LHXK6ICO5AYLGFK2TAX5MZKUXTUKWOJY/"
            },
            {
                "refsource": "FEDORA",
                "name": "FEDORA-2021-8840cbdccd",
                "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CALA5FTXIQBRRYUA2ZQNJXB6OQMAXEII/"
            },
            {
                "refsource": "MLIST",
                "name": "[oss-security] 20210127 Re: Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)",
                "url": "http://www.openwall.com/lists/oss-security/2021/01/27/1"
            },
            {
                "refsource": "MLIST",
                "name": "[oss-security] 20210127 Re: Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)",
                "url": "http://www.openwall.com/lists/oss-security/2021/01/27/2"
            },
            {
                "refsource": "CISCO",
                "name": "20210129 Sudo Privilege Escalation Vulnerability Affecting Cisco Products: January 2021",
                "url": "https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-sudo-privesc-jan2021-qnYQfcM"
            },
            {
                "refsource": "CERT-VN",
                "name": "VU#794544",
                "url": "https://www.kb.cert.org/vuls/id/794544"
            },
            {
                "refsource": "FULLDISC",
                "name": "20210211 APPLE-SA-2021-02-09-1 macOS Big Sur 11.2.1, macOS Catalina 10.15.7 Supplemental Update, and macOS Mojave 10.14.6 Security Update 2021-002",
                "url": "http://seclists.org/fulldisclosure/2021/Feb/42"
            },
            {
                "refsource": "MLIST",
                "name": "[oss-security] 20210215 Re: sudo: Ineffective NO_ROOT_MAILER and Baron Samedit",
                "url": "http://www.openwall.com/lists/oss-security/2021/02/15/1"
            },
            {
                "url": "https://www.oracle.com//security-alerts/cpujul2021.html",
                "refsource": "MISC",
                "name": "https://www.oracle.com//security-alerts/cpujul2021.html"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://www.sudo.ws/stable.html#1.9.5p2",
                "url": "https://www.sudo.ws/stable.html#1.9.5p2"
            },
            {
                "refsource": "MISC",
                "name": "https://www.openwall.com/lists/oss-security/2021/01/26/3",
                "url": "https://www.openwall.com/lists/oss-security/2021/01/26/3"
            },
            {
                "refsource": "MISC",
                "name": "http://packetstormsecurity.com/files/161160/Sudo-Heap-Based-Buffer-Overflow.html",
                "url": "http://packetstormsecurity.com/files/161160/Sudo-Heap-Based-Buffer-Overflow.html"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://security.netapp.com/advisory/ntap-20210128-0002/",
                "url": "https://security.netapp.com/advisory/ntap-20210128-0002/"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://security.netapp.com/advisory/ntap-20210128-0001/",
                "url": "https://security.netapp.com/advisory/ntap-20210128-0001/"
            },
            {
                "refsource": "MISC",
                "name": "http://packetstormsecurity.com/files/161230/Sudo-Buffer-Overflow-Privilege-Escalation.html",
                "url": "http://packetstormsecurity.com/files/161230/Sudo-Buffer-Overflow-Privilege-Escalation.html"
            },
            {
                "refsource": "MISC",
                "name": "http://packetstormsecurity.com/files/161270/Sudo-1.9.5p1-Buffer-Overflow-Privilege-Escalation.html",
                "url": "http://packetstormsecurity.com/files/161270/Sudo-1.9.5p1-Buffer-Overflow-Privilege-Escalation.html"
            },
            {
                "refsource": "MISC",
                "name": "http://packetstormsecurity.com/files/161293/Sudo-1.8.31p2-1.9.5p1-Buffer-Overflow.html",
                "url": "http://packetstormsecurity.com/files/161293/Sudo-1.8.31p2-1.9.5p1-Buffer-Overflow.html"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://support.apple.com/kb/HT212177",
                "url": "https://support.apple.com/kb/HT212177"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://kc.mcafee.com/corporate/index?page=content&id=SB10348",
                "url": "https://kc.mcafee.com/corporate/index?page=content&id=SB10348"
            },
            {
                "refsource": "MISC",
                "name": "https://www.beyondtrust.com/blog/entry/security-advisory-privilege-management-for-unix-linux-pmul-basic-and-privilege-management-for-mac-pmm-affected-by-sudo-vulnerability",
                "url": "https://www.beyondtrust.com/blog/entry/security-advisory-privilege-management-for-unix-linux-pmul-basic-and-privilege-management-for-mac-pmm-affected-by-sudo-vulnerability"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://www.synology.com/security/advisory/Synology_SA_21_02",
                "url": "https://www.synology.com/security/advisory/Synology_SA_21_02"
            },
            {
                "refsource": "MLIST",
                "name": "[oss-security] 20210914 Re: Oracle Solaris membership in the distros list",
                "url": "http://www.openwall.com/lists/oss-security/2021/09/14/2"
            },
            {
                "url": "https://www.oracle.com/security-alerts/cpuoct2021.html",
                "refsource": "MISC",
                "name": "https://www.oracle.com/security-alerts/cpuoct2021.html"
            },
            {
                "url": "https://www.oracle.com/security-alerts/cpuapr2022.html",
                "refsource": "MISC",
                "name": "https://www.oracle.com/security-alerts/cpuapr2022.html"
            },
            {
                "refsource": "MLIST",
                "name": "[oss-security] 20240130 Re: CVE-2023-6246: Heap-based buffer overflow in the glibc's syslog()",
                "url": "http://www.openwall.com/lists/oss-security/2024/01/30/8"
            },
            {
                "refsource": "MLIST",
                "name": "[oss-security] 20240130 CVE-2023-6246: Heap-based buffer overflow in the glibc's syslog()",
                "url": "http://www.openwall.com/lists/oss-security/2024/01/30/6"
            },
            {
                "refsource": "MISC",
                "name": "http://packetstormsecurity.com/files/176932/glibc-syslog-Heap-Based-Buffer-Overflow.html",
                "url": "http://packetstormsecurity.com/files/176932/glibc-syslog-Heap-Based-Buffer-Overflow.html"
            },
            {
                "refsource": "FULLDISC",
                "name": "20240204 CVE-2023-6246: Heap-based buffer overflow in the glibc's syslog()",
                "url": "http://seclists.org/fulldisclosure/2024/Feb/3"
            },
            {
                "refsource": "MISC",
                "name": "https://www.vicarius.io/vsociety/posts/sudoedit-pwned-cve-2021-3156",
                "url": "https://www.vicarius.io/vsociety/posts/sudoedit-pwned-cve-2021-3156"
            }
        ]
    }
}