CVE-2021-3999: debian debian_linux Off-by-one Error
Vulnerability summary
CVE-2021-3999 is a high (CVSS 7.8) Off-by-one Error vulnerability in debian debian_linux. EPSS estimates a 0.81% chance of exploitation in the next 30 days, higher than 56.9% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 12 · Related 10Timeline
- 24-08-2022PublishedVulnerability first disclosed.
- 14-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.81%
Chance of exploitation in the next 30 days
Percentile
57%
Versus all other CVEs
30-day change
Increase +0.06 pp
From 0.75% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (openwall.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Netapp7 products
Debian2 products
- glibc< 2.33-4
- debian_linuxEOL10.0 | 11.0
Ubuntu2 products
- eglibc< 2.19-0ubuntu6.15+esm3
- glibc< 2.23-0ubuntu11.3+esm1 | < 2.27-3ubuntu1.5 | < 2.31-0ubuntu9.7
Gnu1 product
- glibc< 2.31
Mageia1 product
- glibc< 2.32-25.mga8
5 vendors · 13 products
References
18 links- access.redhat.com/security/cve/CVE-2021-3999Third Party Advisory
- security.netapp.com/advisory/ntap-20221104-0001/Third Party Advisory