VDB

CVE-2026-6791

CVE-2026-6791 PUBLISHED CVSS 6.6 MEDIUM

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.

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

Timeline

  • Aug 10, 2026 CVE Published
  • Aug 12, 2026 CVE Updated
  • Aug 16, 2026 Security Advisory
  • Aug 24, 2026 EPSS Score
  • Aug 29, 2026 EPSS Score
  • Sep 9, 2026 EPSS Score
  • Sep 15, 2026 EPSS Score
  • Sep 18, 2026 EPSS Score

References

  • issue-tracking
Open in Interactive Console →
$ Console Community · 100/wk Open console ›