Vulnerability in sudo - security update

sudo Updated 02 Oct 2025

Summary

22/02/2015
N/A
Yes i
Unrated
Not published

DSA-3167-1: sudo - security update. Affects sudo versions < 1.8.5p2-1+nmu2. Fixed in 1.8.5p2-1+nmu2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The sudo package is designed to provide limited super user privileges to specific users. It allows users to execute commands as the superuser or another user, as specified in the sudoers file. This package is commonly used in Linux distributions to enhance security by restricting the actions that regular users can perform. However, a vulnerability has been discovered in sudo that allows a user with sudo access to exploit the TZ environment variable, potentially leading to the exploitation of bugs in C library functions or unauthorized file access.

Vulnerability Detail

The vulnerability in sudo involves the preservation of the TZ variable from a user's environment without any sanitization. This means that a user with sudo access can manipulate the TZ variable to exploit bugs in the C library functions that parse the TZ environment variable or to open files that they would not otherwise have access to. Exploiting this vulnerability could result in changes in system behavior when reading certain device special files or cause the program run via sudo to block.

How To Fix

Minimum fixed version

1.8.5p2-1+nmu2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade sudo

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. However, users can mitigate the risk by ensuring that only trusted users have sudo access and by monitoring the usage of sudo commands for any suspicious activity.

Conclusion

The sudo package has been found to have a vulnerability that allows users with sudo access to exploit the TZ environment variable. This can lead to the exploitation of bugs in C library functions or unauthorized file access. To fix this vulnerability, it is recommended to upgrade the sudo package to version 1.8.5p2-1+nmu2 or later. Users can also mitigate the risk by ensuring that only trusted users have sudo access and by monitoring the usage of sudo commands for any suspicious activity. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for sudo →

Share this vulnerability

FAQ

Sudo is a program that allows users to execute commands as the superuser or another user, as specified in the sudoers file. It is commonly used in Linux distributions to enhance security by restricting the actions that regular users can perform.

The TZ environment variable is used to specify the time zone for a user. It is preserved by sudo without any sanitization, which can lead to the exploitation of bugs in C library functions or unauthorized file access.

Exploiting this vulnerability could result in changes in system behavior when reading certain device special files or cause the program run via sudo to block. It could also allow unauthorized file access, potentially leading to further security breaches.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) and the playground will analyze it for any open-source vulnerabilities, including this sudo vulnerability.

While there is no specific workaround mentioned for this vulnerability, users can mitigate the risk by ensuring that only trusted users have sudo access and by monitoring the usage of sudo commands for any suspicious activity.

Related vulnerabilities

Recent vulnerabilities recorded for sudo.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

1.8.5p2-1+nmu2

This is the first release that contains the fix.

sudo apt-get install --only-upgrade sudo

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback