CVE-2014-9680: Infoleak

Published Feb 10, 2015
·
Updated

sudo 1.8.12 will be released shortly [1] which includes sanity checks for the TZ environment variable.

This issue was previously discussed here: http://www.openwall.com/lists/oss-security/2014/10/15/24

There is an associated Debian bug: https://bugs.debian.org/772707 From http://www.sudo.ws/alerts/tz.html

Summary:

Prior to sudo 1.8.12, the TZ environment variable was passed through unchecked. Most libc tzset() implementations support passing an absolute pathname in the time zone to point to an arbitrary, user-controlled file. This may be used to exploit bugs in the C library's TZ parser or open files the user would not otherwise have access to. Arbitrary file access via TZ could also be used in a denial of service attack by reading from a file or fifo that will block.

Beginning with sudo 1.8.12, TZ is only passed through by default if it is considered "safe". The TZ variable is now considered "unsafe" if any of the following are true:

o It consists of a fully-qualified path name that does not match the location of the zoneinfo directory.

o It contains a ".." path element.

o It contains white space or non-printable characters.

o It is longer than the value of PATHMAX.

Sudo versions affected:

Sudo versions prior to 1.8.12 are affected.

Details:

Unix systems support a user-specified time zone value stored in the TZ environment variable. On many systems, the value of TZ is ignored for set user ID processes (such as sudo) if it does not pass certain sanity checks. However, while the value may be ignored, it is not actually removed from the environment. As such, a program run via sudo will inherit the (possibly malicious) value of TZ.

A user with sudo access may take advantage of this to exploit bugs in the C library functions which parse the TZ environment variable. The TZ handling in most C libraries (including GNU libc and the tzcode used by BSD and others) supports reading arbitrary files.

By setting TZ to a fully-qualified path name, a command run via sudo may be used to read (but not disclose the contents of) files that the user would not otherwise be able to open. This is generally benign for regular files, but it may be possible to change the behavior of the system by reading from device special files. For instance, it may be possible to hijack the output from a terminal device file, consume kernel log messages or cause a tape drive to change position. It may also be possible to cause a command run by sudo to hang if TZ is set to the value of a named pipe or a device special file that blocks on read.

Impact:

A user with sudo access may be able to exploit parsing bugs in the time zone parsing functions of the system's C library functions. The user may also be able to read arbitrary files, potentially causing changes in system behavior when reading certain device special files or simply causing the program run via sudo to block.

Fix:

The bug is fixed in sudo 1.8.12.

[1]: http://seclists.org/oss-sec/2015/q1/486

Other sources

sudo before 1.8.12 does not ensure that the TZ environment variable is associated with a zoneinfo file, which allows local users to open arbitrary files for read access (but not view file contents) by running a program within an sudo session, as demonstrated by interfering with terminal output, discarding kernel-log messages, or repositioning tape drives.

Affected Software

3 affected componentsFixes available
Sudo Project Sudo<=1.8.11
redhat/sudo<1.8.12
1.8.12
redhat/sudo<1.7.10
1.7.10

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/sudo to a version that resolves this vulnerability.

    Fixed in 1.8.12
  2. Upgrade

    Upgrade redhat/sudo to a version that resolves this vulnerability.

    Fixed in 1.7.10
  3. Upgrade

    Upgrade sudo to a version that resolves this vulnerability.

    Fixed in 1.8.12

Event History

Feb 10, 2015
Data Sourced
via Red Hat·02:36 PM
DescriptionSeverityAffected Software
Apr 24, 2017
CVE Published
via MITRE·06:12 AM
Data Sourced
via MITRE·06:12 AM
Description
Data Sourced
06:59 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2014-9680?

The severity of CVE-2014-9680 is considered low, with a score of 3.3.

2

How do I fix CVE-2014-9680?

To fix CVE-2014-9680, update sudo to version 1.8.12 or later.

3

What vulnerabilities does CVE-2014-9680 expose?

CVE-2014-9680 allows local users to open arbitrary files for read access by running a program within a sudo session.

4

Which versions of sudo are affected by CVE-2014-9680?

CVE-2014-9680 affects sudo versions before 1.8.12.

5

Who is affected by CVE-2014-9680?

Local users on systems running vulnerable versions of sudo before 1.8.12 are affected by CVE-2014-9680.

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