CVE-2026-96512

Source
https://cve.org/CVERecord?id=CVE-2026-96512
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-96512.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-96512
Downstream
Published
2026-09-23T13:22:33Z
Modified
2026-09-25T08:21:37Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Sudo: sudo: tz environment variable allows bypass of notbefore/notafter time-based authorization
Details

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.

Database specific
{
    "cna_assigner":  "redhat",
    "cwe_ids":  [
        "CWE-863"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/96xxx/CVE-2026-96512.json"
}
References

Affected packages

Git / github.com/sudo-project/sudo

Affected ranges

Type
GIT
Repo
https://github.com/sudo-project/sudo
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "source":  "REFERENCES"
}

Affected versions

Other
SUDO_1_3_0
SUDO_1_3_1
SUDO_1_4_0
SUDO_1_5_0
SUDO_1_5_1
SUDO_1_5_2
SUDO_1_5_3
SUDO_1_5_4
SUDO_1_5_6
SUDO_1_5_7
SUDO_1_5_8
SUDO_1_5_9
SUDO_1_6_0
SUDO_1_6_1
SUDO_1_6_2
SUDO_1_6_3
SUDO_1_6_4
SUDO_1_6_5
SUDO_1_6_6
SUDO_1_6_7
SUDO_1_6_8
SUDO_1_6_8p1
SUDO_1_7_0
SUDO_1_7_1
SUDO_1_7_2
SUDO_1_8_0
SUDO_1_9_0
TAG
v1.*
v1.3.0
v1.3.1
v1.4.0
v1.5.0
v1.5.1
v1.5.2
v1.5.3
v1.5.4
v1.5.6
v1.5.7
v1.5.8
v1.5.9
v1.6.0
v1.6.1
v1.6.2
v1.6.3
v1.6.4
v1.6.5
v1.6.6
v1.6.7
v1.6.8
v1.6.8p1
v1.7.0
v1.7.1
v1.7.2
v1.8.0
v1.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-96512.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "9319235546598910583774268978217553074",
            "length":  153
        },
        "id":  "CVE-2026-96512-1d79afa4",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/sudo-project/sudo/commit/1820a349687522f51023d1ae5925125f59679a8c",
        "target":  {
            "file":  "src/sudo.c",
            "function":  "os_init_common"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "239294573858398463722659055902919187929",
                "265172374402807157782294603375784425339",
                "323401018557709330249791543400988508970",
                "201754359643754543026283261386670882224",
                "237234558570404311315579195186606476964",
                "74510198053940469286183367694252494340",
                "195774912355408528478252437385537436387",
                "229794893895638504022855192983165990293",
                "185553497298630899085034740090152438290",
                "213348085891319926465695648582448795902",
                "281843997803869089061976057073901404933",
                "205645843775385534532862623651724057738",
                "195569833539311874647384729266330484774",
                "101588054128266904875030261395271705892",
                "240032859461377826567889470259526638596",
                "70788670440033008683807081546759953896",
                "13357809842510696784091947397908102182",
                "148405929639429470999426616263125003050",
                "331271322997600252311633803499186963076",
                "271036122030785583130095104336186268511"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-96512-4e217b23",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/sudo-project/sudo/commit/1820a349687522f51023d1ae5925125f59679a8c",
        "target":  {
            "file":  "src/sudo.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "166693460946119412075002098276697901923",
            "length":  158
        },
        "id":  "CVE-2026-96512-ad91f8f3",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/sudo-project/sudo/commit/1820a349687522f51023d1ae5925125f59679a8c",
        "target":  {
            "file":  "src/sudo.c",
            "function":  "set_time_zone"
        }
    }
]
vanir_signatures_modified
"2026-09-25T08:21:37Z"