CVE-2021-3999

Public Exploit

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.

Category

7.8
CVSS
Severity: High
CVSS 3.1 •
EPSS 1.26% Top 25%
Third-Party Advisory redhat.com Third-Party Advisory redhat.com Third-Party Advisory debian.org Third-Party Advisory debian.org Third-Party Advisory netapp.com Third-Party Advisory sourceware.org Third-Party Advisory openwall.com
Affected: n/a glibc
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2021-3999?
CVE-2021-3999 has been scored as a high severity vulnerability.
How to fix CVE-2021-3999?
To fix CVE-2021-3999, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2021-3999 being actively exploited in the wild?
It is possible that CVE-2021-3999 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2021-3999?
CVE-2021-3999 affects n/a glibc.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.