CVE-2021-35942
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
- https://lists.debian.org/debian-lts-announce/2022/10/msg00021.html
- https://security.gentoo.org/glsa/202208-24
- https://security.netapp.com/advisory/ntap-20210827-0005/
- https://sourceware.org/bugzilla/show_bug.cgi?id=28011
- https://sourceware.org/git/?p=glibc.git%3Ba%3Dcommit%3Bh%3D5adda61f62b77384718b4c0d8336ad…
- https://sourceware.org/glibc/wiki/Security%20Exceptions
- https://lists.debian.org/debian-lts-announce/2022/10/msg00021.html
- https://security.gentoo.org/glsa/202208-24
- https://security.netapp.com/advisory/ntap-20210827-0005/
- https://sourceware.org/bugzilla/show_bug.cgi?id=28011
- https://sourceware.org/git/?p=glibc.git%3Ba%3Dcommit%3Bh%3D5adda61f62b77384718b4c0d8336ad…
- https://sourceware.org/glibc/wiki/Security%20Exceptions
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-831302.html
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.