# CVE-2021-35942: The wordexp function in the GNU C Library (aka glibc) through 2.33 may crash or read arbitrary memory in parseparam (in posix/wordexp.c) wh…

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.75%, higher than 86% of CVEs (2026-12-01)
- Published: 2021-07-22T00:00:00.000Z
- Modified: 2026-10-14T12:17:13.210Z
- Weaknesses: CWE-190, CWE-704
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gnu glibc: before 2.31
- netapp active_iq_unified_manager: no versions given
- netapp e-series_santricity_os_controller: from 11.0 up to 11.70.1
- netapp hci_management_node: no versions given
- netapp ontap_select_deploy_administration_utility: no versions given
- netapp solidfire: no versions given
- debian debian_linux: 10.0

## Every score

- CISA-ADP: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:P`

## References

- <https://sourceware.org/glibc/wiki/Security%20Exceptions> (not-applicable)
- <https://sourceware.org/bugzilla/show_bug.cgi?id=28011> (issue-tracking, third-party-advisory)
- <https://sourceware.org/git/?p=glibc.git%3Ba=commit%3Bh=5adda61f62b77384718b4c0d8336ade8f2b4b35c> (broken-link)
- <https://security.netapp.com/advisory/ntap-20210827-0005/> (third-party-advisory)
- <https://security.gentoo.org/glsa/202208-24> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/10/msg00021.html> (mailing-list, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-831302.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>

## Sources

- CVE List: [CVE-2021-35942](https://www.cve.org/CVERecord?id=CVE-2021-35942), CVE Terms of Use, modified 2026-10-14
- NVD: [CVE-2021-35942](https://nvd.nist.gov/vuln/detail/CVE-2021-35942), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2021-35942 · Whole record: https://cve.day/CVE-2021-35942.json · Rebuilt by cve.day 2026-11-25T22:58:02.839Z
