CVE-2021-3998: glibc · - Out-of-bounds Read
Affects glibcSource CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 2.2% chance of exploitation in 30 days – higher than 82% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 24 Aug 2022
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
AI-suggested
To mitigate CVE-2021-3998 effectively, European organizations should prioritize the following actions: 1) Immediate patching: Upgrade glibc to a version where this vulnerability is fixed (check distributions for updated packages, e.g., glibc 2.34 or later). 2) Audit and monitor: Identify all systems running affected glibc versions, including containers and embedded devices, and monitor logs for suspicious usage of realpath() or unusual file path resolution activities. 3) Restrict input vectors: Harden applications and services that accept file path inputs by validating and sanitizing inputs rigorously to reduce the attack surface. 4) Implement memory protection mechanisms: Use security features such as Address Space Layout Randomization (ASLR) and stack canaries to complicate exploitation attempts. 5) Network segmentation: Limit exposure of vulnerable systems by segmenting networks and restricting access to critical servers. 6) Incident response readiness: Prepare detection and response plans for potential exploitation attempts, including anomaly detection for unexpected memory disclosures. 7) Vendor coordination: Engage with Linux distribution vendors and software suppliers to ensure timely updates and patches are applied across all environments.
Description
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.
References
- openwall.com/lists/oss-security/2022/01/24/4 (opens in a new tab)
- sourceware.org/bugzilla/show_bug.cgi?id=28770 (opens in a new tab)
- sourceware.org/git/gitweb.cgi?p=glibc.git%3Bh=ee8d5e33adb284601c00c94687bc907e10aec9bb (opens in a new tab)
- sourceware.org/git/gitweb.cgi?p=glibc.git%3Bh=84d2d0fe20bdf94feed82b21b4d7d136db471f03 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2024633 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2021-3998 (opens in a new tab)
- security-tracker.debian.org/tracker/CVE-2021-3998 (opens in a new tab)
- security.netapp.com/advisory/ntap-20221020-0003/ (opens in a new tab)