{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-6791 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2026-6791 is a medium-severity denial of service vulnerability in The GNU C Library glibc, published on 10 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-6791 and fix it if it is affected.\n\nWhat it is: CVE-2026-6791 is a medium-severity denial of service vulnerability in The GNU C Library glibc, published on 10 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-6791 in the wild and no public exploit code.\n\nAffected product: The GNU C Library glibc. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-6791/ (Markdown: https://insights.sbomify.com/CVE-2026-6791/index.md)","id":"CVE-2026-6791","markdown":"https://insights.sbomify.com/CVE-2026-6791/index.md","name":"CVE-2026-6791","record":{"aliases":["AZL-95492","BELL-CVE-2026-6791","DEBIAN-CVE-2026-6791","ECHO-9658-3093-2999","GHSA-ch73-g8qv-r6r5","MINI-4xxf-44hj-m8hg","UBUNTU-CVE-2026-6791"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"GNU C Library","requires_auth":"none","summary":"An attacker can cause a denial of service via stack exhaustion in glibc's wordexp function by providing an excessively long username during tilde expansion.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"glibc","cpe":[],"cvss":{"score":6.6,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Potential stack-based buffer clash during tilde expansion in wordexp","id":"CVE-2026-6791","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":0,"n_references":1,"next":{"headline":"Improper Authorization in Universal Sotware's FlexCity","id":"CVE-2026-6792"},"packages":[],"prev":{"headline":"Eclipse Jetty: HTTP Authority/Host mismatch","id":"CVE-2026-6790"},"products":["glibc"],"published":"2026-08-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-12","vendors":["The GNU C Library"]},"summary":"An attacker can cause a denial of service via stack exhaustion in glibc's wordexp function by providing an excessively long username during tilde expansion.","url":"https://insights.sbomify.com/CVE-2026-6791/"}