CVE-2021-3999
JSON

7.8high

A flaw was found in glibc.

Severity
7.8high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.81% (higher than 58% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat

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.

Affected

Product or packageVersionsReported by
glibcFixed in glibc v2.31 and above.CVE List
gnu glibcbefore 2.31NVD
debian debian_linux10.0, 11.0NVD
netapp e-series_performance_analyzerNot specifiedNVD
netapp nfs_plug-inNot specifiedNVD
netapp ontap_select_deploy_administration_utilityNot specifiedNVD
netapp h300s_firmwareNot specifiedNVD
netapp h500s_firmwareNot specifiedNVD
netapp h700s_firmwareNot specifiedNVD
netapp h410s_firmwareNot specifiedNVD
netapp h410c_firmwareNot specifiedNVD

All scores

CISA-ADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-193

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

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.

References

https://www.openwall.com/lists/oss-security/2022/01/24/4exploit, mailing-list, third-party-advisory
https://sourceware.org/bugzilla/show_bug.cgi?id=28769issue-tracking, third-party-advisory
https://sourceware.org/git/gitweb.cgi?p=glibc.git%3Bh=23e0e8f5f1fb5ed150253d986ecccdc90c2dcd5e
https://bugzilla.redhat.com/show_bug.cgi?id=2024637issue-tracking, third-party-advisory
https://access.redhat.com/security/cve/CVE-2021-3999third-party-advisory
https://security-tracker.debian.org/tracker/CVE-2021-3999third-party-advisory
https://lists.debian.org/debian-lts-announce/2022/10/msg00021.htmlmailing-list, third-party-advisory
https://security.netapp.com/advisory/ntap-20221104-0001/third-party-advisory
https://cert-portal.siemens.com/productcert/html/ssa-831302.html
https://cert-portal.siemens.com/productcert/html/ssa-398330.html

Sources

SourceRecordLicence
CVE ListCVE-2021-3999 changed 2026-10-14CVE Terms of Use
NVDCVE-2021-3999 changed 2026-10-14Public domain