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.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"gnu:glibc": [
"< 2.31"
]
},
"database_specific": {
"status": "Modified"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-35942",
"id": "CVE-2021-35942",
"imported": "2026-12-02T20:36:47.143Z",
"modified": "2026-10-14T12:17:13.210Z",
"published": "2021-07-22T18:15:23.287Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2021-35942"
}
]
}