CVE-2021-3999

HIGH CVSS 3.1: 7.8 EPSS 0.81%
Updated Oct 14, 2026
Debian
Parameter Value
CVSS 7.8 (HIGH)
Affected Versions before 2.31
Fixed In 2.31
Type CWE-193
Vendor Debian
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
Low
Easy to exploit
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 17

Configuration From (including) Up to (excluding)
Gnu Glibc
cpe:2.3:a:gnu:glibc:*:*:*:*:*:*:*:*
— 2.31
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
— —
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
— —
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
— —
Netapp E-Series_Performance_Analyzer
cpe:2.3:a:netapp:e-series_performance_analyzer:-:*:*:*:*:*:*:*
— —
Netapp Nfs_Plug-In
cpe:2.3:a:netapp:nfs_plug-in:*:*:*:*:*:vmware_vaai:*:*
— —
Netapp Ontap_Select_Deploy_Administration_Utility
cpe:2.3:a:netapp:ontap_select_deploy_administration_utility:-:*:*:*:*:*:*:*
— —
Netapp H300s_Firmware
cpe:2.3:o:netapp:h300s_firmware:-:*:*:*:*:*:*:*
— —
Netapp H300s
cpe:2.3:h:netapp:h300s:-:*:*:*:*:*:*:*
— —
Netapp H500s_Firmware
cpe:2.3:o:netapp:h500s_firmware:-:*:*:*:*:*:*:*
— —
Netapp H500s
cpe:2.3:h:netapp:h500s:-:*:*:*:*:*:*:*
— —
Netapp H700s_Firmware
cpe:2.3:o:netapp:h700s_firmware:-:*:*:*:*:*:*:*
— —
Netapp H700s
cpe:2.3:h:netapp:h700s:-:*:*:*:*:*:*:*
— —
Netapp H410s_Firmware
cpe:2.3:o:netapp:h410s_firmware:-:*:*:*:*:*:*:*
— —
Netapp H410s
cpe:2.3:h:netapp:h410s:-:*:*:*:*:*:*:*
— —
Netapp H410c_Firmware
cpe:2.3:o:netapp:h410c_firmware:-:*:*:*:*:*:*:*
— —
Netapp H410c
cpe:2.3:h:netapp:h410c:-:*:*:*:*:*:*:*
— —