CVE-2021-3999 - CVE House
Back to Database
Status published Unknown CVE-2021-3999

A flaw was found in glibc. An off-by-one buffer overflow...

Vulnerability Description

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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2021-3999

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

glibc
Vulnerable Versions:
Fixed in glibc v2.31 and above.

Timeline

Official Publish: August 24th, 2022
Last Modified: December 2nd, 2025
Added to House: July 21st, 2026

CVSS Vectors

No vector data available

Weaknesses (CWE)

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.