← CVE Intelligence

CVE-2026-96512

Sudo: sudo: tz environment variable allows bypass of notbefore/notafter time-based authorization PUBLISHED

Description (CNA)

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.

Affected (CNA)

Vendor / productVersions
Red Hat / Red Hat Enterprise Linux 10unaffected 0:1.9.17-10.p2.el10_2.7 before *
Red Hat / Red Hat Enterprise Linux 10.0 Extended Update Supportunaffected 0:1.9.15-8.p5.el10_0.5 before *
Red Hat / Red Hat Enterprise Linux 8unaffected 0:1.9.5p2-2.el8_10 before *
Red Hat / Red Hat Enterprise Linux 8.8 Telecommunications Update Serviceunaffected 0:1.9.5p2-1.el8_8.4 before *
Red Hat / Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsunaffected 0:1.9.5p2-1.el8_8.4 before *
Red Hat / Red Hat Enterprise Linux 9unaffected 0:1.9.17p2-3.el9_8.3 before *
Red Hat / Red Hat Enterprise Linux 9unaffected 0:1.9.17p2-3.el9_8.3 before *
Red Hat / Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionsunaffected 0:1.9.5p2-10.el9_4.4 before *
Red Hat / Red Hat Enterprise Linux 9.6 Extended Update Supportunaffected 0:1.9.5p2-10.el9_6.4 before *
Red Hat / Red Hat Hardened Imagesunaffected 1.9.17-16.p2.2.hum1 before *
Red Hat / Red Hat Update Infrastructure 5unaffected 1791964013 before *
Red Hat / Red Hat Update Infrastructure 5unaffected 1791978693 before *
Red Hat / Red Hat Enterprise Linux 7affected

CWE

CWE-863

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.

CVE

No English description supplied.