CVE-2014-7817
published 2014-11-24CVE-2014-7817: 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…
PriorityP427medium4.6CVSS 2.0
AVLACLAuNCPIPAP
EPSS
0.58%
44.1th percentile
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 "$((`...`))".
Affected
14 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| canonical | ubuntu_linux | — | — |
| debian | debian_linux | — | — |
| debian | glibc | < glibc 2.19-14 (bookworm) | glibc 2.19-14 (bookworm) |
| eglibc | eglibc | >= 0 < 2.19-0ubuntu6.4 | 2.19-0ubuntu6.4 |
| gnu | glibc | — | — |
| gnu | glibc | >= 0 < 2.19-14 | 2.19-14 |
| gnu | glibc | >= 0 < 2.19-14 | 2.19-14 |
| gnu | glibc | >= 0 < 2.19-14 | 2.19-14 |
| gnu | glibc | >= 0 < 2.19-14 | 2.19-14 |
| opensuse | opensuse | — | — |
| opensuse | opensuse | — | — |
CVSS provenance
nvdv2.04.6MEDIUMAV:L/AC:L/Au:N/C:P/I:P/A:P
osv5.0MEDIUM
vendor_ubuntu5.0MEDIUM
vendor_debian4.6MEDIUM
vendor_redhat4.6MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-47cv-pfmg-555j: The wordexp function in GNU C Library (aka glibc) 2
ghsa_unreviewed·2022-05-14
CVE-2014-7817 [MEDIUM] CWE-20 GHSA-47cv-pfmg-555j: The wordexp function in GNU C Library (aka glibc) 2
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 "$((`...`))".
OSV
eglibc, glibc vulnerabilities
osv·2014-12-03·CVSS 5.0
CVE-2012-6656 [MEDIUM] eglibc, glibc vulnerabilities
eglibc, glibc vulnerabilities
Siddhesh Poyarekar discovered that the GNU C Library incorrectly handled
certain multibyte characters when using the iconv function. An attacker
could possibly use this issue to cause applications to crash, resulting in
a denial of service. This issue only affected Ubuntu 10.04 LTS and Ubuntu
12.04 LTS. (CVE-2012-6656)
Adhemerval Zanella Netto discovered that the GNU C Library incorrectly
handled certain multibyte characters when using the iconv function. An
attacker could possibly use this issue to cause applications to crash,
resulting in a denial of service. (CVE-2014-6040)
Tim Waugh discovered that the GNU C Library incorrectly enforced the
WRDE_NOCMD flag when handling the wordexp function. An attacker could
possibly use this issue to execute arbitrary
OSV
CVE-2014-7817: The wordexp function in GNU C Library (aka glibc) 2
osv·2014-11-24·CVSS 4.6
CVE-2014-7817 [MEDIUM] CVE-2014-7817: The wordexp function in GNU C Library (aka glibc) 2
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 "$((`...`))".
Ubuntu
GNU C Library vulnerabilities
vendor_ubuntu·2014-12-03·CVSS 5.0
CVE-2012-6656 [MEDIUM] GNU C Library vulnerabilities
Title: GNU C Library vulnerabilities
Summary: The GNU C Library could be made to crash or run programs.
Siddhesh Poyarekar discovered that the GNU C Library incorrectly handled
certain multibyte characters when using the iconv function. An attacker
could possibly use this issue to cause applications to crash, resulting in
a denial of service. This issue only affected Ubuntu 10.04 LTS and Ubuntu
12.04 LTS. (CVE-2012-6656)
Adhemerval Zanella Netto discovered that the GNU C Library incorrectly
handled certain multibyte characters when using the iconv function. An
attacker could possibly use this issue to cause applications to crash,
resulting in a denial of service. (CVE-2014-6040)
Tim Waugh discovered that the GNU C Library incorrectly enforced the
WRDE_NOCMD flag when handling the worde
Red Hat
glibc: command execution in wordexp() with WRDE_NOCMD specified
vendor_redhat·2014-11-20·CVSS 4.6
CVE-2014-7817 [MEDIUM] CWE-440 glibc: command execution in wordexp() with WRDE_NOCMD specified
glibc: command execution in wordexp() with WRDE_NOCMD specified
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.
Statement: This issue affects the version of glibc package as shipped with Red Hat Enterprise Linux 5, 6 and 7. Red Hat Product Security
Debian
CVE-2014-7817: glibc - The wordexp function in GNU C Library (aka glibc) 2.21 does not enforce the WRDE...
vendor_debian·2014·CVSS 4.6
CVE-2014-7817 [MEDIUM] CVE-2014-7817: glibc - The wordexp function in GNU C Library (aka glibc) 2.21 does not enforce the WRDE...
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 "$((`...`))".
Scope: local
bookworm: resolved (fixed in 2.19-14)
bullseye: resolved (fixed in 2.19-14)
forky: resolved (fixed in 2.19-14)
sid: resolved (fixed in 2.19-14)
trixie: resolved (fixed in 2.19-14)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2014-7817 glibc: command execution in wordexp() with WRDE_NOCMD specified [fedora-all]
bugzilla·2014-11-25·CVSS 4.6
CVE-2014-7817 [MEDIUM] CVE-2014-7817 glibc: command execution in wordexp() with WRDE_NOCMD specified [fedora-all]
CVE-2014-7817 glibc: command execution in wordexp() with WRDE_NOCMD specified [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported
Bugzilla
CVE-2014-7817 glibc: command execution in wordexp() with WRDE_NOCMD specified
bugzilla·2014-10-27·CVSS 4.6
CVE-2014-7817 [MEDIUM] CVE-2014-7817 glibc: command execution in wordexp() with WRDE_NOCMD specified
CVE-2014-7817 glibc: command execution in wordexp() with WRDE_NOCMD specified
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
int main (void)
{
wordexp_t we;
return wordexp ("$((1`touch /tmp/x`))", &we, WRDE_NOCMD);
}
glibc-2.20-5.fc21.x86_64
...
This can allow a local authenticated attacker to execute arbitrary commands with the credentials of a process calling wordexp() on an attacker-supplied data.
Discussion:
I can confirm this on glibc master. This is a bug in wordep in glibc. The bug is in the function parse_arth (and technicall parse_backtick and parse_comm should be hardened), it fails to check for WRDE_NOCMD when processing backticks. The
http://linux.oracle.com/errata/ELSA-2015-0016.htmlhttp://linux.oracle.com/errata/ELSA-2015-0092.htmlhttp://lists.opensuse.org/opensuse-updates/2015-02/msg00089.htmlhttp://rhn.redhat.com/errata/RHSA-2014-2023.htmlhttp://seclists.org/oss-sec/2014/q4/730http://secunia.com/advisories/62100http://secunia.com/advisories/62146http://www.debian.org/security/2015/dsa-3142http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.htmlhttp://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.htmlhttp://www.securityfocus.com/bid/71216http://www.ubuntu.com/usn/USN-2432-1https://exchange.xforce.ibmcloud.com/vulnerabilities/98852https://security.gentoo.org/glsa/201602-02https://sourceware.org/bugzilla/show_bug.cgi?id=17625https://sourceware.org/git/gitweb.cgi?p=glibc.git%3Ba=commitdiff%3Bh=a39208bd7fb76c1b01c127b4c61f9bfd915bfe7chttps://sourceware.org/ml/libc-alpha/2014-11/msg00519.htmlhttp://linux.oracle.com/errata/ELSA-2015-0016.htmlhttp://linux.oracle.com/errata/ELSA-2015-0092.htmlhttp://lists.opensuse.org/opensuse-updates/2015-02/msg00089.htmlhttp://rhn.redhat.com/errata/RHSA-2014-2023.htmlhttp://seclists.org/oss-sec/2014/q4/730http://secunia.com/advisories/62100http://secunia.com/advisories/62146http://www.debian.org/security/2015/dsa-3142http://www.oracle.com/technetwork/security-advisory/cpujan2018-3236628.htmlhttp://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.htmlhttp://www.securityfocus.com/bid/71216http://www.ubuntu.com/usn/USN-2432-1https://exchange.xforce.ibmcloud.com/vulnerabilities/98852https://security.gentoo.org/glsa/201602-02https://sourceware.org/bugzilla/show_bug.cgi?id=17625https://sourceware.org/git/gitweb.cgi?p=glibc.git%3Ba=commitdiff%3Bh=a39208bd7fb76c1b01c127b4c61f9bfd915bfe7chttps://sourceware.org/ml/libc-alpha/2014-11/msg00519.html
2014-11-24
Published