USN-8895-2: Sudo vulnerability

Publication date

12 November 2026

Overview

Sudo could allow a local user to bypass time-based access restrictions.


Packages

  • sudo - Provide limited super user privileges to specific users

Details

USN-8895-1 fixed a vulnerability in Sudo. This update provides the
corresponding updates for Ubuntu 18.04 LTS and Ubuntu 20.04 LTS.

Original advisory details:

It was discovered that Sudo did not properly handle time-based access
restrictions when sudoers rules used NOTBEFORE or NOTAFTER with
timestamps omitting the trailing timezone indicator. A local attacker
could possibly use this issue to execute commands outside the intended
time window by manipulating the TZ environment variable.

USN-8895-1 fixed a vulnerability in Sudo. This update provides the
corresponding updates for Ubuntu 18.04 LTS and Ubuntu 20.04 LTS.

Original advisory details:

It was discovered that Sudo did not properly handle time-based access
restrictions when sudoers rules used NOTBEFORE or NOTAFTER with
timestamps omitting the trailing timezone indicator. A local attacker
could possibly use this issue to execute commands outside the intended
time window by manipulating the TZ environment variable.

Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
20.04 LTS focal sudo –  1.8.31-1ubuntu1.5+esm2  
sudo-ldap –  1.8.31-1ubuntu1.5+esm2  
18.04 LTS bionic sudo –  1.8.21p2-3ubuntu1.6+esm2  
sudo-ldap –  1.8.21p2-3ubuntu1.6+esm2  

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›