All reports
Medium

glibc: command execution in wordexp() with WRDE_NOCMD specified

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2014-7817

Probability of exploitation in the next 30 days: 0.58%

FIRST EPSS · 2026-11-19

Description

The wordexp function in GNU C Library (aka glibc) 2.21 does not enforce the WRDE_NOCMD flag, which allows context-dependent attackers to execute arbitrary commands, as demonstrated by input containing "$((...))".

It was found that the wordexp() function would perform command substitution even when the WRDE_NOCMD flag was specified. An attacker able to provide specially crafted input to an application using the wordexp() function, and not sanitizing the input correctly, could potentially use this flaw to execute arbitrary commands with the credentials of the user running that application.