CVE-2021-35942CWE-190CWE-704

CVE-2021-35942

Critical · published July 22, 2021

CVSS v3.1
9.1
EPSS
3%
Percentile
86.1
In the wild
Unconfirmed
What it is

🔥 Just one untrusted input can bring down the whole system! The wordexp function in glibc is a ticking time bomb that could crash or expose arbitrary memory. ⚠️ Think of it like a restaurant kitchen where a chef accepts any recipe card without checking it first — a dodgy recipe could ruin the entire meal, or worse, expose kitchen secrets! If an attacker crafts a malicious pattern, they could cause a denial of service by crashing the application or even disclose sensitive information from memory. Imagine the chaos when your system just stops working because it couldn't handle a bad order!

Put simply

Think of it like a restaurant kitchen where a chef accepts any recipe card without checking it first — a dodgy recipe could ruin the entire meal, or worse, expose kitchen secrets! This vulnerability arises in the GNU C Library's wordexp function, due to the improper use of atoi instead of strtoul, leading to unsafe memory access when processing untrusted input.

What to do

If an attacker crafts a malicious pattern, they could cause a denial of service by crashing the application or even disclose sensitive information from memory. Imagine the chaos when your system just stops working because it couldn't handle a bad order! To protect your systems, immediately update glibc to version 2.34 or later. Review and sanitize any input that interacts with the wordexp function to prevent untrusted patterns from causing crashes. Make sure to audit your code for similar vulnerabilities! You've got this! Keep that code secure and your systems running smoothly. 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.02753 · 86.1th percentile
Weaknesses
CWE-190 · Integer Overflow or Wraparound; CWE-704 · Incorrect Type Conversion or Cast
Published
2021-07-22T22:15Z
Affected products (7)
ProductVersionsFixed in
netapp/active_iq_unified_managerall versions—
netapp/e-series_santricity_os_controller≥ 11.0, ≤ 11.70.1—
netapp/hci_management_nodeall versions—
netapp/ontap_select_deploy_administration_utilityall versions—
netapp/solidfireall versions—
gnu/glibc< 2.312.31
debian/debian_linuxall versions—
References (14)
EPSS history
Timeline
  • 22 JUL 00:00Z
    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…
    cvelistv5