Vulnerabilities · 2021 · Gnu
CVE-2021-3999
Gnu Glibc vulnerability
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.
Affected products
Glibc, Debian Linux, E-series Performance Analyzer, Nfs Plug-in, Ontap Select Deploy Administration Utility, H300s Firmware, H500s Firmware, H700s Firmware, H410s Firmware, H410c Firmware and more. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Gnu Glibc runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- access.redhat.com/security/cve/CVE-2021-3999 · Third Party Advisory
- bugzilla.redhat.com/show_bug.cgi?id=2024637 · Third Party Advisory
- lists.debian.org/debian-lts-announce/2022/10/msg00021.html · Third Party Advisory
- security-tracker.debian.org/tracker/CVE-2021-3999 · Third Party Advisory
- security.netapp.com/advisory/ntap-20221104-0001/ · Third Party Advisory
- sourceware.org/bugzilla/show_bug.cgi?id=28769 · Third Party Advisory
- www.openwall.com/lists/oss-security/2022/01/24/4 · Exploit
- sourceware.org/git/gitweb.cgi?p=glibc.git%3Bh=23e0e8f5f1fb5ed150253d986ecccdc90c2dcd5e
- nvd.nist.gov/vuln/detail/CVE-2021-3999
- cve.org/CVERecord?id=CVE-2021-3999
More vulnerabilities in Gnu products
CVE-2026-24061CVE-2026-0915CVE-2026-0861CVE-2025-66866CVE-2025-66865CVE-2025-66864CVE-2025-66863CVE-2025-66862All 1,147
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.