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.

Read the original CVE record.

Affected products

VendorProductVersions
Red HatRed Hat Enterprise Linux 10
  • Default status: affected
  • 0:1.9.17-10.p2.el10_2.7 up to but excluding * (unaffected)
Red HatRed Hat Enterprise Linux 10.0 Extended Update Support
  • Default status: affected
  • 0:1.9.15-8.p5.el10_0.5 up to but excluding * (unaffected)
Red HatRed Hat Enterprise Linux 7 Extended Lifecycle Support
  • Default status: affected
  • 0:1.8.23-10.el7_9.6 up to but excluding * (unaffected)
Red HatRed Hat Enterprise Linux 8
  • Default status: affected
  • 0:1.9.5p2-2.el8_10 up to but excluding * (unaffected)
Red HatRed Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  • Default status: affected
  • 0:1.8.29-7.el8_4.4 up to but excluding * (unaffected)
Red HatRed Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
  • Default status: affected
  • 0:1.8.29-7.el8_4.4 up to but excluding * (unaffected)
Red HatRed Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  • Default status: affected
  • 0:1.9.5p2-1.el8_6.4 up to but excluding * (unaffected)
Red HatRed Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On
  • Default status: affected
  • 0:1.9.5p2-1.el8_6.4 up to but excluding * (unaffected)
Red HatRed Hat Enterprise Linux 8.8 Telecommunications Update Service
  • Default status: affected
  • 0:1.9.5p2-1.el8_8.4 up to but excluding * (unaffected)
Red HatRed Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  • Default status: affected
  • 0:1.9.5p2-1.el8_8.4 up to but excluding * (unaffected)
Red HatRed Hat Enterprise Linux 9
  • Default status: affected
  • 0:1.9.17p2-3.el9_8.3 up to but excluding * (unaffected)
Red HatRed Hat Enterprise Linux 9
  • Default status: affected
  • 0:1.9.17p2-3.el9_8.3 up to but excluding * (unaffected)
Red HatRed Hat Enterprise Linux 9.2 Update Services for SAP Solutions
  • Default status: affected
  • 0:1.9.5p2-9.el9_2.5 up to but excluding * (unaffected)
Red HatRed Hat Enterprise Linux 9.4 Update Services for SAP Solutions
  • Default status: affected
  • 0:1.9.5p2-10.el9_4.4 up to but excluding * (unaffected)
Red HatRed Hat Enterprise Linux 9.6 Extended Update Support
  • Default status: affected
  • 0:1.9.5p2-10.el9_6.4 up to but excluding * (unaffected)
Red HatRed Hat Hardened Images
  • Default status: affected
  • 1.9.17-16.p2.2.hum1 up to but excluding * (unaffected)
Red HatRed Hat OpenShift AI 3.0
  • Default status: affected
  • 1793041981 up to but excluding * (unaffected)
Red HatRed Hat OpenShift AI 3.4
  • Default status: affected
  • 1793042006 up to but excluding * (unaffected)
Red HatRed Hat OpenShift AI 3.4
  • Default status: affected
  • 1793041995 up to but excluding * (unaffected)
Red HatRed Hat Update Infrastructure 5
  • Default status: affected
  • 1791964013 up to but excluding * (unaffected)
Red HatRed Hat Update Infrastructure 5
  • Default status: affected
  • 1791978693 up to but excluding * (unaffected)

Timeline

  1. 28 Aug 2026 Reported to Red Hat.
  2. 23 Sep 2026 Made public.
  3. 23 Sep 2026 Published

Weakness

References