CVE-2021-35942

critical

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.

References

https://sourceware.org/bugzilla/show_bug.cgi?id=28011

https://sourceware.org/git/?p=glibc.git;a=commit;h=5adda61f62b77384718b4c0d8336ade8f2b4b35c

https://sourceware.org/glibc/wiki/Security%20Exceptions

https://security.netapp.com/advisory/ntap-20210827-0005/

https://security.gentoo.org/glsa/202208-24

https://lists.debian.org/debian-lts-announce/2022/10/msg00021.html

Details

Source: MITRE

Published: 2021-07-22

Updated: 2022-11-08

Type: CWE-190

Risk Information

CVSS v2

Base Score: 6.4

Vector: AV:N/AC:L/Au:N/C:P/I:N/A:P

Impact Score: 4.9

Exploitability Score: 10

Severity: MEDIUM

CVSS v3

Base Score: 9.1

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Impact Score: 5.2

Exploitability Score: 3.9

Severity: CRITICAL