{"id":"CVE-2021-3999","aliases":["CVE-2021-3999"],"related":[],"kind":"vulnerability","state":"published","title":"A flaw was found in glibc.","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Se ha encontrado un fallo en glibc. Un desbordamiento y subdesbordamiento de búfer en la función getcwd() puede conllevar a una corrupción de memoria cuando el tamaño del búfer es exactamente 1. Un atacante local que pueda controlar el búfer de entrada y el tamaño pasado a getcwd() en un programa setuid podría usar este fallo para ejecutar potencialmente código arbitrario y escalar sus privilegios en el sistema.","source":"nvd"}],"published":"2022-08-24T00:00:00.000Z","modified":"2026-10-14T10:17:50.007Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-193"],"affected":[{"ranges":[{"version":"Fixed in glibc v2.31 and above.","status":"affected"}],"product":"glibc","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"2.31"}],"vendor":"gnu","product":"glibc","cpe":"cpe:2.3:a:gnu:glibc:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"},{"status":"affected","version":"11.0"},{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"e-series_performance_analyzer","cpe":"cpe:2.3:a:netapp:e-series_performance_analyzer:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"nfs_plug-in","cpe":"cpe:2.3:a:netapp:nfs_plug-in:*:*:*:*:*:vmware_vaai:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"ontap_select_deploy_administration_utility","cpe":"cpe:2.3:a:netapp:ontap_select_deploy_administration_utility:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h300s_firmware","cpe":"cpe:2.3:o:netapp:h300s_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h500s_firmware","cpe":"cpe:2.3:o:netapp:h500s_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h700s_firmware","cpe":"cpe:2.3:o:netapp:h700s_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h410s_firmware","cpe":"cpe:2.3:o:netapp:h410s_firmware:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"h410c_firmware","cpe":"cpe:2.3:o:netapp:h410c_firmware:-:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://www.openwall.com/lists/oss-security/2022/01/24/4","tags":["exploit","mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://sourceware.org/bugzilla/show_bug.cgi?id=28769","tags":["issue-tracking","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://sourceware.org/git/gitweb.cgi?p=glibc.git%3Bh=23e0e8f5f1fb5ed150253d986ecccdc90c2dcd5e","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2024637","tags":["issue-tracking","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-3999","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3999","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/10/msg00021.html","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20221104-0001/","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-831302.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-12-02T20:54:28.821Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3999","url":"https://www.cve.org/CVERecord?id=CVE-2021-3999","licence":"CVE Terms of Use","modified":"2026-10-14T09:59:03.285Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3999","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3999","licence":"Public domain","modified":"2026-10-14T10:17:50.007Z"}],"updatedAt":"2026-11-25T22:58:07.779Z","epss":{"score":0.00809,"percentile":0.5803,"date":"2026-12-01T12:00:22.000Z"}}