CVE-2026-6791
Potential stack-based buffer clash during tilde expansion in wordexp
Reported by glibc · Published August 10, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| glibc-langpack-or | errata.rockylinux.org | 2.34-283.el9 |
| glibc-langpack-bhb | errata.rockylinux.org | 2.39-142.el10, 2.34-283.el9 |
| glibc-langpack-is | errata.rockylinux.org | 2.39-142.el10, 2.34-283.el9 |
| glibc-langpack-ss | errata.rockylinux.org | 2.34-283.el9 |
| glibc-langpack-sw | errata.rockylinux.org | 2.34-283.el9 |
| glibc-langpack-mni | errata.rockylinux.org | 2.34-283.el9, 2.28-251.el8 |
| glibc-langpack-zh | errata.rockylinux.org | 2.34-283.el9 |
| glibc-langpack-ta | errata.rockylinux.org | 2.28-251.el8 |
| glibc-langpack-ml | errata.rockylinux.org | 2.34-283.el9 |
| glibc-utils-debuginfo | errata.rockylinux.org | 2.34-283.el9 |
| glibc-langpack-mg | errata.rockylinux.org | 2.28-251.el8 |
| glibc-langpack-bem | errata.rockylinux.org | 2.39-142.el10 |
65 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| The GNU C Library | glibc | 2.0 |
| wolfi | glibc | 0 |
| wolfi | glibc-2.43 | 0 |
| chainguard | glibc-2.43 | 0 |
| chainguard | glibc | 0 |
| The GNU C Library | glibc | 2.0 |
Timeline
- Aug 10, 2026 CVE Published
- Aug 16, 2026 Security Advisory (4 in total, the first dated here)
- Aug 24, 2026 EPSS Score (19 in total, the first dated here)
- Oct 7, 2026 Distribution Patch (6 in total, the first dated here)
- Oct 24, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-6791
vulnetix vdb fixes CVE-2026-6791
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-6791/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart