CVE-2014-0475: Path Traversal

Published May 28, 2014
·
Updated

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

29 affected components
GNU glibc<=2.19
GNU glibc=2.0
GNU glibc=2.0.1
GNU glibc=2.0.2
GNU glibc=2.0.3
GNU glibc=2.0.4
GNU glibc=2.0.5
GNU glibc=2.0.6
GNU glibc=2.1
GNU glibc=2.1.1
GNU glibc=2.1.1.6
GNU glibc=2.1.2
GNU glibc=2.1.3
GNU glibc=2.1.9
GNU glibc=2.10.1
GNU glibc=2.11
GNU glibc=2.11.1
GNU glibc=2.11.2
GNU glibc=2.11.3
GNU glibc=2.12
GNU glibc=2.12.1
GNU glibc=2.12.2
GNU glibc=2.13
GNU glibc=2.14
GNU glibc=2.14.1
GNU glibc=2.15
GNU glibc=2.16
GNU glibc=2.17
GNU glibc=2.18

Event History

May 28, 2014
Data Sourced
via Red Hat·08:04 PM
DescriptionSeverityAffected Software
Jul 29, 2014
CVE Published
via MITRE·02:00 PM
Data Sourced
via MITRE·02:00 PM
Description
Data Sourced
02:55 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

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.

2

How do I fix CVE-2014-0475?

To fix CVE-2014-0475, upgrade the GNU C Library to version 2.20 or later.

3

What software is affected by CVE-2014-0475?

CVE-2014-0475 affects multiple versions of the GNU C Library (glibc) prior to 2.20.

4

What attack vector is used in CVE-2014-0475?

CVE-2014-0475 can be exploited via directory traversal using specific locale environment variables.

5

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.

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