public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug localedata/17137] New: Directory traversal in locale environment handling (CVE-2014-0475)
@ 2014-07-09 16:09 fweimer at redhat dot com
  2014-07-10 15:21 ` [Bug localedata/17137] " cvs-commit at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: fweimer at redhat dot com @ 2014-07-09 16:09 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17137

            Bug ID: 17137
           Summary: Directory traversal in locale environment handling
                    (CVE-2014-0475)
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
          Assignee: fweimer at redhat dot com
          Reporter: fweimer at redhat dot com
                CC: libc-locales at sourceware dot org
             Flags: security+

Stephane Chazelas reported (via Debian) a directory traversal issue in locale
handling in glibc.  glibc accepts relative paths with ".." components in the
LC_* and LANG variables.  Together with typical OpenSSH configurations (with
suitable AcceptEnv settings in sshd_config), this could conceivably be used to
bypass ForceCommand restrictions, assuming the attacker has sufficient level of
access to a file system location on the host to create crafted locale
definitions there.

Due to an existing AT_SECURE check, SUID/SGID binaries are not directly
vulnerable, but this protection will not necessarily extend to child processes.
 For sudo, this is mitigated by the env_check defaults, so even configurations
which list LC_* variables among env_keep should be safe.

I will post patches to libc-alpha for review shortly.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-02-23 15:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-09 16:09 [Bug localedata/17137] New: Directory traversal in locale environment handling (CVE-2014-0475) fweimer at redhat dot com
2014-07-10 15:21 ` [Bug localedata/17137] " cvs-commit at gcc dot gnu.org
2014-07-10 16:02 ` fweimer at redhat dot com
2014-07-10 23:20 ` cvs-commit at gcc dot gnu.org
2014-08-28 12:02 ` cvs-commit at gcc dot gnu.org
2014-09-05 13:16 ` cvs-commit at gcc dot gnu.org
2015-01-16 16:59 ` cvs-commit at gcc dot gnu.org
2015-01-16 17:02 ` cvs-commit at gcc dot gnu.org
2015-01-29 18:50 ` cvs-commit at gcc dot gnu.org
2015-02-23 14:23 ` cvs-commit at gcc dot gnu.org
2015-02-23 15:02 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).