CVE-2026-6368

wordexp with WRDE_APPEND can return or use invalid memory

Published Aug 10, 2026 CVSS 4.0 · 2.1 Low EPSS < 1% KEV · Not listed
Description
Calling wordexp with WRDE_APPEND in the GNU C Library version 2.0 to version 2.43 can cause the interface to return invalid memory in the we_wordv member, which on subsequent calls to wordfree may abort the process.

Analysis

AI-generated

Technical impact

The vulnerability resides in the wordexp function of the GNU C Library. When the WRDE_APPEND flag is supplied, the function may populate the we_wordv member with pointers to uninitialized or freed memory. A subsequent call to wordfree on that array can trigger an abort, terminating the process. This weakness is classified as CWE‑908 and CWE‑1341 and its CVSS score of 2.1 indicates a low severity, though it can cause a denial of service when an application crashes.

Affected Systems

The GNU C Library (glibc) versions 2.0 through 2.43 are affected. Any application linked against these releases and that calls wordexp with the WRDE_APPEND flag is vulnerable. This includes system libraries and binaries that rely on glibc for shell-completion or word expansion.

Risk and Exploitability

The CVSS score of 2.1 reflects low severity. The EPSS score of <1% indicates a very low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. Based on the description, the likely attack vector is local or requires privileged code execution; an attacker would need to trigger a vulnerable application to invoke wordexp with the WRDE_APPEND option. Remote exploitation through an exposed interface is unlikely unless an application provides user-controlled input that influences the WRDE_APPEND usage. If achieved, the exploit would lead to a denial of service by aborting the target process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update glibc to a patched release such as 2.44 or later.
  • Refactor or eliminate calls to wordexp that use the WRDE_APPEND flag in all affected applications.
  • Add runtime checks to ensure the we_wordv array returned by wordexp contains only valid memory before passing it to wordfree, or avoid calling wordfree on the result.

Generated by OpenCVE AI on August 12, 2026 at 18:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8737-1 GNU C Library vulnerabilities
Ubuntu USN Ubuntu USN USN-8737-2 GNU C Library vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-1341
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Gnu
Gnu glibc
Vendors & Products Gnu
Gnu glibc
Type Values Removed Values Added
Description Calling wordexp with WRDE_APPEND in the GNU C Library version 2.0 to version 2.43 can cause the interface to return invalid memory in the we_wordv member, which on subsequent calls to wordfree may abort the process.
Title wordexp with WRDE_APPEND can return or use invalid memory
Weaknesses CWE-908
References
Metrics cvssV4_0

{'score': 2.1, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L/S:P/AU:Y/U:Green'}

Weaknesses
  • CWE-1341

    Multiple Releases of Same Resource or Handle

  • CWE-908

    Use of Uninitialized Resource

Sources

Status
PUBLISHED
Assigner
glibc
Published
Updated
Aug 12, 2026, 6:01 PM
Reserved
Apr 15, 2026, 3:07 PM
Status
Awaiting Analysis
Published
Aug 10, 2026, 7:17 PM
Modified
Sep 3, 2026, 4:43 PM
Severity
Moderate
Public date
Aug 10, 2026, 6:40 PM