{ "dataType": "CVE_RECORD", "cveMetadata": { "state": "PUBLISHED", "cveId": "CVE-2021-3156", "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca", "assignerShortName": "mitre", "dateUpdated": "2025-10-21T23:35:29.600Z", "dateReserved": "2021-01-15T00:00:00.000Z", "datePublished": "2021-01-26T00:00:00.000Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca", "shortName": "mitre", "dateUpdated": "2024-09-18T16:41:27.031Z" }, "descriptions": [ { "lang": "en", "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." } ], "affected": [ { "vendor": "n/a", "product": "n/a", "versions": [ { "version": "n/a", "status": "affected" } ] } ], "references": [ { "name": "[debian-lts-announce] 20210126 [SECURITY] [DLA 2534-1] sudo security update", "tags": [ "mailing-list" ], "url": "https://lists.debian.org/debian-lts-announce/2021/01/msg00022.html" }, { "name": "20210126 Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)", "tags": [ "mailing-list" ], "url": "http://seclists.org/fulldisclosure/2021/Jan/79" }, { "name": "[oss-security] 20210126 Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)", "tags": [ "mailing-list" ], "url": "http://www.openwall.com/lists/oss-security/2021/01/26/3" }, { "name": "GLSA-202101-33", "tags": [ "vendor-advisory" ], "url": "https://security.gentoo.org/glsa/202101-33" }, { "name": "DSA-4839", "tags": [ "vendor-advisory" ], "url": "https://www.debian.org/security/2021/dsa-4839" }, { "name": "FEDORA-2021-2cb63d912a", "tags": [ "vendor-advisory" ], "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LHXK6ICO5AYLGFK2TAX5MZKUXTUKWOJY/" }, { "name": "FEDORA-2021-8840cbdccd", "tags": [ "vendor-advisory" ], "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CALA5FTXIQBRRYUA2ZQNJXB6OQMAXEII/" }, { "name": "[oss-security] 20210127 Re: Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)", "tags": [ "mailing-list" ], "url": "http://www.openwall.com/lists/oss-security/2021/01/27/1" }, { "name": "[oss-security] 20210127 Re: Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)", "tags": [ "mailing-list" ], "url": "http://www.openwall.com/lists/oss-security/2021/01/27/2" }, { "name": "20210129 Sudo Privilege Escalation Vulnerability Affecting Cisco Products: January 2021", "tags": [ "vendor-advisory" ], "url": "https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-sudo-privesc-jan2021-qnYQfcM" }, { "name": "VU#794544", "tags": [ "third-party-advisory" ], "url": "https://www.kb.cert.org/vuls/id/794544" }, { "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", "tags": [ "mailing-list" ], "url": "http://seclists.org/fulldisclosure/2021/Feb/42" }, { "name": "[oss-security] 20210215 Re: sudo: Ineffective NO_ROOT_MAILER and Baron Samedit", "tags": [ "mailing-list" ], "url": "http://www.openwall.com/lists/oss-security/2021/02/15/1" }, { "url": "https://www.oracle.com//security-alerts/cpujul2021.html" }, { "url": "https://www.sudo.ws/stable.html#1.9.5p2" }, { "url": "https://www.openwall.com/lists/oss-security/2021/01/26/3" }, { "url": "http://packetstormsecurity.com/files/161160/Sudo-Heap-Based-Buffer-Overflow.html" }, { "url": "https://security.netapp.com/advisory/ntap-20210128-0002/" }, { "url": "https://security.netapp.com/advisory/ntap-20210128-0001/" }, { "url": "http://packetstormsecurity.com/files/161230/Sudo-Buffer-Overflow-Privilege-Escalation.html" }, { "url": "http://packetstormsecurity.com/files/161270/Sudo-1.9.5p1-Buffer-Overflow-Privilege-Escalation.html" }, { "url": "http://packetstormsecurity.com/files/161293/Sudo-1.8.31p2-1.9.5p1-Buffer-Overflow.html" }, { "url": "https://support.apple.com/kb/HT212177" }, { "url": "https://kc.mcafee.com/corporate/index?page=content&id=SB10348" }, { "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" }, { "url": "https://www.synology.com/security/advisory/Synology_SA_21_02" }, { "name": "[oss-security] 20210914 Re: Oracle Solaris membership in the distros list", "tags": [ "mailing-list" ], "url": "http://www.openwall.com/lists/oss-security/2021/09/14/2" }, { "url": "https://www.oracle.com/security-alerts/cpuoct2021.html" }, { "url": "https://www.oracle.com/security-alerts/cpuapr2022.html" }, { "name": "[oss-security] 20240130 Re: CVE-2023-6246: Heap-based buffer overflow in the glibc's syslog()", "tags": [ "mailing-list" ], "url": "http://www.openwall.com/lists/oss-security/2024/01/30/8" }, { "name": "[oss-security] 20240130 CVE-2023-6246: Heap-based buffer overflow in the glibc's syslog()", "tags": [ "mailing-list" ], "url": "http://www.openwall.com/lists/oss-security/2024/01/30/6" }, { "url": "http://packetstormsecurity.com/files/176932/glibc-syslog-Heap-Based-Buffer-Overflow.html" }, { "name": "20240204 CVE-2023-6246: Heap-based buffer overflow in the glibc's syslog()", "tags": [ "mailing-list" ], "url": "http://seclists.org/fulldisclosure/2024/Feb/3" }, { "url": "https://www.vicarius.io/vsociety/posts/sudoedit-pwned-cve-2021-3156" } ], "problemTypes": [ { "descriptions": [ { "type": "text", "lang": "en", "description": "n/a" } ] } ] }, "adp": [ { "providerMetadata": { "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE", "dateUpdated": "2024-08-03T16:45:51.408Z" }, "title": "CVE Program Container", "references": [ { "name": "[debian-lts-announce] 20210126 [SECURITY] [DLA 2534-1] sudo security update", "tags": [ "mailing-list", "x_transferred" ], "url": "https://lists.debian.org/debian-lts-announce/2021/01/msg00022.html" }, { "name": "20210126 Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)", "tags": [ "mailing-list", "x_transferred" ], "url": "http://seclists.org/fulldisclosure/2021/Jan/79" }, { "name": "[oss-security] 20210126 Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)", "tags": [ "mailing-list", "x_transferred" ], "url": "http://www.openwall.com/lists/oss-security/2021/01/26/3" }, { "name": "GLSA-202101-33", "tags": [ "vendor-advisory", "x_transferred" ], "url": "https://security.gentoo.org/glsa/202101-33" }, { "name": "DSA-4839", "tags": [ "vendor-advisory", "x_transferred" ], "url": "https://www.debian.org/security/2021/dsa-4839" }, { "name": "FEDORA-2021-2cb63d912a", "tags": [ "vendor-advisory", "x_transferred" ], "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LHXK6ICO5AYLGFK2TAX5MZKUXTUKWOJY/" }, { "name": "FEDORA-2021-8840cbdccd", "tags": [ "vendor-advisory", "x_transferred" ], "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CALA5FTXIQBRRYUA2ZQNJXB6OQMAXEII/" }, { "name": "[oss-security] 20210127 Re: Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)", "tags": [ "mailing-list", "x_transferred" ], "url": "http://www.openwall.com/lists/oss-security/2021/01/27/1" }, { "name": "[oss-security] 20210127 Re: Baron Samedit: Heap-based buffer overflow in Sudo (CVE-2021-3156)", "tags": [ "mailing-list", "x_transferred" ], "url": "http://www.openwall.com/lists/oss-security/2021/01/27/2" }, { "name": "20210129 Sudo Privilege Escalation Vulnerability Affecting Cisco Products: January 2021", "tags": [ "vendor-advisory", "x_transferred" ], "url": "https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-sudo-privesc-jan2021-qnYQfcM" }, { "name": "VU#794544", "tags": [ "third-party-advisory", "x_transferred" ], "url": "https://www.kb.cert.org/vuls/id/794544" }, { "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", "tags": [ "mailing-list", "x_transferred" ], "url": "http://seclists.org/fulldisclosure/2021/Feb/42" }, { "name": "[oss-security] 20210215 Re: sudo: Ineffective NO_ROOT_MAILER and Baron Samedit", "tags": [ "mailing-list", "x_transferred" ], "url": "http://www.openwall.com/lists/oss-security/2021/02/15/1" }, { "url": "https://www.oracle.com//security-alerts/cpujul2021.html", "tags": [ "x_transferred" ] }, { "url": "https://www.sudo.ws/stable.html#1.9.5p2", "tags": [ "x_transferred" ] }, { "url": "https://www.openwall.com/lists/oss-security/2021/01/26/3", "tags": [ "x_transferred" ] }, { "url": "http://packetstormsecurity.com/files/161160/Sudo-Heap-Based-Buffer-Overflow.html", "tags": [ "x_transferred" ] }, { "url": "https://security.netapp.com/advisory/ntap-20210128-0002/", "tags": [ "x_transferred" ] }, { "url": "https://security.netapp.com/advisory/ntap-20210128-0001/", "tags": [ "x_transferred" ] }, { "url": "http://packetstormsecurity.com/files/161230/Sudo-Buffer-Overflow-Privilege-Escalation.html", "tags": [ "x_transferred" ] }, { "url": "http://packetstormsecurity.com/files/161270/Sudo-1.9.5p1-Buffer-Overflow-Privilege-Escalation.html", "tags": [ "x_transferred" ] }, { "url": "http://packetstormsecurity.com/files/161293/Sudo-1.8.31p2-1.9.5p1-Buffer-Overflow.html", "tags": [ "x_transferred" ] }, { "url": "https://support.apple.com/kb/HT212177", "tags": [ "x_transferred" ] }, { "url": "https://kc.mcafee.com/corporate/index?page=content&id=SB10348", "tags": [ "x_transferred" ] }, { "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" ] }, { "url": "https://www.synology.com/security/advisory/Synology_SA_21_02", "tags": [ "x_transferred" ] }, { "name": "[oss-security] 20210914 Re: Oracle Solaris membership in the distros list", "tags": [ "mailing-list", "x_transferred" ], "url": "http://www.openwall.com/lists/oss-security/2021/09/14/2" }, { "url": "https://www.oracle.com/security-alerts/cpuoct2021.html", "tags": [ "x_transferred" ] }, { "url": "https://www.oracle.com/security-alerts/cpuapr2022.html", "tags": [ "x_transferred" ] }, { "name": "[oss-security] 20240130 Re: CVE-2023-6246: Heap-based buffer overflow in the glibc's syslog()", "tags": [ "mailing-list", "x_transferred" ], "url": "http://www.openwall.com/lists/oss-security/2024/01/30/8" }, { "name": "[oss-security] 20240130 CVE-2023-6246: Heap-based buffer overflow in the glibc's syslog()", "tags": [ "mailing-list", "x_transferred" ], "url": "http://www.openwall.com/lists/oss-security/2024/01/30/6" }, { "url": "http://packetstormsecurity.com/files/176932/glibc-syslog-Heap-Based-Buffer-Overflow.html", "tags": [ "x_transferred" ] }, { "name": "20240204 CVE-2023-6246: Heap-based buffer overflow in the glibc's syslog()", "tags": [ "mailing-list", "x_transferred" ], "url": "http://seclists.org/fulldisclosure/2024/Feb/3" } ] }, { "metrics": [ { "cvssV3_1": { "scope": "UNCHANGED", "version": "3.1", "baseScore": 7.8, "attackVector": "LOCAL", "baseSeverity": "HIGH", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "integrityImpact": "HIGH", "userInteraction": "NONE", "attackComplexity": "LOW", "availabilityImpact": "HIGH", "privilegesRequired": "LOW", "confidentialityImpact": "HIGH" } }, { "other": { "type": "ssvc", "content": { "id": "CVE-2021-3156", "role": "CISA Coordinator", "options": [ { "Exploitation": "active" }, { "Automatable": "no" }, { "Technical Impact": "total" } ], "version": "2.0.3", "timestamp": "2025-02-03T15:43:52.658146Z" } } }, { "other": { "type": "kev", "content": { "dateAdded": "2022-04-06", "reference": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-3156" } } } ], "references": [ { "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-3156", "tags": [ "government-resource" ] } ], "problemTypes": [ { "descriptions": [ { "lang": "en", "type": "CWE", "cweId": "CWE-193", "description": "CWE-193 Off-by-one Error" } ] } ], "timeline": [ { "time": "2022-04-06T00:00:00.000Z", "lang": "en", "value": "CVE-2021-3156 added to CISA KEV" } ], "title": "CISA ADP Vulnrichment", "providerMetadata": { "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2025-10-21T23:35:29.600Z" } } ] }, "dataVersion": "5.1" }