CVE-2026-6791CWE-121

CVE-2026-6791

published August 10, 2026

CVSS
6.6
EPSS
0%
Percentile
11.8
In the wild
Unconfirmed
What it is

When expanding paths that begin with a tilde (~) followed by a username, the internal parse_tilde function extracts the username to determine the user's home directory. The implementation allocates memory for this username directly on the stack using the strndupa macro. Because the size of this allocation was determined by the length of the user-supplied input without any bounds checks, passing an excessively long username e.g. thousands of characters, forces the thread to exhaust its stack space. Thus if an application passes untrusted, attacker-controlled input to the wordexp function, an attacker can trigger a stack clash.

The record
Technical detail
CVSS
6.6 · NONE
CVSS v4.0
Not supplied
EPSS
0.00220 · 11.8th percentile
Weakness
CWE-121 · Stack-based Buffer Overflow
Published
2026-08-10T23:17Z
References (1)
EPSS history
Timeline
  • 10 AUG 18:41Z
    Potential stack-based buffer clash during tilde expansion in wordexp
    cvelistv5