UBUNTU-CVE-2021-35942
Dashboard / Vulnerabilities / UBUNTU-CVE-2021-35942
UBUNTU-CVE-2021-35942
Published: 22 Jul 2021Last Modified: 22 Apr 2026
Upstream:
Aliases:
Summary:
Details: 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.
References: https://ubuntu.com/security/CVE-2021-35942, https://ubuntu.com/security/notices/USN-5310-1, https://ubuntu.com/security/notices/USN-5699-1, https://www.cve.org/CVERecord?id=CVE-2021-35942
Affected packages
Package
Name: eglibc
Purl: pkg:deb/ubuntu/[email protected]+esm4?arch=source&distro=esm-infra-legacy/trusty
Affected ranges
Type: ECOSYSTEM
Events:
Introduced- 0
Fixed -None
Affected versions
2.17-93ubuntu4
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
