CVE-2026-6791: the gnu c library glibc Stack-based Buffer Overflow
Vulnerability summary
CVE-2026-6791 is a medium (CVSS 6.6) Stack-based Buffer Overflow vulnerability in the gnu c library glibc. EPSS estimates a 0.22% chance of exploitation in the next 30 days, higher than 11.6% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 17 · Related 13Timeline
- 10-08-2026PublishedVulnerability first disclosed.
- 12-08-2026Last modifiedVulnerability information updated.
Description
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 metrics
6 scores · 6 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated9.0CriticalCVSS: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:UDiffers
- OSV · DebianEcosystem advisory · calculated9.0CriticalCVSS: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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XDiffers
- OSV · WolfiEcosystem advisory · calculated9.0CriticalCVSS: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:UDiffers
- OSV · ChainguardEcosystem advisory · calculated9.0CriticalCVSS: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:UDiffers
- NVDNIST6.6MediumCVSS: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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.22%
Chance of exploitation in the next 30 days
Percentile
12%
Versus all other CVEs
30-day change
+0.01 pp
From 0.21% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard28 products
- glibc< 2.43-r10
- glibc-2.43< 2.43-r10
- glibc-2.43-abi-report< 2.43-r10
- glibc-2.43-dev< 2.43-r10
- glibc-2.43-iconv< 2.43-r10
Wolfi28 products
- glibc< 2.43-r10
- glibc-2.43< 2.43-r10
- glibc-2.43-abi-report< 2.43-r10
- glibc-2.43-dev< 2.43-r10
- glibc-2.43-iconv< 2.43-r10
Ubuntu2 products
- eglibcAll versions (No fix recorded)
- glibcAll versions (No fix recorded) | < 2.35-0ubuntu3.15 | < 2.39-0ubuntu8.9 | < 2.43-2ubuntu2.4
Debian1 product
- glibcAll versions (No fix recorded) | < 2.43-3
The gnu c library1 product
- glibc≥ 2.0, ≤ 2.43
5 vendors · 60 products