CVE-2021-35942

glibc: Arbitrary read in wordexp()

Published Jul 22, 2021 CVSS 3.1 · 9.1 Critical EPSS 2.8% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3152-1 glibc security update
EUVD EUVD EUVD-2021-22577 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.
Ubuntu USN Ubuntu USN USN-5310-1 GNU C Library vulnerabilities
Ubuntu USN Ubuntu USN USN-5699-1 GNU C Library vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-704
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}