Vulnerabilities

CVE-2021-3999

High 7.8 CVSS 3.1

Description

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.

Description as published by the source, in English.

Key facts

Published
2022-08-24
Last modified
2026-10-14
Assigned by
secalert@redhat.com
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.7 % higher than 51 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
Debian Debian Linux 10.0 Affected
Debian Debian Linux 11.0 Affected
Gnu Glibc < 2.31 Affected
Netapp E-series Performance Analyzer all versions listed Affected
Netapp H300s all versions listed Not affected
Netapp H300s Firmware all versions listed Affected
Netapp H410c all versions listed Not affected
Netapp H410c Firmware all versions listed Affected
Netapp H410s all versions listed Not affected
Netapp H410s Firmware all versions listed Affected
Netapp H500s all versions listed Not affected
Netapp H500s Firmware all versions listed Affected
Netapp H700s all versions listed Not affected
Netapp H700s Firmware all versions listed Affected
Netapp Nfs Plug-in all versions listed Affected
Netapp Ontap Select Deploy Administration Utility all versions listed Affected

Weakness type

  • CWE-193: Off-by-one Error

    A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities