Back to Labs
Security Advisory

CVE-2021-35942

About

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.

Weakness (CWE):CWE-190CWE-704

Rainforest analyst review

The glibc wordexp function mishandles a crafted pattern: it used atoi where strtoul was needed, so an untrusted input to parse_param can trigger an out-of-bounds read that crashes the process or leaks arbitrary memory. This is a library-level flaw, so the real exposure is wherever an application passes attacker-influenced strings into wordexp for shell-style word expansion. Impact is denial of service or information disclosure, not code execution.

The practical risk of a glibc bug is entirely about reachability of the vulnerable function, and wordexp is not on most hot paths — it's a specific shell-expansion API that comparatively few programs feed untrusted input to. So while glibc is everywhere and the CVE fans out across a long list of Debian, NetApp, and other products that bundle it, the population of processes actually calling wordexp with attacker-controlled patterns is far smaller than the SBOM footprint suggests. That's why it's high, not critical, and why blanket panic is misplaced.

Our approach is dependency inventory tempered by exploitability triage. The bug rides in on countless SBOMs, so we'd track it as a glibc version item across affected NetApp and Debian-based assets, but we rank it by whether any exposed service on those hosts actually routes untrusted input into wordexp — most don't. For the majority this is a patch-on-cadence library update; the sharp end is narrow, and we'd resist letting a ubiquitous-component CVE consume attention out of proportion to its real reachable surface.

References

Related CVEs

Frequently asked questions

What is CVE-2021-35942?

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.

How severe is CVE-2021-35942?

CVE-2021-35942 carries a CVSS 3.1 base score of 9.1, rated critical. On the Rainforest Risk Index — which weighs the severity alongside how easy the flaw is to reach and how broad its impact is — it scores 89 out of 100, in the critical band.

How is CVE-2021-35942 exploited?

According to the CVSS vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H): attack vector Network, attack complexity Low, privileges required None, user interaction None. Impact on confidentiality High, integrity None and availability High.

Which products are affected by CVE-2021-35942?

Public advisories list the following as affected: active iq unified manager, debian linux, e-series santricity os controller, glibc, hci management node, ontap select deploy administration utility, +1. Check the references on this page for the exact versions each vendor confirms.

How do I fix CVE-2021-35942?

Apply the fix the vendor published — the references on this page link to the primary advisories and patches. When patching can't happen right away, reduce the exposure of the affected component and watch it for exploitation attempts. Rainforest customers see this vulnerability correlated to their own assets and prioritized by real exposure, not by score alone.

Empower Your Security Strategy with Rainforest

Discover vulnerabilities early, prioritize critical threats, and protect what truly matters. Rainforest streamlines your security operations, saving you time and reducing costs, so you can focus on what drives your business forward.

Share this:LinkedInX Email