All vulnerabilities

Servers and applications

CVE-2021-35942

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.

Severity
Critical 9.1
Published
22 Jul 2021
Last changed
14 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.31
Sources
NVD

Affected software

SoftwareAffected versions
GNU C LibraryServers and applications · cpe:a:gnu:glibc
  • Every version before 2.31

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2021-35942
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2021-35942