{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-3156","id":"CVE-2021-3156","title":"Sudo before 1.9.5p2 contains an off-by-one error that can result in a heap-based buffer overflow, which allows privil…","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.","descriptionLong":"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.","published":"2021-01-26T00:00:00.000Z","updated":"2026-10-24T10:31:06.315367815Z","reserved":"2021-01-15T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"CISA-ADP"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"2.0","score":7.2,"vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","rating":"high","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-193"],"aliases":[],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2021/01/msg00022.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"http://seclists.org/fulldisclosure/2021/Jan/79","tags":["mailing-list","x_transferred","Exploit","Mailing List","Third Party Advisory","evidence"]},{"url":"http://www.openwall.com/lists/oss-security/2021/01/26/3","tags":["mailing-list","x_transferred","Exploit","Mailing List","Third Party Advisory","evidence"]},{"url":"https://security.gentoo.org/glsa/202101-33","tags":["vendor-advisory","x_transferred","Third Party Advisory","advisory"]},{"url":"https://www.debian.org/security/2021/dsa-4839","tags":["vendor-advisory","x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LHXK6ICO5AYLGFK2TAX5MZKUXTUKWOJY/","tags":["vendor-advisory","x_transferred","Mailing List","Release Notes","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CALA5FTXIQBRRYUA2ZQNJXB6OQMAXEII/","tags":["vendor-advisory","x_transferred","Mailing List","Release Notes","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2021/01/27/1","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2021/01/27/2","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-sudo-privesc-jan2021-qnYQfcM","tags":["vendor-advisory","x_transferred","Third Party Advisory","advisory"]},{"url":"https://www.kb.cert.org/vuls/id/794544","tags":["third-party-advisory","x_transferred","Third Party Advisory","US Government Resource","advisory"]},{"url":"http://seclists.org/fulldisclosure/2021/Feb/42","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2021/02/15/1","tags":["mailing-list","x_transferred","Exploit","Mailing List","Third Party Advisory","evidence"]},{"url":"https://www.oracle.com//security-alerts/cpujul2021.html","tags":["x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://www.sudo.ws/stable.html#1.9.5p2","tags":["x_transferred","Release Notes","advisory"]},{"url":"https://www.openwall.com/lists/oss-security/2021/01/26/3","tags":["x_transferred","Exploit","Mailing List","Third Party Advisory","evidence"]},{"url":"http://packetstormsecurity.com/files/161160/Sudo-Heap-Based-Buffer-Overflow.html","tags":["x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence"]},{"url":"https://security.netapp.com/advisory/ntap-20210128-0002/","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20210128-0001/","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"http://packetstormsecurity.com/files/161230/Sudo-Buffer-Overflow-Privilege-Escalation.html","tags":["x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence"]},{"url":"http://packetstormsecurity.com/files/161270/Sudo-1.9.5p1-Buffer-Overflow-Privilege-Escalation.html","tags":["x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence"]},{"url":"http://packetstormsecurity.com/files/161293/Sudo-1.8.31p2-1.9.5p1-Buffer-Overflow.html","tags":["x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence"]},{"url":"https://support.apple.com/kb/HT212177","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://kc.mcafee.com/corporate/index?page=content&id=SB10348","tags":["x_transferred","Broken Link","Third Party Advisory","advisory"]},{"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","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://www.synology.com/security/advisory/Synology_SA_21_02","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2021/09/14/2","tags":["mailing-list","x_transferred","Mailing List","Patch","Third Party Advisory","fix"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["x_transferred","Patch","Third Party Advisory","fix"]},{"url":"http://www.openwall.com/lists/oss-security/2024/01/30/8","tags":["mailing-list","x_transferred","Mailing List","article"]},{"url":"http://www.openwall.com/lists/oss-security/2024/01/30/6","tags":["mailing-list","x_transferred","Exploit","Mailing List","evidence"]},{"url":"http://packetstormsecurity.com/files/176932/glibc-syslog-Heap-Based-Buffer-Overflow.html","tags":["x_transferred","Exploit","Third Party Advisory","VDB Entry","evidence"]},{"url":"http://seclists.org/fulldisclosure/2024/Feb/3","tags":["mailing-list","x_transferred","Exploit","Mailing List","Third Party Advisory","evidence"]},{"url":"https://www.vicarius.io/vsociety/posts/sudoedit-pwned-cve-2021-3156","tags":["Exploit","Third Party Advisory","evidence"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-3156","tags":["government-resource","US Government Resource","web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":true,"kevAdded":"2022-04-06","kevDue":"2022-04-27","kevEntry":{"cveID":"CVE-2021-3156","vendorProject":"Sudo","product":"Sudo","vulnerabilityName":"Sudo Heap-Based Buffer Overflow Vulnerability","dateAdded":"2022-04-06","shortDescription":"Sudo contains an off-by-one error that can result in a heap-based buffer overflow, which allows for privilege escalation.","requiredAction":"Apply updates per vendor instructions.","dueDate":"2022-04-27","knownRansomwareCampaignUse":"Unknown","notes":"https://nvd.nist.gov/vuln/detail/CVE-2021-3156","cwes":["CWE-122","CWE-193"]},"ssvc":{"exploitation":"active","automatable":"no","technicalImpact":"total"},"epss":0.99962,"epssPercentile":0.99976,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-3156","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3156","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-3156","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"added 2022-04-06"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-3156","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["sudo"],"critical":["Exploited in the wild (CISA KEV)","EPSS 100% with CVSS 7.8"],"attention":null}