CVE-2021-35942
Summary
| CVE | CVE-2021-35942 |
|---|---|
| State | PUBLISHED |
| Assigner | mitre |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2021-07-22 18:15:23 UTC |
| Updated | 2026-10-14 12:17:13 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 9.1 CRITICAL from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Problem Types: CWE-190 | CWE-704 | n/a | CWE-704 CWE-704 Incorrect Type Conversion or Cast
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 9.1 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| 3.1 | ADP | DECLARED | 9.1 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| 3.1 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | Secondary | 9.1 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| 2.0 | [email protected] | Primary | 6.4 | AV:N/AC:L/Au:N/C:P/I:N/A:P |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
NoneAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
CVSS v2.0 Breakdown
Access Vector
NetworkAccess Complexity
LowAuthentication
NoneConfidentiality
PartialIntegrity
NoneAvailability
PartialAV:N/AC:L/Au:N/C:P/I:N/A:P
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Debian | Debian Linux | 10.0 | All | All | All |
| Application | Gnu | Glibc | All | All | All | All |
| Application | Netapp | Active Iq Unified Manager | - | All | All | All |
| Application | Netapp | E-series Santricity Os Controller | All | All | All | All |
| Application | Netapp | Hci Management Node | - | All | All | All |
| Application | Netapp | Ontap Select Deploy Administration Utility | - | All | All | All |
| Application | Netapp | Solidfire | - | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Na | N/a | affected n/a | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
| ADP | Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | affected V3.1.0 V3.1.5 custom | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| cert-portal.siemens.com/productcert/html/ssa-398330.html | 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e | cert-portal.siemens.com | |
| GNU C Library: Multiple Vulnerabilities (GLSA 202208-24) — Gentoo security | af854a3a-2127-422b-91ae-364da2661108 | security.gentoo.org | Third Party Advisory |
| Security Exceptions - glibc wiki | af854a3a-2127-422b-91ae-364da2661108 | sourceware.org | Not Applicable |
| CVE-2021-35942 GNU C Library (glibc) Vulnerability in NetApp Products | NetApp Product Security | af854a3a-2127-422b-91ae-364da2661108 | security.netapp.com | Third Party Advisory |
| cert-portal.siemens.com/productcert/html/ssa-831302.html | 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e | cert-portal.siemens.com | |
| 28011 – (CVE-2021-35942) Wild read in wordexp (parse_param) (CVE-2021-35942) | af854a3a-2127-422b-91ae-364da2661108 | sourceware.org | Issue Tracking, Third Party Advisory |
| [SECURITY] [DLA 3152-1] glibc security update | af854a3a-2127-422b-91ae-364da2661108 | lists.debian.org | Mailing List, Third Party Advisory |
| sourceware.org Git - glibc.git/commit | af854a3a-2127-422b-91ae-364da2661108 | sourceware.org | Broken Link |
| sourceware.org Git - glibc.git/commit | MITRE | sourceware.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 159493 Oracle Enterprise Linux Security Update for glibc (ELSA-2021-4358)
- 159561 Oracle Enterprise Linux Security Update for glibc (ELSA-2021-9560)
- 179862 Debian Security Update for glibc (CVE-2021-35942)
- 181138 Debian Security Update for glibc (DLA 3152-1)
- 198685 Ubuntu Security Notification for GNU C Library Vulnerabilities (USN-5310-1)
- 239791 Red Hat Update for glibc security (RHSA-2021:4358)
- 281716 Fedora Security Update for glibc (FEDORA-2021-e14e86e40e)
- 281729 Fedora Security Update for glibc (FEDORA-2021-3f4132bb56)
- 352840 Amazon Linux Security Advisory for glibc: ALAS2-2021-1703
- 591406 Siemens SIMATIC S7-1500 CPU GNU/Linux subsystem Multiple Vulnerabilities (SSB-439005, ICSA-22-104-13)
- 670703 EulerOS Security Update for glibc (EulerOS-SA-2021-2461)
- 670768 EulerOS Security Update for glibc (EulerOS-SA-2021-2526)
- 670792 EulerOS Security Update for glibc (EulerOS-SA-2021-2550)
- 670880 EulerOS Security Update for compat-glibc (EulerOS-SA-2021-2653)
- 671025 EulerOS Security Update for glibc (EulerOS-SA-2021-2660)
- 671239 EulerOS Security Update for compat-glibc (EulerOS-SA-2022-1158)
- 671255 EulerOS Security Update for glibc (EulerOS-SA-2022-1164)
- 710605 Gentoo Linux GNU C Library Multiple Vulnerabilities (GLSA 202208-24)
- 750897 SUSE Enterprise Linux Security Update for glibc (SUSE-SU-2021:2480-1)
- 751196 SUSE Enterprise Linux Security Update for glibc (SUSE-SU-2021:3289-1)
- 751200 OpenSUSE Security Update for glibc (openSUSE-SU-2021:3291-1)
- 751212 SUSE Enterprise Linux Security Update for glibc (SUSE-SU-2021:3385-1)
- 751242 OpenSUSE Security Update for glibc (openSUSE-SU-2021:1374-1)
- 900060 CBL-Mariner Linux Security Update for glibc 2.28
- 903139 Common Base Linux Mariner (CBL-Mariner) Security Update for glibc (4820)
- 940330 AlmaLinux Security Update for glibc (ALSA-2021:4358)
- 960043 Rocky Linux Security Update for glibc (RLSA-2021:4358)