VDB

CVE-2021-35942

CVE-2021-35942 PUBLISHED CVSS 9.1 CRITICAL

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.

PackageEcosystemFixed in
glibc-langpack-itAmazon Linux2.26-53.amzn2
glibc-langpack-ukAmazon Linux2.26-53.amzn2
glibc-langpack-eoAmazon Linux2.26-53.amzn2
glibc-langpack-ksAmazon Linux2.26-53.amzn2
glibc-langpack-tkAmazon Linux2.26-53.amzn2
glibc-langpack-ssAmazon Linux2.26-53.amzn2
glibc-langpack-trAmazon Linux2.26-53.amzn2
glibc-langpack-nnAmazon Linux2.26-53.amzn2
glibc-staticAmazon Linux2.26-53.amzn2
glibc-langpack-quzAmazon Linux2.26-53.amzn2
glibc-langpack-waAmazon Linux2.26-53.amzn2
glibc-langpack-shsAmazon Linux2.26-53.amzn2

88 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
9.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Affected products

VendorProductVersions
n/an/an/a
amazon:2glibc-langpack-it0
amazon:2glibc-langpack-uk0
amazon:2glibc-langpack-eo0
amazon:2glibc-langpack-ks0
amazon:2glibc-langpack-tk0
amazon:2glibc-langpack-ss0
amazon:2glibc-langpack-tr0
amazon:2glibc-langpack-nn0
amazon:2glibc-static0
amazon:2glibc-langpack-quz0
amazon:2glibc-langpack-wa0
amazon:2glibc-langpack-shs0
amazon:2glibc-langpack-si0
amazon:2glibc-langpack-bs0
amazon:2glibc-langpack-sa0
amazon:2glibc-langpack-ts0
amazon:2glibc-langpack-ga0
amazon:2glibc-langpack-bo0
amazon:2glibc-langpack-os0

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›