CVE-2014-0475: Path Traversal
It was found that glibc suffers from a directory traversal vulnerability when processing paths in LC variables. As a result, you can set arbitrary locale specifications in certain environment variables, such as LCALL. With certain programs, these environment variables are inherited -- this is particularly a problem for suid programs. A program that runs suid to any other user (including root) could inherit these environment variables and load malicious locale specifications, which could result in the execution of arbitrary code.
Certain programs do not use locale specifications (such as mount, su, passwd), and some sanitize environment variables contain certain characters (for instance, if sudo encounters a whitelisted environment variable with '/' in the value, it will unset the environment variable).
Other programs may not be as careful with environment variables like this, which could result in arbitrary code execution if they accept such a crafted environment variable that allows for loading arbitrary locale specifications as specified in the environment variable (such as LCALL, LCCOLLATE, etc.).
Acknowledgements:
Red Hat would like to thank Stephane Chazelas for reporting this issue.
Other sources
Multiple directory traversal vulnerabilities in GNU C Library (aka glibc or libc6) before 2.20 allow context-dependent attackers to bypass ForceCommand restrictions and possibly have other unspecified impact via a .. (dot dot) in a (1) LC, (2) LANG, or other locale environment variable.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2014-0475?
CVE-2014-0475 has a medium severity rating due to its potential to allow context-dependent attackers to bypass security restrictions.
How do I fix CVE-2014-0475?
To fix CVE-2014-0475, upgrade the GNU C Library to version 2.20 or later.
What software is affected by CVE-2014-0475?
CVE-2014-0475 affects multiple versions of the GNU C Library (glibc) prior to 2.20.
What attack vector is used in CVE-2014-0475?
CVE-2014-0475 can be exploited via directory traversal using specific locale environment variables.
Are there any known exploits for CVE-2014-0475?
While exploitation details may vary, CVE-2014-0475 exposes systems to potential abuse of the ForceCommand feature.