https://seclists.org/oss-sec/2026/q3/919: CVE-2026-96512: sudo: TZ still affects NOTBEFO/NOTAFTER

Published Sep 24, 2026
·
Updated

Affected Software

1 affected component
Sudo Sudo>=1.8.20<=1.9.17p2

Frequently Asked Questions

1

Who can exploit this issue?

A local user subject to a sudoers rule with NOTBEFORE or NOTAFTER timestamps can exploit it by controlling their TZ environment variable. Authentication is still required; the flaw affects the rule's time validation rather than authentication itself.

2

Which sudoers rules are vulnerable?

Rules are affected when their NOTBEFORE or NOTAFTER timestamp does not end with Z. Such timestamps are parsed using mktime(), which can be influenced by the calling user's TZ setting.

3

How much can the allowed time window be shifted?

An attacker can set TZ to an extreme offset and shift the effective time window by almost 25 hours. This can allow an expired rule to remain usable or a future rule to become usable early.

4

What can be done before an updated sudo release is available?

Use UTC timestamps with a trailing Z for NOTBEFORE and NOTAFTER values in sudoers rules. The fix is in the main branch, but no release containing it was available in the provided information.

5

What versions are affected?

Affected versions are sudo 1.8.20 through 1.9.17p2, as well as the main branch before the fix. The issue was tested on glibc and musl.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203