CVE-2026-96512

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

HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.32 % · percentile 25 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Awaiting Analysis

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.

Weaknesses (CWE)

  • CWE-863 — Incorrect Authorization

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hredhat
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · secalert@redhat.com (Secondary)

European references

CERT-FR advisories

Affected products

ProductVersions
Red Hat · Red Hat Enterprise Linux 10unaffected 0:1.9.17-10.p2.el10_2.7 < *
Red Hat · Red Hat Enterprise Linux 10.0 Extended Update Supportunaffected 0:1.9.15-8.p5.el10_0.5 < *
Red Hat · Red Hat Enterprise Linux 8unaffected 0:1.9.5p2-2.el8_10 < *
Red Hat · Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportunaffected 0:1.8.29-7.el8_4.4 < *
Red Hat · Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onunaffected 0:1.8.29-7.el8_4.4 < *
Red Hat · Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportunaffected 0:1.9.5p2-1.el8_6.4 < *
Red Hat · Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onunaffected 0:1.9.5p2-1.el8_6.4 < *
Red Hat · Red Hat Enterprise Linux 8.8 Telecommunications Update Serviceunaffected 0:1.9.5p2-1.el8_8.4 < *
Red Hat · Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsunaffected 0:1.9.5p2-1.el8_8.4 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 0:1.9.17p2-3.el9_8.3 < *
Red Hat · Red Hat Enterprise Linux 9unaffected 0:1.9.17p2-3.el9_8.3 < *
Red Hat · Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsunaffected 0:1.9.5p2-9.el9_2.5 < *
Red Hat · Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionsunaffected 0:1.9.5p2-10.el9_4.4 < *
Red Hat · Red Hat Enterprise Linux 9.6 Extended Update Supportunaffected 0:1.9.5p2-10.el9_6.4 < *
Red Hat · Red Hat Hardened Imagesunaffected 1.9.17-16.p2.2.hum1 < *
Red Hat · Red Hat Update Infrastructure 5unaffected 1791964013 < *
Red Hat · Red Hat Update Infrastructure 5unaffected 1791978693 < *
Red Hat · Red Hat Enterprise Linux 7

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD