Vulnerability database / CVE-2021-3999
CVE-2021-3999
HIGH 7.8 CVSS 3.1 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.
Published 24 Aug 2022
Last modified 14 Oct 2026 Assigned by secalert@redhat.com NVD status Modified Weakness
CWE-193 Sources
NVD JSON Scores
Source Scored by Version Score Vector / decision
NVD
nvd@nist.gov (Primary)
CVSS 3.1
HIGH 7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD
134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)
CVSS 3.1
HIGH 7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected
Source Vendor / ecosystem Product / package Affected versions Fixed in
NVD
gnu
glibccpe:2.3:a:gnu:glibc:*:*:*:*:*:*:*:*
< 2.31
2.31 NVD
debian
debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
= 10.0
NVD
debian
debian_linuxcpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
= 11.0
NVD
netapp
e-series_performance_analyzercpe:2.3:a:netapp:e-series_performance_analyzer:-:*:*:*:*:*:*:*
(no version)
NVD
netapp
nfs_plug-incpe:2.3:a:netapp:nfs_plug-in:*:*:*:*:*:vmware_vaai:*:*
all versions
NVD
netapp
ontap_select_deploy_administration_utilitycpe:2.3:a:netapp:ontap_select_deploy_administration_utility:-:*:*:*:*:*:*:*
(no version)
NVD
netapp
h300s_firmwarecpe:2.3:o:netapp:h300s_firmware:-:*:*:*:*:*:*:*
(no version)
NVD
netapp
h500s_firmwarecpe:2.3:o:netapp:h500s_firmware:-:*:*:*:*:*:*:*
(no version)
NVD
netapp
h700s_firmwarecpe:2.3:o:netapp:h700s_firmware:-:*:*:*:*:*:*:*
(no version)
NVD
netapp
h410s_firmwarecpe:2.3:o:netapp:h410s_firmware:-:*:*:*:*:*:*:*
(no version)
NVD
netapp
h410c_firmwarecpe:2.3:o:netapp:h410c_firmware:-:*:*:*:*:*:*:*
(no version)
References
History
25 Nov 2026 20:34 UTC · NVD: first stored (published 24 Aug 2022)