CVE-2021-35942
- State
- Published
- Severity
- 9.1 Critical
- Published
- Jul 22, 2021
- Updated
- Oct 14, 2026
- Reserved
- Jun 29, 2021
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 9.1 Critical | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H | CISA-ADP |
Weaknesses
- CWE-704 Incorrect Type Conversion or Cast
Affected Products
| Product | Versions |
|---|---|
n/an/a |
|
References
- https://sourceware.org/glibc/wiki/Security%20Exceptions
- https://sourceware.org/bugzilla/show_bug.cgi?id=28011
- https://sourceware.org/git/?p=glibc.git%3Ba=commit%3Bh=5adda61f62b77384718b4c0d8336ade8f2b4b35c
- https://security.netapp.com/advisory/ntap-20210827-0005/
- GLSA-202208-24vendor-advisory
- [debian-lts-announce] 20221017 [SECURITY] [DLA 3152-1] glibc security updatemailing-list
- https://cert-portal.siemens.com/productcert/html/ssa-831302.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.