« List of all CVEs

CVE-2021-35942

Published: 7/22/2021 Last updated: 2/13/2026 Reserved: 6/29/2021

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.

CNA assigner: mitre (8254265b-2729-46b6-b9e3-3dfca2d5bfca) Requested by: n/a

Metrics

Version Score Severity Vector String
3.1 9.1 Critical CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Opam packages affected (1)

gettext-stub

Products affected (1)

Product Vendor Version
n/a n/a <= 22.1.2

References (24)