Back to CVE records
Medium 6.6Published Aug 10, 2026

CVE-2026-6791Potential stack-based buffer clash during tilde expansion in wordexp

Updated under an hour ago ()

Does this affect you?

It affects The GNU C Library glibc. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
6.6 MEDIUM (v4.0, CNA)CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:L/SA:H/E:U
Weakness (CWE)
CWE-121
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
glibc
NVD analysis
Awaiting Analysis
Record last updated
Aug 12, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
The GNU C Library glibc
gnu_c_library:glibc (from the name)
from 2.0 through 2.43
CNA record

References

  • issue-tracking

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.