[ CVE-2021-3156 · Published 26 Jan 2021 ]
Sudo Heap-Based Buffer Overflow Vulnerability
Exploited · CISA KEV CVSS 7.8
EPSS 100%Fix available
[ Why it matters ]Priority signals
- Exploited in the wild: on CISA's Known Exploited Vulnerabilities list since 2022-04-06
- EPSS: 100% chance of exploitation in the next 30 days (higher than 100% of CVEs)
[ Description ]Official 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.
CISA: Sudo contains an off-by-one error that can result in a heap-based buffer overflow, which allows for privilege escalation.
[ Fixes ]Fixes and patches
CISA required action (US federal deadline 27 Apr 2022): Apply updates per vendor instructions.
- Patch on openwall.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
- Patch on oracle.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
- Patch on oracle.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
- Patch on oracle.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
[ References ]References
- packetstormsecurity.com/files/161160/Sudo-Heap-Based-Buffer-Overflow.htmlExploitThird Party AdvisoryVDB Entry
- packetstormsecurity.com/files/161230/Sudo-Buffer-Overflow-Privilege-Escalation.htmlExploitThird Party AdvisoryVDB Entry
- packetstormsecurity.com/files/161270/Sudo-1.9.5p1-Buffer-Overflow-Privilege-Escalation.…ExploitThird Party AdvisoryVDB Entry
- packetstormsecurity.com/files/161293/Sudo-1.8.31p2-1.9.5p1-Buffer-Overflow.htmlExploitThird Party AdvisoryVDB Entry
- packetstormsecurity.com/files/176932/glibc-syslog-Heap-Based-Buffer-Overflow.htmlExploitThird Party AdvisoryVDB Entry
- seclists.org/fulldisclosure/2021/Feb/42Mailing ListThird Party Advisory
- seclists.org/fulldisclosure/2021/Jan/79ExploitMailing ListThird Party Advisory
- seclists.org/fulldisclosure/2024/Feb/3ExploitMailing ListThird Party Advisory
- www.openwall.com/lists/oss-security/2021/01/26/3ExploitMailing ListThird Party Advisory
- www.openwall.com/lists/oss-security/2021/01/27/1Mailing ListThird Party Advisory
- www.openwall.com/lists/oss-security/2021/01/27/2Mailing ListThird Party Advisory
- www.openwall.com/lists/oss-security/2021/02/15/1ExploitMailing ListThird Party Advisory
- www.openwall.com/lists/oss-security/2021/09/14/2Mailing ListPatchThird Party Advisory
- www.openwall.com/lists/oss-security/2024/01/30/6ExploitMailing List
- www.openwall.com/lists/oss-security/2024/01/30/8Mailing List
- kc.mcafee.com/corporate/indexBroken LinkThird Party Advisory
- lists.debian.org/debian-lts-announce/2021/01/msg00022.htmlMailing ListThird Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/messag…Mailing ListRelease Notes
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/messag…Mailing ListRelease Notes
- security.gentoo.org/glsa/202101-33Third Party Advisory
- security.netapp.com/advisory/ntap-20210128-0001Third Party Advisory
- security.netapp.com/advisory/ntap-20210128-0002Third Party Advisory
- support.apple.com/kb/HT212177Third Party Advisory
- tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-sudo-privesc-jan…Third Party Advisory
- www.beyondtrust.com/blog/entry/security-advisory-privilege-management-for-unix-linux-pm…Third Party Advisory
- www.debian.org/security/2021/dsa-4839Third Party Advisory
- www.kb.cert.org/vuls/id/794544Third Party AdvisoryUS Government Resource
- www.openwall.com/lists/oss-security/2021/01/26/3ExploitMailing ListThird Party Advisory
- www.oracle.com//security-alerts/cpujul2021.htmlPatchThird Party Advisory
- www.oracle.com/security-alerts/cpuapr2022.htmlPatchThird Party Advisory
- www.oracle.com/security-alerts/cpuoct2021.htmlPatchThird Party Advisory
- www.sudo.ws/stable.htmlRelease Notes
- www.synology.com/security/advisory/Synology_SA_21_02Third Party Advisory
- www.vicarius.io/vsociety/posts/sudoedit-pwned-cve-2021-3156ExploitThird Party Advisory
- www.cisa.gov/known-exploited-vulnerabilities-catalogUS Government Resource