Home / glibc / glibc / CVE-2021-3999
CVE-2021-3999: is it exploited, and which versions of glibc are affected and fixed?
CVE-2021-3999 is an off-by-one Error vulnerability in glibc. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 18:09 UTC). Affected: glibc Fixed in glibc v2.31 and above. (CVE record by redhat). Fixed in 2.31 (NVD). Severity: High (7.8, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:09 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:46 UTC.
What is CVE-2021-3999?
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.
From the CVE record by redhat, last updated October 14, 2026, 09:59 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| glibc | Fixed in glibc v2.31 and above. |
As the CVE record by redhat states it, last updated October 14, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| gnu | glibc | before 2.31 | application |
| debian | debian linux | 10.0 | operating system |
| debian | debian linux | 11.0 | operating system |
| netapp | e-series performance analyzer | all versions | application |
| netapp | nfs plug-in | all versions | application |
| netapp | ontap select deploy administration utility | all versions | application |
| netapp | h300s firmware | all versions | operating system |
| netapp | h500s firmware | all versions | operating system |
| netapp | h700s firmware | all versions | operating system |
| netapp | h410s firmware | all versions | operating system |
| netapp | h410c firmware | all versions | operating system |
NVD analysis (status Modified), last modified October 14, 2026, 10:17 UTC.
How severe is CVE-2021-3999?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-3999 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, December 2, 2025)
- EPSS
- 0.81% probability of exploitation activity in the next 30 days, percentile 58.2 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-193 Off-by-one Error
Where are the vendor advisories and references?
- https://www.openwall.com/lists/oss-security/2022/01/24/4
- https://sourceware.org/bugzilla/show_bug.cgi?id=28769
- https://sourceware.org/git/gitweb.cgi?p=glibc.git%3Bh=23e0e8f5f1fb5ed150253d986ecccdc90c2dcd5e
- https://bugzilla.redhat.com/show_bug.cgi?id=2024637
- https://access.redhat.com/security/cve/CVE-2021-3999
- https://security-tracker.debian.org/tracker/CVE-2021-3999
- [debian-lts-announce] 20221017 [SECURITY] [DLA 3152-1] glibc security update mailing-list
- https://security.netapp.com/advisory/ntap-20221104-0001/
- https://cert-portal.siemens.com/productcert/html/ssa-831302.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
When was it published, and where is the official record?
- Reserved
- November 22, 2021
- Published
- August 24, 2022, 00:00 UTC
- CVE record updated
- October 14, 2026, 09:59 UTC by redhat
- NVD
- Modified, last modified October 14, 2026, 10:17 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:46 UTC; KEV December 3, 2026, 18:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect glibc?
- Aug 10, 2026CVE-2026-6368 glibc: use of uninitialized resource
- Jan 31, 2024CVE-2023-6780 glibc: incorrect Calculation of Buffer Size
- Jan 31, 2024CVE-2023-6779 glibc: heap buffer overflow
- Jan 31, 2024CVE-2023-6246 glibc: heap buffer overflow
- Aug 24, 2022CVE-2021-3998 glibc: out-of-bounds read
Questions about CVE-2021-3999
Is CVE-2021-3999 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 18:09 UTC. FIRST's EPSS gives it a 0.81% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of glibc are affected by CVE-2021-3999?
glibc Fixed in glibc v2.31 and above., per the CVE record by redhat. The tables above give every range the sources list.
Which version fixes CVE-2021-3999?
2.31, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-3999?
High (7.8, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2021-3999?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.