CVE-2014-7817: Input Validation

Published Oct 27, 2014
·
Updated

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

10 affected componentsFixes available
Canonical Ubuntu Linux=10.04
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=14.10
Debian Debian Linux=7.0
GNU glibc=2.21
openSUSE openSUSE=13.1
openSUSE openSUSE=13.2
debian/glibc
2.19-14
debian/eglibc
2.11.3-4+deb6u22.13-38+deb7u7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/glibc to a version that resolves this vulnerability.

    Fixed in 2.19-14
  2. Upgrade

    Upgrade debian/eglibc to a version that resolves this vulnerability.

    Fixed in 2.11.3-4+deb6u2Fixed in 2.13-38+deb7u7

Event History

Oct 27, 2014
Data Sourced
via Red Hat·01:54 PM
DescriptionSeverityAffected Software
Nov 24, 2014
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Data Sourced
03:59 PM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

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.

2

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.

3

What systems are affected by CVE-2014-7817?

CVE-2014-7817 affects specific versions of Ubuntu, Debian, and openSUSE that use glibc 2.21.

4

Can CVE-2014-7817 be exploited remotely?

CVE-2014-7817 can be exploited locally by attackers with access to a vulnerable system.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203