CVE-2021-35942
JSON

9.1critical

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
9.1critical CVSS:3.1 by CISA-ADP
Exploit likelihood
2.75% (higher than 86% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
gnu glibcbefore 2.31NVD
netapp active_iq_unified_managerNot specifiedNVD
netapp e-series_santricity_os_controllerfrom 11.0 up to 11.70.1NVD
netapp hci_management_nodeNot specifiedNVD
netapp ontap_select_deploy_administration_utilityNot specifiedNVD
netapp solidfireNot specifiedNVD
debian debian_linux10.0NVD

All scores

CISA-ADP9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
NVD9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
NVD6.4medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:P

Classification

CWE-190CWE-704

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

La función wordexp de la biblioteca GNU C (también se conoce como glibc) versiones hasta 2.33, puede bloquearse o leer memoria arbitraria en la función parse_param (en el archivo posix/wordexp.c) cuando se llama con un patrón diseñado que no es confiable, resultando en una denegación de servicio o divulgación de información. Esto ocurre porque atoi fue usado pero debería haber sido usado strtoul para asegurar cálculos correctos

References

Sources

SourceRecordLicence
CVE ListCVE-2021-35942 changed 2026-10-14CVE Terms of Use
NVDCVE-2021-35942 changed 2026-10-14Public domain