/

CVE-2026-96512

Severity:

HIGH RISK

(7.8)

Time-Based Authorization Bypass (CWE-863) in sudo Tool

CVE-2026-96512

Awaiting Analysis

Vulnerability type

Category:

Authorization Bypass

CWE:

CWE-863

Impact:

Unauthorized command execution outside approved time windows

Severity:

HIGH RISK

(7.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A flaw in sudo can cause time-based sudoers restrictions to be evaluated using a caller-controlled TZ environment variable when timestamps omit the trailing Z timezone indicator. A local user may shift the effective authorization window and run commands after or before the intended period, although this does not bypass authentication.

Affected context

The issue occurs in sudo configurations that use NOTBEFORE or NOTAFTER restrictions with timestamps lacking an explicit timezone indicator. It is relevant when sudo inherits the invoking user's TZ environment variable and uses that value while evaluating access, allowing the effective time window to differ from the administrator's intended schedule.

Exploit preconditions

  • Attack surface: Local sudo authorization processing
  • Required access: An authenticated local account that can invoke sudo

and influence its inherited environment

  • Trigger point: Evaluation of a sudoers rule containing NOTBEFORE or

NOTAFTER timestamps without an explicit timezone suffix

  • Why exploitation is possible: The setuid-root sudo process may use a

caller-controlled TZ value, allowing an extreme timezone offset to shift

the authorization window

  • Scope limitation: Authentication remains required; the affected

control is the time-based authorization decision

Why this happens

The underlying bug is an improper trust-boundary decision in time interpretation. When a timestamp does not specify its timezone explicitly, sudo relies on TZ inherited from the unprivileged caller rather than a trusted, deterministic timezone context. This maps to CWE-863, Incorrect Authorization, because an attacker-controlled environmental value can alter whether an otherwise authenticated request satisfies an authorization condition.

Potential impact

  • A local user may execute permitted sudo commands outside their intended time window.
  • Expired or not-yet-active sudoers rules could be treated as valid.
  • Administrative commands may be run outside approved operational periods.
  • Security and compliance controls based on scheduled authorization may be weakened.

General mitigation guidance

Mitigation generally focuses on making authorization time evaluation

deterministic and independent of caller-controlled environment state.

Common defensive patterns include:

  • Expressing authorization timestamps with an explicit timezone indicator.
  • Ignoring or tightly constraining environment variables that can affect

security-sensitive parsing and policy decisions.

  • Centralizing time interpretation and using a trusted, consistent timezone

policy.

  • Applying least privilege so time-windowed accounts cannot perform

unnecessarily sensitive operations.

  • Reviewing sudoers policies for ambiguous timestamp formats and documenting

their intended timezone semantics.

How teams detect issues like this

Organizations can identify this issue through:

  • Static and configuration analysis for NOTBEFORE or NOTAFTER timestamps that

lack an explicit timezone indicator.

  • Code review checks for authorization logic that consumes inherited TZ values

or other caller-controlled environment variables.

  • Policy tests that evaluate access under extreme timezone offsets and around

authorization boundary times.

  • Runtime auditing of sudo approvals occurring outside expected schedules.
  • Automated configuration review tools and CI policy checks that enforce

explicit timezone formatting.

Sources

SourceLink
access.redhat.comaccess.redhat.com/errata/RHSA-2026:71609
access.redhat.comaccess.redhat.com/errata/RHSA-2026:75571
access.redhat.comaccess.redhat.com/errata/RHSA-2026:75579
access.redhat.comaccess.redhat.com/errata/RHSA-2026:75580
access.redhat.comaccess.redhat.com/errata/RHSA-2026:82939
access.redhat.comaccess.redhat.com/errata/RHSA-2026:86633
access.redhat.comaccess.redhat.com/errata/RHSA-2026:86634
access.redhat.comaccess.redhat.com/errata/RHSA-2026:86635
access.redhat.comaccess.redhat.com/errata/RHSA-2026:87026
access.redhat.comaccess.redhat.com/errata/RHSA-2026:90287
access.redhat.comaccess.redhat.com/errata/RHSA-2026:91217
access.redhat.comaccess.redhat.com/errata/RHSA-2026:91219
access.redhat.comaccess.redhat.com/errata/RHSA-2026:91244
access.redhat.comaccess.redhat.com/errata/RHSA-2026:92325
access.redhat.comaccess.redhat.com/errata/RHSA-2026:92326
access.redhat.comaccess.redhat.com/errata/RHSA-2026:92349
access.redhat.comaccess.redhat.com/security/cve/CVE-2026-96512
bugzilla.redhat.combugzilla.redhat.com/show_bug.cgi?id=2539327
github.comgithub.com/sudo-project/sudo/commit/1820a349687522f51023d1ae5925125f59679a8c
openwall.comopenwall.com/lists/oss-security/2026/09/24/4

Frequently asked

questions

No. Exploitation generally requires a local authenticated user who can invoke

sudo and influence the relevant environment. Remote impact could occur only

indirectly through another service that already provides local execution.

No. The user must still authenticate or otherwise satisfy sudo's configured

authentication requirements. The flaw affects the time-based authorization

check after that point.

Use explicit timezone indicators in time-based sudoers timestamps and ensure

authorization decisions do not depend on caller-controlled TZ values.

Treat environment variables as untrusted input in privilege-boundary code,

enforce deterministic time parsing, and test authorization policies at

timezone and schedule boundaries.

Find out what's already
exploitable in your codebase.