CVE-2026-96512
Sudo: sudo: tz environment variable allows bypass of notbefore/notafter time-based authorization
- High 7.8
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.
Key facts
- Published
- 23 Sep 2026
- Last changed
- 29 Oct 2026
- Assigned by
- redhat
- EPSS
- 0.321% likely to be exploited in the next 30 days, higher than 25.446% of CVEs (scores for 16 Nov 2026)
- SSVC (CISA)
- Exploitation: none; Automatable: no; Technical impact: total
Severity scores
Each score is shown as its source gave it. They are not averaged or merged.
- 7.8CVSS 3.1, Highfrom the CNA (redhat)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What to do
- 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'.CNA workaround statement
Historical context and remediation
This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.
No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.
Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 |
|
| Red Hat | Red Hat Enterprise Linux 10.0 Extended Update Support |
|
| Red Hat | Red Hat Enterprise Linux 7 Extended Lifecycle Support |
|
| Red Hat | Red Hat Enterprise Linux 8 |
|
| Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support |
|
| Red Hat | Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On |
|
| Red Hat | Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support |
|
| Red Hat | Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On |
|
| Red Hat | Red Hat Enterprise Linux 8.8 Telecommunications Update Service |
|
| Red Hat | Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions |
|
| Red Hat | Red Hat Enterprise Linux 9 |
|
| Red Hat | Red Hat Enterprise Linux 9 |
|
| Red Hat | Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions |
|
| Red Hat | Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions |
|
| Red Hat | Red Hat Enterprise Linux 9.6 Extended Update Support |
|
| Red Hat | Red Hat Hardened Images |
|
| Red Hat | Red Hat OpenShift AI 3.0 |
|
| Red Hat | Red Hat OpenShift AI 3.4 |
|
| Red Hat | Red Hat OpenShift AI 3.4 |
|
| Red Hat | Red Hat Update Infrastructure 5 |
|
| Red Hat | Red Hat Update Infrastructure 5 |
|
Timeline
- 28 Aug 2026 Reported to Red Hat.
- 23 Sep 2026 Made public.
- 23 Sep 2026 Published