VDB

CVE-2026-6791

CVE-2026-6791 PUBLISHED CVSS 6.6 MEDIUM

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.

PackageEcosystemFixed in
glibc-langpack-orerrata.rockylinux.org2.34-283.el9
glibc-langpack-bhberrata.rockylinux.org2.39-142.el10, 2.34-283.el9
glibc-langpack-iserrata.rockylinux.org2.39-142.el10, 2.34-283.el9
glibc-langpack-sserrata.rockylinux.org2.34-283.el9
glibc-langpack-swerrata.rockylinux.org2.34-283.el9
glibc-langpack-mnierrata.rockylinux.org2.34-283.el9, 2.28-251.el8
glibc-langpack-zherrata.rockylinux.org2.34-283.el9
glibc-langpack-taerrata.rockylinux.org2.28-251.el8
glibc-langpack-mlerrata.rockylinux.org2.34-283.el9
glibc-utils-debuginfoerrata.rockylinux.org2.34-283.el9
glibc-langpack-mgerrata.rockylinux.org2.28-251.el8
glibc-langpack-bemerrata.rockylinux.org2.39-142.el10

65 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 4.0
6.6
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

Affected products

VendorProductVersions
The GNU C Libraryglibc2.0
wolfiglibc0
wolfiglibc-2.430
chainguardglibc-2.430
chainguardglibc0
The GNU C Libraryglibc2.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

References

  • issue-tracking
Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›