{"id":"CVE-2021-3999","published":"2022-08-24T00:00:00Z","modified":"2026-10-14T09:59:03Z","title":"A flaw was found in glibc","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00809,"percentile":0.53766,"provenance":"source"},"cwes":[{"id":"CWE-193","name":"Off-by-one Error"}],"references":[{"url":"https://www.openwall.com/lists/oss-security/2022/01/24/4","tags":[]},{"url":"https://sourceware.org/bugzilla/show_bug.cgi?id=28769","tags":[]},{"url":"https://sourceware.org/git/gitweb.cgi?p=glibc.git%3Bh=23e0e8f5f1fb5ed150253d986ecccdc90c2dcd5e","tags":[]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2024637","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2021-3999","tags":[]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3999","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2022/10/msg00021.html","tags":["mailing-list"]},{"url":"https://security.netapp.com/advisory/ntap-20221104-0001/","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-831302.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[]}],"priority":{"score":16.2,"factors":[{"name":"EPSS percentile","points":10.75},{"name":"CVSS severity","points":5.46}]},"affectedVersions":[{"vendor":"n/a","product":"glibc","versions":["Fixed in glibc v2.31 and above."]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-12-02T20:54:28.821189Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-27189","exploited":false,"provenance":"source"}}