Home / glibc / glibc / CVE-2021-3998
CVE-2021-3998: is it exploited, and which versions of glibc are affected and fixed?
CVE-2021-3998 is an out-of-bounds read 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, 17:09 UTC). Affected: glibc Affects glibc v2.33 and above. (CVE record by redhat). Fixed in 2.35 (NVD). Severity: High (7.5, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:09 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:46 UTC.
What is CVE-2021-3998?
A flaw was found in glibc. The realpath() function can mistakenly return an unexpected value, potentially leading to information leakage and disclosure of sensitive data.
From the CVE record by redhat, last updated October 14, 2026, 09:54 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| glibc | Affects glibc v2.33 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 | from 2.33 before 2.35 | 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-3998?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | CISA-ADP |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | 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-3998 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, June 9, 2025)
- EPSS
- 2.27% probability of exploitation activity in the next 30 days, percentile 83.6 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
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=28770
- https://sourceware.org/git/gitweb.cgi?p=glibc.git%3Bh=ee8d5e33adb284601c00c94687bc907e10aec9bb
- https://sourceware.org/git/gitweb.cgi?p=glibc.git%3Bh=84d2d0fe20bdf94feed82b21b4d7d136db471f03
- https://bugzilla.redhat.com/show_bug.cgi?id=2024633
- https://access.redhat.com/security/cve/CVE-2021-3998
- https://security-tracker.debian.org/tracker/CVE-2021-3998
- https://security.netapp.com/advisory/ntap-20221020-0003/
- 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:54 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, 17: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-3999 glibc: off-by-one Error
Questions about CVE-2021-3998
Is CVE-2021-3998 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:09 UTC. FIRST's EPSS gives it a 2.27% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of glibc are affected by CVE-2021-3998?
glibc Affects glibc v2.33 and above., per the CVE record by redhat. The tables above give every range the sources list.
Which version fixes CVE-2021-3998?
2.35, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-3998?
High (7.5, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2021-3998?
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.