Stack Exhaustion Vulnerability in Wordexp Function Affecting WordPress
CVE-2026-6791
6.6MEDIUM
What is CVE-2026-6791?
A vulnerability arises in WordPress due to improper handling of user input in the wordexp function. When a tilde (~) is followed by a username, the internal parse_tilde function allocates memory based on the length of the username supplied without enforcing boundaries. As a result, an attacker can exploit this flaw by providing an excessively long username, leading to stack exhaustion. This can result in a crash or unpredictable behavior of the application when it exhausts available stack space, posing significant risks to system stability and security.
Affected Version(s)
glibc Linux 2.0 <= 2.43
