Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2021-3156

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...
Back to all
CVE

CVE-2021-3156

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...

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.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
7.8
-
3.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
C
H
U
0
-
3.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
C
H
U
-

Related Resources

No items found.

References

https://kc.mcafee.com/corporate/index?page=content&id=SB10348, https://www.kb.cert.org/vuls/id/794544, https://www.cisa.gov/known-exploited-vulnerabilities-catalog?fieldcve=CVE-2021-3156, 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, 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, https://www.debian.org/security/2021/dsa-4839, https://www.openwall.com/lists/oss-security/2021/01/26/3, https://www.oracle.com//security-alerts/cpujul2021.html, https://www.oracle.com/security-alerts/cpuapr2022.html, https://www.oracle.com/security-alerts/cpuoct2021.html, https://www.sudo.ws/stable.html#1.9.5p2, https://www.synology.com/security/advisory/SynologySA2102, https://www.vicarius.io/vsociety/posts/sudoedit-pwned-cve-2021-3156, http://www.openwall.com/lists/oss-security/2024/01/30/6, http://www.openwall.com/lists/oss-security/2024/01/30/8

Severity

7.8

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
7.8
EPSS Probability
0.9246%
EPSS Percentile
0.99715%
Introduced Version
82d8358a72b1e8784b5399c1ecb5d271ae91e125,83d1bee918147a57804de77d3e1064a4e323f47e,0
Fix Available
caa666c2dfa1f4286ccfbed5e512432665b72d3a,10d072a320c885e2e805ef2e47fe7a2ebde68abc,0:1.8.6p3-29.el6_10.4,0:1.8.23-10.el7_9.1,0:1.8.29-6.el8_3.1,1.8.27-1+deb10u3,1.9.5p1-1.1,0:1.8.21p2-3ubuntu1.4,0:1.8.31-1ubuntu1.2,1.9.5p2-r0,1.9.5_p2-r0,1.8.31-r1,0:1.8.23-9.56.amzn1,0:1.8.23-4.amzn2.2.1

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading