CVE-2026-96512Sudo: sudo: tz environment variable allows bypass of notbefore/notafter time-based…
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | sudo | Fixed | 1.9.17p2-1ubuntu3.2 | UBUNTU-CVE-2026-96512 |
| Ubuntu 24.04 | sudo | Fixed | 1.9.15p5-3ubuntu5.24.04.4 | UBUNTU-CVE-2026-96512 |
| Ubuntu 22.04 | sudo | Fixed | 1.9.9-1ubuntu2.7 | UBUNTU-CVE-2026-96512 |
| Ubuntu 20.04 | sudo | Fix pending | 1.8.31-1ubuntu1.5+esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-96512 |
| Ubuntu 18.04 | sudo | Fix pending | 1.8.21p2-3ubuntu1.6+esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-96512 |
| Debian 14 | sudo | Fixed | 1.9.17p2-9 | DEBIAN-CVE-2026-96512 |
| Debian 13 | sudo | Fixed | 1.9.16p2-3+deb13u5 | DEBIAN-CVE-2026-96512 |
| Debian 12 | sudo | Fix pending | DEBIAN-CVE-2026-96512 | |
| Red Hat Enterprise Linux 10 | sudo | Fixed | 0:1.9.17-10.p2.el10_2.7 | RHSA-2026:75579 |
| Red Hat Enterprise Linux 10 | sudo-python-plugin | Fixed | 0:1.9.17-10.p2.el10_2.7 | RHSA-2026:75579 |
| Red Hat Enterprise Linux 9 | sudo | Fixed | 0:1.9.17p2-3.el9_8.3 | RHSA-2026:75571 |
| Red Hat Enterprise Linux 9 | sudo-python-plugin | Fixed | 0:1.9.17p2-3.el9_8.3 | RHSA-2026:75571 |
| Red Hat Enterprise Linux 8 | sudo | Fixed | 0:1.9.5p2-2.el8_10 | RHSA-2026:75580 |
| AlmaLinux 10 | sudo | Fixed | 1.9.17-10.p2.el10_2.7 | ALSA-2026:75579 |
| AlmaLinux 10 | sudo-python-plugin | Fixed | 1.9.17-10.p2.el10_2.7 | ALSA-2026:75579 |
| AlmaLinux 9 | sudo | Fixed | 1.9.17p2-3.el9_8.3 | ALSA-2026:75571 |
| AlmaLinux 9 | sudo-python-plugin | Fixed | 1.9.17p2-3.el9_8.3 | ALSA-2026:75571 |
| AlmaLinux 8 | sudo | Fixed | 1.9.5p2-2.el8_10 | ALSA-2026:75580 |
| Rocky Linux 10 | sudo | Fixed | 0:1.9.17-10.p2.el10_2.7 | RLSA-2026:75579 |
| Rocky Linux 9 | sudo | Fixed | 0:1.9.17p2-3.el9_8.3 | RLSA-2026:75571 |
| Rocky Linux 8 | sudo | Fixed | 0:1.9.5p2-2.el8_10 | RLSA-2026:75580 |
| Alpine Linux 3.24 | sudo | Fixed | 1.9.17_p2-r2 | ALPINE-CVE-2026-96512 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 10.0 Extended Update Support
- Red Hat Enterprise Linux 7 Extended Lifecycle Support
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On
- Red Hat Enterprise Linux 8.8 Telecommunications Update Service
- Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
Workaround: 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'.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2026:71609 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:75571 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:75579 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:75580 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:82939 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:86633 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2026:71609
- https://access.redhat.com/errata/RHSA-2026:75571
- https://access.redhat.com/errata/RHSA-2026:75579
- https://access.redhat.com/errata/RHSA-2026:75580
- https://access.redhat.com/errata/RHSA-2026:82939
- https://access.redhat.com/errata/RHSA-2026:86633
- https://access.redhat.com/errata/RHSA-2026:86634
- https://access.redhat.com/errata/RHSA-2026:86635
- https://access.redhat.com/errata/RHSA-2026:87026
- https://access.redhat.com/errata/RHSA-2026:90287
- https://access.redhat.com/errata/RHSA-2026:91217
- https://access.redhat.com/errata/RHSA-2026:91219
- https://access.redhat.com/errata/RHSA-2026:91244
- https://access.redhat.com/errata/RHSA-2026:92325
- https://access.redhat.com/errata/RHSA-2026:92326
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.