1. Accueil
  2. Vulnérabilités
  3. CVE-2026-96512

CVE-2026-96512

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

Publiée le 23 sept. 2026 · modifiée le 29 oct. 2026 · Sources : NVD, CNA (éditeur ou attributeur), CERT-FR, EPSS (FIRST)

Faible 38/100

Résumé

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.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Redhat (18 ligne(s))
Redhat
ProduitVersionsCorrigé dansSource
Hat Enterprise Linux 10 Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 10.0 Extended Update Support Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 7 Extended Lifecycle Support Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 8 Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 8.8 Telecommunications Update Service Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 8.8 Update Services for SAP Solutions Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 9 Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 9.2 Update Services for SAP Solutions Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 9.4 Update Services for SAP Solutions Versions non précisées — CNA (éditeur ou attributeur)
Hat Enterprise Linux 9.6 Extended Update Support Versions non précisées — CNA (éditeur ou attributeur)
Hat Hardened Images Versions non précisées — CNA (éditeur ou attributeur)
Hat OpenShift AI 3.0 Versions non précisées — CNA (éditeur ou attributeur)
Hat OpenShift AI 3.4 Versions non précisées — CNA (éditeur ou attributeur)
Hat Update Infrastructure 5 Versions non précisées — CNA (éditeur ou attributeur)

Correctif

Non renseigné par l’éditeur.

Contournement

Contournementsource officielle

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

Source : CNA (éditeur ou attributeur)

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)
  2. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1385)
  3. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1472)
  4. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1486)

Avis CERT-FR

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
CNA (éditeur ou attributeur)
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1, CNA:secalert@redhat.com)
Faiblesse
CWE-863 · Authentification / contrôle d'accès

Comment sont obtenues et calculées ces données