CVE Catalog

CVE-2021-3999

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.80%

56th percentile - higher than 56% of all known CVEs

Summary

A flaw was found in glibc. An off-by-one buffer overflow and underflow in getcwd() may lead to memory corruption when the size of the buffer is exactly 1. A local attacker who can control the input buffer and size passed to getcwd() in a setuid program could use this flaw to potentially execute arbitrary code and escalate their privileges on the system.

Risk Assessment

The risk to the organization includes the possibility of privilege escalation by a local attacker, which could lead to full system compromise and data confidentiality breach.

Recommendation

It is recommended to immediately update glibc to a patched version and review setuid programs for safe use of getcwd().

Other vulnerabilities in glibc

See all
Original NVD description (English source)

A flaw was found in glibc. An off-by-one buffer overflow and underflow in getcwd() may lead to memory corruption when the size of the buffer is exactly 1. A local attacker who can control the input buffer and size passed to getcwd() in a setuid program could use this flaw to potentially execute arbitrary code and escalate their privileges on the system.

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