Skip to main content
CVE-2021-3998VulnerabilityPublished Updated

CVE-2021-3998: glibc · - Out-of-bounds Read

Affects glibcSource CVE Database V5

0

Not known to be exploited · CVSS 7.5 High.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 24 Aug 2022

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

Community reviews

Loading reviews…