DEBIAN-CVE-2021-3999
Record from OSV · Published August 24, 2022
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| glibc | Debian:12 | 2.33-4 |
| glibc | Debian:13 | 2.33-4 |
| glibc | Debian:14 | 2.33-4 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Debian:12 | glibc | 0 |
| Debian:13 | glibc | 0 |
| Debian:14 | glibc | 0 |
Timeline
- Aug 24, 2022 CVE Published
- Oct 15, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln DEBIAN-CVE-2021-3999
vulnetix vdb fixes DEBIAN-CVE-2021-3999
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/DEBIAN-CVE-2021-3999/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart