{
    "id": "CVE-2021-3156",
    "published": "2021-01-26 21:15:12",
    "last_modified": "2026-06-17 04:04:45",
    "cvss_score": "7.8",
    "cvss_severity": "HIGH",
    "cvss_version": "3.1",
    "cvss_vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
    "cwe": "CWE-193",
    "description": "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.",
    "epss_score": "0.99962",
    "epss_percentile": "0.99975",
    "kev": 1,
    "kev_due": "2022-04-27",
    "has_exploit": 1,
    "updated_at": "2026-09-26 18:26:59",
    "priority": {
        "rank": 1,
        "label": "Patch first",
        "why": "On CISA KEV — known exploited in the wild, due 2022-04-27."
    },
    "products": [
        {
            "vendor": "beyondtrust",
            "product": "privilege_management_for_mac"
        },
        {
            "vendor": "beyondtrust",
            "product": "privilege_management_for_unix\\/linux"
        },
        {
            "vendor": "debian",
            "product": "debian_linux"
        },
        {
            "vendor": "fedoraproject",
            "product": "fedora"
        },
        {
            "vendor": "mcafee",
            "product": "web_gateway"
        },
        {
            "vendor": "netapp",
            "product": "active_iq_unified_manager"
        },
        {
            "vendor": "netapp",
            "product": "cloud_backup"
        },
        {
            "vendor": "netapp",
            "product": "hci_management_node"
        },
        {
            "vendor": "netapp",
            "product": "oncommand_unified_manager_core_package"
        },
        {
            "vendor": "netapp",
            "product": "ontap_select_deploy_administration_utility"
        },
        {
            "vendor": "netapp",
            "product": "ontap_tools"
        },
        {
            "vendor": "netapp",
            "product": "solidfire"
        },
        {
            "vendor": "oracle",
            "product": "communications_performance_intelligence_center"
        },
        {
            "vendor": "oracle",
            "product": "micros_compact_workstation_3"
        },
        {
            "vendor": "oracle",
            "product": "micros_compact_workstation_3_firmware"
        },
        {
            "vendor": "oracle",
            "product": "micros_es400"
        },
        {
            "vendor": "oracle",
            "product": "micros_es400_firmware"
        },
        {
            "vendor": "oracle",
            "product": "micros_kitchen_display_system"
        },
        {
            "vendor": "oracle",
            "product": "micros_kitchen_display_system_firmware"
        },
        {
            "vendor": "oracle",
            "product": "micros_workstation_5a"
        },
        {
            "vendor": "oracle",
            "product": "micros_workstation_5a_firmware"
        },
        {
            "vendor": "oracle",
            "product": "micros_workstation_6"
        },
        {
            "vendor": "oracle",
            "product": "micros_workstation_6_firmware"
        },
        {
            "vendor": "oracle",
            "product": "tekelec_platform_distribution"
        },
        {
            "vendor": "sudo_project",
            "product": "sudo"
        },
        {
            "vendor": "synology",
            "product": "diskstation_manager"
        },
        {
            "vendor": "synology",
            "product": "diskstation_manager_unified_controller"
        },
        {
            "vendor": "synology",
            "product": "skynas"
        },
        {
            "vendor": "synology",
            "product": "skynas_firmware"
        },
        {
            "vendor": "synology",
            "product": "vs960hd"
        },
        {
            "vendor": "synology",
            "product": "vs960hd_firmware"
        }
    ],
    "kev_detail": {
        "cve_id": "CVE-2021-3156",
        "date_added": "2022-04-06",
        "due_date": "2022-04-27",
        "vendor": "Sudo",
        "product": "Sudo",
        "name": "Sudo Heap-Based Buffer Overflow Vulnerability",
        "ransomware": 0
    },
    "exploits": [
        {
            "source": "exploit-db",
            "ref_id": "49521",
            "title": "Sudo 1.9.5p1 - 'Baron Samedit ' Heap-Based Buffer Overflow Privilege Escalation (1)",
            "date": "2021-02-03",
            "url": "https://www.exploit-db.com/exploits/49521"
        },
        {
            "source": "exploit-db",
            "ref_id": "49522",
            "title": "Sudo 1.9.5p1 - 'Baron Samedit ' Heap-Based Buffer Overflow Privilege Escalation (2)",
            "date": "2021-02-03",
            "url": "https://www.exploit-db.com/exploits/49522"
        }
    ],
    "refs_list": [
        "http://packetstormsecurity.com/files/161160/Sudo-Heap-Based-Buffer-Overflow.html",
        "http://packetstormsecurity.com/files/161230/Sudo-Buffer-Overflow-Privilege-Escalation.html",
        "http://packetstormsecurity.com/files/161270/Sudo-1.9.5p1-Buffer-Overflow-Privilege-Escalation.html",
        "http://packetstormsecurity.com/files/161293/Sudo-1.8.31p2-1.9.5p1-Buffer-Overflow.html",
        "http://packetstormsecurity.com/files/176932/glibc-syslog-Heap-Based-Buffer-Overflow.html",
        "http://seclists.org/fulldisclosure/2021/Feb/42",
        "http://seclists.org/fulldisclosure/2021/Jan/79",
        "http://seclists.org/fulldisclosure/2024/Feb/3",
        "http://www.openwall.com/lists/oss-security/2021/01/26/3",
        "http://www.openwall.com/lists/oss-security/2021/01/27/1",
        "http://www.openwall.com/lists/oss-security/2021/01/27/2",
        "http://www.openwall.com/lists/oss-security/2021/02/15/1",
        "http://www.openwall.com/lists/oss-security/2021/09/14/2",
        "http://www.openwall.com/lists/oss-security/2024/01/30/6",
        "http://www.openwall.com/lists/oss-security/2024/01/30/8",
        "https://kc.mcafee.com/corporate/index?page=content&id=SB10348",
        "https://lists.debian.org/debian-lts-announce/2021/01/msg00022.html",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CALA5FTXIQBRRYUA2ZQNJXB6OQMAXEII/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LHXK6ICO5AYLGFK2TAX5MZKUXTUKWOJY/",
        "https://security.gentoo.org/glsa/202101-33",
        "https://security.netapp.com/advisory/ntap-20210128-0001/",
        "https://security.netapp.com/advisory/ntap-20210128-0002/",
        "https://support.apple.com/kb/HT212177",
        "https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-sudo-privesc-jan2021-qnYQfcM",
        "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"
    ]
}