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.

Analysis

No analysis available yet

Remediation

No remediation available yet

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'}

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

  • CWE-704

    Incorrect Type Conversion or Cast

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Oct 14, 2026, 11:48 AM
Reserved
Jun 29, 2021, 12:00 AM
Status
Modified
Published
Jul 22, 2021, 6:15 PM
Modified
Oct 14, 2026, 12:17 PM
Severity
Moderate
Public date
Jun 30, 2021, 12:00 AM