Bug 2539327 (CVE-2026-96512) - CVE-2026-96512 sudo: sudo: TZ environment variable allows bypass of NOTBEFORE/NOTAFTER time-based authorization
Summary: CVE-2026-96512 sudo: sudo: TZ environment variable allows bypass of NOTBEFORE...
Keywords:
Status: NEW
Alias: CVE-2026-96512
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2539401
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-23 10:35 UTC by OSIDB Bzimport
Modified: 2026-10-29 11:08 UTC (History)
22 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:75571 0 None None None 2026-10-05 06:16:40 UTC
Red Hat Product Errata RHSA-2026:75579 0 None None None 2026-10-05 04:41:11 UTC
Red Hat Product Errata RHSA-2026:75580 0 None None None 2026-10-05 02:22:08 UTC
Red Hat Product Errata RHSA-2026:86633 0 None None None 2026-10-21 06:52:02 UTC
Red Hat Product Errata RHSA-2026:86634 0 None None None 2026-10-21 07:16:38 UTC
Red Hat Product Errata RHSA-2026:86635 0 None None None 2026-10-21 07:14:16 UTC
Red Hat Product Errata RHSA-2026:87026 0 None None None 2026-10-21 19:48:09 UTC
Red Hat Product Errata RHSA-2026:90287 0 None None None 2026-10-26 13:48:14 UTC
Red Hat Product Errata RHSA-2026:92325 0 None None None 2026-10-29 09:03:39 UTC
Red Hat Product Errata RHSA-2026:92326 0 None None None 2026-10-29 10:20:01 UTC
Red Hat Product Errata RHSA-2026:92349 0 None None None 2026-10-29 11:08:18 UTC

Description OSIDB Bzimport 2026-09-23 10:35:19 UTC
A flaw was found in sudo's handling of NOTBEFORE and NOTAFTER time-based authorization in sudoers rules. The parse_gentime() function in plugins/sudoers/gentime.c uses mktime() to interpret timestamps that lack a timezone suffix (no trailing 'Z' or explicit UTC offset). Because mktime() converts based on the process's TZ environment variable, and sudo is a setuid-root program that inherits the caller's environment, an unprivileged user can set TZ to an extreme POSIX timezone offset (e.g., TZ=XXX24) to shift the time evaluation window by up to ~25 hours in either direction. This allows expired NOTAFTER rules to appear valid, or not-yet-active NOTBEFORE rules to become usable. Authentication (PAM) is NOT bypassed; only the time-based authorization decision is affected.

The feature was introduced in sudo 1.8.20. All versions from 1.8.20 through 1.9.17p2 are affected. The fix was committed to upstream main by Todd Miller on 2026-08-29 (commit 1820a349687522f51023d1ae5925125f59679a8c) but sudo 1.9.18 has not been released.

Reported by Ermenson Junior (independent security researcher) on 2026-08-28.
PSIRT Ticket: PSIRTSUPT-24357

Comment 2 Akiyoshi Kurita 2026-09-28 11:15:40 UTC
Additional information:

A public PoC / exploit for CVE-2026-96512 is available here:

https://github.com/abraxas/cve-2026-96512

Red Hat CVE page:
https://access.redhat.com/security/cve/cve-2026-96512

Since publicly available exploit code may increase the practical exploitation risk, could you please take this into account when prioritizing the affected-product analysis and remediation for RHEL?

Thank you.

Comment 3 Jon Orris 2026-10-05 02:22:06 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:75580 https://access.redhat.com/errata/RHSA-2026:75580

Comment 4 Jon Orris 2026-10-05 04:41:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:75579 https://access.redhat.com/errata/RHSA-2026:75579

Comment 5 Jon Orris 2026-10-05 06:16:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:75571 https://access.redhat.com/errata/RHSA-2026:75571

Comment 7 Jon Orris 2026-10-21 06:51:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.0 Extended Update Support

Via RHSA-2026:86633 https://access.redhat.com/errata/RHSA-2026:86633

Comment 8 Jon Orris 2026-10-21 07:14:14 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions

Via RHSA-2026:86635 https://access.redhat.com/errata/RHSA-2026:86635

Comment 9 Jon Orris 2026-10-21 07:16:36 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:86634 https://access.redhat.com/errata/RHSA-2026:86634

Comment 10 Jon Orris 2026-10-21 19:48:07 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2026:87026 https://access.redhat.com/errata/RHSA-2026:87026

Comment 11 Jon Orris 2026-10-26 13:48:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:90287 https://access.redhat.com/errata/RHSA-2026:90287

Comment 12 Jon Orris 2026-10-29 09:03:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

Via RHSA-2026:92325 https://access.redhat.com/errata/RHSA-2026:92325

Comment 13 Jon Orris 2026-10-29 10:19:59 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2026:92326 https://access.redhat.com/errata/RHSA-2026:92326

Comment 14 Jon Orris 2026-10-29 11:08:16 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On

Via RHSA-2026:92349 https://access.redhat.com/errata/RHSA-2026:92349


Note You need to log in before you can comment on or make changes to this bug.