Heap-based buffer overflow in sudo (Alpine package)



| Updated: 2023-05-14
Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2021-3156
CWE-ID CWE-122
Exploitation vector Local
Public exploit Vulnerability #1 is being exploited in the wild.
Vulnerable software
sudo (Alpine package)
Operating systems & Components / Operating system package or component

Vendor Alpine Linux Development Team

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) Heap-based buffer overflow

EUVDB-ID: #VU50040

Risk: Low

CVSSv4.0: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A/U:Clear]

CVE-ID: CVE-2021-3156

CWE-ID: CWE-122 - Heap-based Buffer Overflow

Exploit availability: Yes

Description

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to a boundary error in sudo. A local user can pass specially crafted data to the application, trigger heap-based buffer overflow and execute arbitrary code on the target system with root privileges.


Mitigation

Install update from vendor's website.

Vulnerable software versions

sudo (Alpine package): 1.8.6-r0 - 1.9.5p1-r0

CPE2.3 External links

https://git.alpinelinux.org/aports/commit/?id=1b5dbce3e933096986ea61ef199057c46de1fc18
https://git.alpinelinux.org/aports/commit/?id=7b07d36c9c463eb0692ff58146f01d3dffe8c454
https://git.alpinelinux.org/aports/commit/?id=822507f8196d48674aa601823f8b76fab33ae22a


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###