Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-96512

Опубликовано: 23 сент. 2026
Источник: redhat
CVSS3: 7.8
EPSS Низкий

Описание

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.

Отчет

This vulnerability is rated as Important severity because a local authenticated user can bypass time-based sudoers restrictions and execute privileged commands outside the configured validity window. Exploitation requires a sudoers rule with NOTBEFORE or NOTAFTER timestamps that omit the trailing 'Z' suffix, and the attacker must be the subject of such a rule. This is an optional feature not enabled in default configurations. PAM authentication is unaffected; the attacker cannot gain access beyond what the sudoers rule already grants. Sudo calls unsetenv("TZ") and tzset() early in startup as a partial defense, but upstream accepted and fixed the vulnerability, indicating this control is insufficient on at least some platforms. Red Hat ships sudo in all supported RHEL versions (RHEL 7 through RHEL 10 and RHIVOS). Red Hat product impact analysis for specific streams is pending affect filing.

Меры по смягчению последствий

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'.

Дополнительная информация

Статус:

Important
Дефект:
CWE-863
https://bugzilla.redhat.com/show_bug.cgi?id=2539327sudo: sudo: TZ environment variable allows bypass of NOTBEFORE/NOTAFTER time-based authorization

EPSS

Процентиль: 25%
0.00321
Низкий

7.8 High

CVSS3

Связанные уязвимости

CVSS3: 7.8
ubuntu
около 2 месяцев назад

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.

CVSS3: 7.8
nvd
около 2 месяцев назад

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.

CVSS3: 7.8
msrc
около 2 месяцев назад

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

CVSS3: 7.8
debian
около 2 месяцев назад

A flaw was found in sudo. When sudoers rules use NOTBEFORE or NOTAFTER ...

CVSS3: 7.8
redos
27 дней назад

Уязвимость sudo

EPSS

Процентиль: 25%
0.00321
Низкий

7.8 High

CVSS3