CVE-2021-35942
Reported by mitre · Published July 22, 2021
The wordexp function in the GNU C Library (aka glibc) through 2.33 may crash or read arbitrary memory in parse_param (in posix/wordexp.c) when called with an untrusted, crafted pattern, potentially resulting in a denial of service or disclosure of information. This occurs because atoi was used but strtoul should have been used to ensure correct calculations.
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-langpack-it | Amazon Linux | 2.26-53.amzn2 |
| glibc-langpack-uk | Amazon Linux | 2.26-53.amzn2 |
| glibc-langpack-eo | Amazon Linux | 2.26-53.amzn2 |
| glibc-langpack-ks | Amazon Linux | 2.26-53.amzn2 |
| glibc-langpack-tk | Amazon Linux | 2.26-53.amzn2 |
| glibc-langpack-ss | Amazon Linux | 2.26-53.amzn2 |
| glibc-langpack-tr | Amazon Linux | 2.26-53.amzn2 |
| glibc-langpack-nn | Amazon Linux | 2.26-53.amzn2 |
| glibc-static | Amazon Linux | 2.26-53.amzn2 |
| glibc-langpack-quz | Amazon Linux | 2.26-53.amzn2 |
| glibc-langpack-wa | Amazon Linux | 2.26-53.amzn2 |
| glibc-langpack-shs | Amazon Linux | 2.26-53.amzn2 |
88 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | glibc-langpack-it | 0 |
| amazon:2 | glibc-langpack-uk | 0 |
| amazon:2 | glibc-langpack-eo | 0 |
| amazon:2 | glibc-langpack-ks | 0 |
| amazon:2 | glibc-langpack-tk | 0 |
| amazon:2 | glibc-langpack-ss | 0 |
| amazon:2 | glibc-langpack-tr | 0 |
| amazon:2 | glibc-langpack-nn | 0 |
| amazon:2 | glibc-static | 0 |
| amazon:2 | glibc-langpack-quz | 0 |
| amazon:2 | glibc-langpack-wa | 0 |
| amazon:2 | glibc-langpack-shs | 0 |
| amazon:2 | glibc-langpack-si | 0 |
| amazon:2 | glibc-langpack-bs | 0 |
| amazon:2 | glibc-langpack-sa | 0 |
| amazon:2 | glibc-langpack-ts | 0 |
| amazon:2 | glibc-langpack-ga | 0 |
| amazon:2 | glibc-langpack-bo | 0 |
| amazon:2 | glibc-langpack-os | 0 |
…and 185 more
Timeline
- Jul 22, 2021 CVE Published
- Jul 23, 2021 EPSS Score (30 in total, the first dated here)
- Apr 3, 2025 PoC Published (2 in total, the first dated here)
- Jan 25, 2026 CVE Updated
- Jun 1, 2026 Security Advisory (5 in total, the first dated here)
- Jul 23, 2026 Distribution Patch
- Jul 29, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-35942
vulnetix vdb fixes CVE-2021-35942
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/CVE-2021-35942/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart