CVE Catalog

Actively exploited in the wild

Sudo Heap-Based Buffer Overflow Vulnerability

Sudo - Sudo · Listed in the CISA KEV since 2022-04-06. This indicates confirmed attacks in production environments.

Required action: Apply updates per vendor instructions.

CVE-2021-3156

HighCVSS 7.8KEV
Published: Updated: Translated: NVD NIST

Summary

Sudo before 1.9.5p2 contains an off-by-one error that can result in a heap-based buffer overflow. This allows privilege escalation to root via "sudoedit -s" and a command-line argument that ends with a single backslash character.

Risk Assessment

A local attacker could exploit this vulnerability to gain root privileges, leading to full system compromise and the ability to perform arbitrary actions.

Recommendation

Update Sudo to version 1.9.5p2 or later. If updating is not possible, consider temporarily restricting sudo access for untrusted users.

Other vulnerabilities in Sudo

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS