High severity7.8CISA KEVNVD Advisory· Published Jan 26, 2021· Updated Jun 17, 2026
CVE-2021-3156
CVE-2021-3156
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
71- cpe:2.3:a:beyondtrust:privilege_management_for_mac:*:*:*:*:*:*:*:*Range: <21.1.1
- cpe:2.3:a:beyondtrust:privilege_management_for_unix\/linux:*:*:*:*:basic:*:*:*Range: <10.3.2-10
cpe:2.3:a:mcafee:web_gateway:10.0.4:*:*:*:*:*:*:*+ 2 more
- cpe:2.3:a:mcafee:web_gateway:10.0.4:*:*:*:*:*:*:*
- cpe:2.3:a:mcafee:web_gateway:8.2.17:*:*:*:*:*:*:*
- cpe:2.3:a:mcafee:web_gateway:9.2.8:*:*:*:*:*:*:*
- cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:*
- cpe:2.3:a:netapp:cloud_backup:-:*:*:*:*:*:*:*
- cpe:2.3:a:netapp:hci_management_node:-:*:*:*:*:*:*:*
- cpe:2.3:a:netapp:oncommand_unified_manager_core_package:-:*:*:*:*:*:*:*
- cpe:2.3:a:netapp:ontap_select_deploy_administration_utility:-:*:*:*:*:*:*:*
- cpe:2.3:a:netapp:ontap_tools:9:*:*:*:*:vmware_vsphere:*:*
- cpe:2.3:a:oracle:communications_performance_intelligence_center:*:*:*:*:*:*:*:*Range: >=10.3.0.0.0,<=10.3.0.2.1
- cpe:2.3:a:oracle:tekelec_platform_distribution:*:*:*:*:*:*:*:*Range: >=7.4.0,<=7.7.1
cpe:2.3:a:sudo_project:sudo:*:*:*:*:*:*:*:*+ 2 more
- cpe:2.3:a:sudo_project:sudo:*:*:*:*:*:*:*:*range: >=1.8.2,<1.8.32
- cpe:2.3:a:sudo_project:sudo:1.9.5:-:*:*:*:*:*:*
- cpe:2.3:a:sudo_project:sudo:1.9.5:patch1:*:*:*:*:*:*
- cpe:2.3:a:synology:diskstation_manager_unified_controller:3.0:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
- cpe:2.3:o:oracle:micros_compact_workstation_3_firmware:310:*:*:*:*:*:*:*
- cpe:2.3:o:oracle:micros_es400_firmware:*:*:*:*:*:*:*:*Range: >=400,<=410
- cpe:2.3:o:oracle:micros_kitchen_display_system_firmware:210:*:*:*:*:*:*:*
- cpe:2.3:o:oracle:micros_workstation_5a_firmware:5a:*:*:*:*:*:*:*
- cpe:2.3:o:oracle:micros_workstation_6_firmware:*:*:*:*:*:*:*:*Range: >=610,<=655
- cpe:2.3:o:synology:diskstation_manager:6.2:*:*:*:*:*:*:*
- cpe:2.3:o:synology:skynas_firmware:-:*:*:*:*:*:*:*
- cpe:2.3:o:synology:vs960hd_firmware:-:*:*:*:*:*:*:*
- Sudo/Sudodescription
- osv-coords39 versionspkg:rpm/opensuse/sudo&distro=openSUSE%20Leap%2015.1pkg:rpm/opensuse/sudo&distro=openSUSE%20Leap%2015.2pkg:rpm/opensuse/sudo&distro=openSUSE%20Tumbleweedpkg:rpm/suse/sudo&distro=HPE%20Helion%20OpenStack%208pkg:rpm/suse/sudo&distro=SUSE%20Enterprise%20Storage%205pkg:rpm/suse/sudo&distro=SUSE%20Enterprise%20Storage%206pkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOSpkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOSpkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSSpkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Micro%205.0pkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP1pkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP2pkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-LTSSpkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCLpkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSSpkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSSpkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5-LTSSpkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCLpkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSSpkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5pkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP2pkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015pkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/sudo&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/sudo&distro=SUSE%20Manager%20Proxy%204.0pkg:rpm/suse/sudo&distro=SUSE%20Manager%20Retail%20Branch%20Server%204.0pkg:rpm/suse/sudo&distro=SUSE%20Manager%20Server%204.0pkg:rpm/suse/sudo&distro=SUSE%20OpenStack%20Cloud%207pkg:rpm/suse/sudo&distro=SUSE%20OpenStack%20Cloud%208pkg:rpm/suse/sudo&distro=SUSE%20OpenStack%20Cloud%209pkg:rpm/suse/sudo&distro=SUSE%20OpenStack%20Cloud%20Crowbar%208pkg:rpm/suse/sudo&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209
< 1.8.22-lp151.5.12.1+ 38 more
- (no CPE)range: < 1.8.22-lp151.5.12.1
- (no CPE)range: < 1.8.22-lp152.8.6.1
- (no CPE)range: < 1.9.7p2-1.4
- (no CPE)range: < 1.8.20p2-3.20.1
- (no CPE)range: < 1.8.20p2-3.20.1
- (no CPE)range: < 1.8.22-4.15.1
- (no CPE)range: < 1.8.22-4.15.1
- (no CPE)range: < 1.8.22-4.15.1
- (no CPE)range: < 1.8.22-4.15.1
- (no CPE)range: < 1.8.22-4.15.1
- (no CPE)range: < 1.8.22-4.18.1
- (no CPE)range: < 1.8.22-4.15.1
- (no CPE)range: < 1.8.22-4.15.1
- (no CPE)range: < 1.8.10p3-10.29.1
- (no CPE)range: < 1.8.10p3-10.29.1
- (no CPE)range: < 1.8.20p2-3.20.1
- (no CPE)range: < 1.8.20p2-3.20.1
- (no CPE)range: < 1.8.20p2-3.20.1
- (no CPE)range: < 1.8.27-4.6.1
- (no CPE)range: < 1.8.27-4.51.1
- (no CPE)range: < 1.8.22-4.15.1
- (no CPE)range: < 1.8.22-4.15.1
- (no CPE)range: < 1.8.22-4.15.1
- (no CPE)range: < 1.8.27-4.51.1
- (no CPE)range: < 1.8.10p3-10.29.1
- (no CPE)range: < 1.8.20p2-3.20.1
- (no CPE)range: < 1.8.20p2-3.20.1
- (no CPE)range: < 1.8.27-4.6.1
- (no CPE)range: < 1.8.22-4.15.1
- (no CPE)range: < 1.8.22-4.15.1
- (no CPE)range: < 1.8.27-4.6.1
- (no CPE)range: < 1.8.22-4.15.1
- (no CPE)range: < 1.8.22-4.15.1
- (no CPE)range: < 1.8.22-4.15.1
- (no CPE)range: < 1.8.10p3-10.29.1
- (no CPE)range: < 1.8.20p2-3.20.1
- (no CPE)range: < 1.8.20p2-3.20.1
- (no CPE)range: < 1.8.20p2-3.20.1
- (no CPE)range: < 1.8.20p2-3.20.1
Patches
Vulnerability mechanics
References
35- www.openwall.com/lists/oss-security/2021/09/14/2nvdMailing ListPatchThird Party Advisory
- www.oracle.com//security-alerts/cpujul2021.htmlnvdPatchThird Party Advisory
- www.oracle.com/security-alerts/cpuapr2022.htmlnvdPatchThird Party Advisory
- www.oracle.com/security-alerts/cpuoct2021.htmlnvdPatchThird Party Advisory
- packetstormsecurity.com/files/161160/Sudo-Heap-Based-Buffer-Overflow.htmlnvdExploitThird Party AdvisoryVDB Entry
- packetstormsecurity.com/files/161230/Sudo-Buffer-Overflow-Privilege-Escalation.htmlnvdExploitThird Party AdvisoryVDB Entry
- packetstormsecurity.com/files/161270/Sudo-1.9.5p1-Buffer-Overflow-Privilege-Escalation.htmlnvdExploitThird Party AdvisoryVDB Entry
- packetstormsecurity.com/files/161293/Sudo-1.8.31p2-1.9.5p1-Buffer-Overflow.htmlnvdExploitThird Party AdvisoryVDB Entry
- packetstormsecurity.com/files/176932/glibc-syslog-Heap-Based-Buffer-Overflow.htmlnvdExploitThird Party AdvisoryVDB Entry
- seclists.org/fulldisclosure/2021/Jan/79nvdExploitMailing ListThird Party Advisory
- seclists.org/fulldisclosure/2024/Feb/3nvdExploitMailing ListThird Party Advisory
- www.openwall.com/lists/oss-security/2021/01/26/3nvdExploitMailing ListThird Party Advisory
- www.openwall.com/lists/oss-security/2021/02/15/1nvdExploitMailing ListThird Party Advisory
- www.openwall.com/lists/oss-security/2024/01/30/6nvdExploitMailing List
- www.openwall.com/lists/oss-security/2021/01/26/3nvdExploitMailing ListThird Party Advisory
- www.vicarius.io/vsociety/posts/sudoedit-pwned-cve-2021-3156nvdExploitThird Party Advisory
- seclists.org/fulldisclosure/2021/Feb/42nvdMailing ListThird Party Advisory
- www.openwall.com/lists/oss-security/2021/01/27/1nvdMailing ListThird Party Advisory
- www.openwall.com/lists/oss-security/2021/01/27/2nvdMailing ListThird Party Advisory
- kc.mcafee.com/corporate/indexnvdBroken LinkThird Party Advisory
- lists.debian.org/debian-lts-announce/2021/01/msg00022.htmlnvdMailing ListThird Party Advisory
- security.gentoo.org/glsa/202101-33nvdThird Party Advisory
- security.netapp.com/advisory/ntap-20210128-0001/nvdThird Party Advisory
- security.netapp.com/advisory/ntap-20210128-0002/nvdThird Party Advisory
- support.apple.com/kb/HT212177nvdThird Party Advisory
- tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-sudo-privesc-jan2021-qnYQfcMnvdThird Party Advisory
- www.beyondtrust.com/blog/entry/security-advisory-privilege-management-for-unix-linux-pmul-basic-and-privilege-management-for-mac-pmm-affected-by-sudo-vulnerabilitynvdThird Party Advisory
- www.debian.org/security/2021/dsa-4839nvdThird Party Advisory
- www.kb.cert.org/vuls/id/794544nvdThird Party AdvisoryUS Government Resource
- www.synology.com/security/advisory/Synology_SA_21_02nvdThird Party Advisory
- www.openwall.com/lists/oss-security/2024/01/30/8nvdMailing List
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CALA5FTXIQBRRYUA2ZQNJXB6OQMAXEII/nvdMailing ListRelease Notes
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LHXK6ICO5AYLGFK2TAX5MZKUXTUKWOJY/nvdMailing ListRelease Notes
- www.cisa.gov/known-exploited-vulnerabilities-catalognvdUS Government Resource
- www.sudo.ws/stable.htmlnvdRelease Notes
News mentions
0No linked articles in our index yet.