CVE-2014-7817: Input Validation
The wordexp function in GNU C Library (aka glibc) 2.21 does not enforce the WRDENOCMD flag, which allows context-dependent attackers to execute arbitrary commands, as demonstrated by input containing "$((...))".
Other sources
Tim Waugh from Red Hat has reported the below issue:
The wordexp() function will perform command substitution even when explicitly told not to, when expanding "$((...))". ... #include <wordexp.h> int main (void) { wordexpt we; return wordexp ("$((1touch /tmp/x))", &we, WRDENOCMD); }
glibc-2.20-5.fc21.x8664 ...
This can allow a local authenticated attacker to execute arbitrary commands with the credentials of a process calling wordexp() on an attacker-supplied data.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/glibcto a version that resolves this vulnerability.Fixed in 2.19-14 - Upgrade
Upgrade
debian/eglibcto a version that resolves this vulnerability.Fixed in 2.11.3-4+deb6u2Fixed in 2.13-38+deb7u7
Event History
Frequently Asked Questions
What is the severity of CVE-2014-7817?
CVE-2014-7817 is classified as a high severity vulnerability due to the potential for arbitrary command execution.
How do I fix CVE-2014-7817?
To fix CVE-2014-7817, upgrade the GNU C Library to a version later than 2.21 that enforces the WRDE_NOCMD flag.
What systems are affected by CVE-2014-7817?
CVE-2014-7817 affects specific versions of Ubuntu, Debian, and openSUSE that use glibc 2.21.
Can CVE-2014-7817 be exploited remotely?
CVE-2014-7817 can be exploited locally by attackers with access to a vulnerable system.
What type of attack is possible with CVE-2014-7817?
CVE-2014-7817 allows context-dependent attackers to execute arbitrary commands through manipulating input to the wordexp function.