Description
A flaw was found in sudo. When sudoers rules use NOTBEFORE or NOTAFTER time-based access restrictions with timestamps that omit the trailing 'Z' timezone indicator, the time evaluation relies on the TZ environment variable inherited from the calling user. Because sudo is a setuid-root program, an unprivileged local user can set TZ to an extreme timezone offset to shift the authorization window by up to approximately 25 hours, causing expired rules to be treated as valid. This allows the user to execute commands outside the intended time window. Authentication is not bypassed; only the time-based authorization check is affected.
Published: 2026-09-23
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Privilege Escalation via time-based authorization bypass
Action: Apply Patch
AI Analysis

Impact

A flaw in sudo allows an unprivileged local user to set the TZ environment variable to an extreme offset when sudoers rules use NOTBEFORE or NOTAFTER timestamps lacking a trailing 'Z'. Because the setuid-root sudo process interprets these times relative to the inherited TZ, an attacker can shift the authorization window by up to approximately 25 hours, treating expired rules as still valid. This bypass lets the user run commands outside the intended time window, effectively granting them elevated privileges for a period that should have been forbidden, although the authentication mechanism itself remains intact.

Affected Systems

The vulnerability impacts Red Hat Enterprise Linux versions 10, 9, 8, and 7 as well as the Red Hat Hardened Images (Hummingbird) distribution. All systems running sudo with time‑based restrictions in their sudoers files without a 'Z' suffix on the timestamps are at risk, regardless of the specific sudo version installed.

Risk and Exploitability

With a CVSS score of 7.8, the flaw represents a high severity vulnerability. The EPSS score is not available, but the simplicity of setting TZ and the local nature of the attack make exploitation likely in compromised environments. Although the vulnerability is not currently cataloged in CISA KEV, its potential for local privilege escalation warrants immediate attention. An attacker only needs local shell access to set TZ before invoking sudo; no remote privileges are required.

Generated by OpenCVE AI on September 23, 2026 at 15:23 UTC.

Remediation

Vendor Workaround

Append the 'Z' timezone suffix to all NOTBEFORE and NOTAFTER timestamps in sudoers rules. For example, change 'NOTAFTER=20261231235959' to 'NOTAFTER=20261231235959Z'. Timestamps with the 'Z' suffix are interpreted as UTC via timegm() and are not affected by the TZ environment variable. Administrators can audit their sudoers configuration with: grep -rE 'NOT(BEFORE|AFTER)=' /etc/sudoers /etc/sudoers.d/ and verify that all timestamps end with 'Z'.


OpenCVE Recommended Actions

  • Apply the vendor-published patch for CVE‑2026‑96512 to upgrade sudo to the fixed version.
  • As a temporary measure, modify every NOTBEFORE and NOTAFTER entry in /etc/sudoers and /etc/sudoers.d to include a trailing 'Z' so timestamps are interpreted as UTC via timegm().
  • Audit your sudoers configuration to confirm all time‑based rules end with 'Z'; run grep -rE 'NOT\(BEFORE|AFTER\)=' /etc/sudoers /etc/sudoers.d to locate any non‑compliant entries.

Generated by OpenCVE AI on September 23, 2026 at 15:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8895-1 Sudo vulnerability
History

Wed, 14 Oct 2026 19:15:00 +0000

Type Values Removed Values Added
First Time appeared Redhat rhui
CPEs cpe:/a:redhat:rhui:5::el9
Vendors & Products Redhat rhui
References

Mon, 05 Oct 2026 10:45:00 +0000

Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:9 cpe:/a:redhat:enterprise_linux:9::appstream
cpe:/o:redhat:enterprise_linux:9::baseos
References

Mon, 05 Oct 2026 06:00:00 +0000

Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10 cpe:/o:redhat:enterprise_linux:10.2
References

Mon, 05 Oct 2026 03:45:00 +0000

Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:8 cpe:/o:redhat:enterprise_linux:8::baseos
References

Thu, 24 Sep 2026 19:30:00 +0000

Type Values Removed Values Added
References

Thu, 24 Sep 2026 16:30:00 +0000

Type Values Removed Values Added
References

Thu, 24 Sep 2026 09:45:00 +0000

Type Values Removed Values Added
First Time appeared Redhat hardened Images
Sudo Project
Sudo Project sudo
Vendors & Products Redhat hardened Images
Sudo Project
Sudo Project sudo

Thu, 24 Sep 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Wed, 23 Sep 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 23 Sep 2026 14:30:00 +0000

Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8

Wed, 23 Sep 2026 13:45:00 +0000

Type Values Removed Values Added
Description A flaw was found in sudo. When sudoers rules use NOTBEFORE or NOTAFTER time-based access restrictions with timestamps that omit the trailing 'Z' timezone indicator, the time evaluation relies on the TZ environment variable inherited from the calling user. Because sudo is a setuid-root program, an unprivileged local user can set TZ to an extreme timezone offset to shift the authorization window by up to approximately 25 hours, causing expired rules to be treated as valid. This allows the user to execute commands outside the intended time window. Authentication is not bypassed; only the time-based authorization check is affected.
Title Sudo: sudo: tz environment variable allows bypass of notbefore/notafter time-based authorization
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
Weaknesses CWE-863
CPEs cpe:/a:redhat:hummingbird:1
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

Redhat Enterprise Linux Hardened Images Hummingbird Rhui
Sudo Project Sudo
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-10-14T19:03:12.981Z

Reserved: 2026-09-23T10:31:55.548Z

Link: CVE-2026-96512

cve-icon Vulnrichment

Updated: 2026-09-24T18:09:32.796Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-23T14:17:10.747

Modified: 2026-10-14T19:17:23.220

Link: CVE-2026-96512

cve-icon Redhat

Severity : Important

Publid Date: 2026-09-23T12:00:00Z

Links: CVE-2026-96512 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-24T09:11:13Z

Weaknesses