Vulnerabilities

CVE-2021-35942

Critical 9.1 CVSS 3.1

Description

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.

Description as published by the source, in English.

Key facts

Published
2021-07-22
Last modified
2026-10-14
Assigned by
cve@mitre.org
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
2.7 % higher than 84 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
Debian Debian Linux 10.0 Affected
Gnu Glibc < 2.31 Affected
Netapp Active Iq Unified Manager all versions listed Affected
Netapp E-series Santricity Os Controller ≥ 11.0, ≤ 11.70.1 Affected
Netapp Hci Management Node all versions listed Affected
Netapp Ontap Select Deploy Administration Utility all versions listed Affected
Netapp Solidfire all versions listed Affected

Weakness type

  • CWE-190: Integer Overflow or Wraparound

    The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is i…

  • CWE-704: Incorrect Type Conversion or Cast

    The product does not correctly convert an object, resource, or structure from one type to a different type.

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities