Skip to main content
← All vulnerabilities
CVE-2026-96512

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

Published
Last modified
published
Not listed in CISA KEV
2 proofs of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  2. CVE published
  3. Record last updated

Affected versions

  • sudo

    Version range not reported

  • sudo

    Version range not reported

  • sudo

    Version range not reported

  • sudo

    Version range not reported

  • sudo

    Version range not reported

  • sudo

    Version range not reported

  • sudo

    Version range not reported

  • sudo

    Version range not reported

  • sudo

    Version range not reported

  • sudo

    Version range not reported

  • sudo

    Version range not reported

  • sudo

    Version range not reported

  • sudo

    Version range not reported

  • sudo

    Version range not reported

  • sudo-main

    Version range not reported

  • rhai/base-image-rocm-rhel9

    Version range not reported

  • rhai/base-image-rocm-7.1-rhel9

    Version range not reported

  • rhai/base-image-rocm-6.4-rhel9

    Version range not reported

  • rhui5/installer-rhel9

    Version range not reported

  • rhui5/rhua-rhel9

    Version range not reported

References 21

access.redhat.com

bugzilla.redhat.com

GitHub · sudo-project/sudo

GitHub · Ermensonx/sudotimewarp-cve-2026-96512-

GitHub · abraxas/CVE-2026-96512