CVE-2026-45585: Windows BitLocker Security Feature Bypass Vulnerability
CVE-2026-45585 is a security feature bypass vulnerability in Windows BitLocker, rated Important by Microsoft, with a CVSS 3.1 base score of 6.8 (Medium). An attacker can exploit it by an attacker with physical access, without any privileges and without user interaction. Microsoft has not reported exploitation in the wild and rates exploitation as more likely. It was publicly disclosed before the fix was released. The EPSS model estimates a 0.49% probability of exploitation activity in the next 30 days, higher than 35% of all scored vulnerabilities. Microsoft released the fix on 19 May 2026, outside Patch Tuesday, delivered through 3 security updates (KB5094125, KB5094126, KB5095051). It affects 5 products in 1 product family (Windows).
Key facts
- CVE ID
- CVE-2026-45585
- Severity
- Medium CVSS 6.8
- Microsoft severity
- Important
- Impact
- Security Feature Bypass
- Exploited in the wild
- No
- Publicly disclosed
- Yes
- Exploitation likelihood
- More Likely
- Weakness
- CWE-77
- EPSS
- 0.49% (percentile 35%)
- CISA KEV
- Not listed
- Released
- Last updated
- Patch Tuesday
- May 2026 Patch Tuesday
- Product families
- Windows
CVSS score and vector
Microsoft scores CVE-2026-45585 at 6.8 (temporal 6.3) using CVSS 3.1. Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P/RL:W/RC:C
| Metric | Value |
|---|---|
| Attack vector | Physical |
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality impact | High |
| Integrity impact | High |
| Availability impact | High |
| Exploit code maturity | Proof of concept |
| Remediation level | Workaround |
| Report confidence | Confirmed |
Description
Microsoft is aware of a security feature bypass vulnerability in Windows publicly referred to as "YellowKey". The proof of concept for this vulnerability has been made public violating coordinated vulnerability best practices.
We are issuing this CVE to provide mitigation guidance that can be implemented to protect against this vulnerability until the security update is made available.
Mitigation FAQs
Should I leverage the temporary mitigation?
Microsoft recommends that you consider implementing these mitigations if you are concerned your devices and data are at risk of being compromised or stolen. For example, if your organization’s employees take their work devices home or on business travel.
What impact to service availability/management could be caused by implementing the mitigations?
Implementing these mitigations will not impact service availability or management operations.
Do customers need to revert the changes made to mitigate the vulnerability once the security update to protect against this vulnerability is available?
No. The security update will maintain the mitigation's behavior once the security update is installed.
I am using TPM+PIN, am I at risk of this vulnerability being exploited
No, if you are using TPM+PIN the vulnerability is not exploitable.
Frequently asked questions (Microsoft)
What kind of security feature could be bypassed by successfully exploiting this vulnerability?
A successful attacker could bypass the BitLocker Device Encryption feature on the system storage device. An attacker with physical access to the target could exploit this vulnerability to gain access to encrypted data.
Is there a script that I can copy and paste to implement a mitigation?
Yes. This script is an interim security fix that helps to reduce the risk of exploitation of the vulnerability.
The script is for WinRE and removes autofstx.exe from the BootExecute registry value. Since BootExecute runs programs very early in boot (even in recovery mode), removing this entry prevents that executable from running in a high‑privilege environment, reducing risk.
It works by mounting the WinRE image, editing its offline SYSTEM registry to remove the entry if present, then safely committing changes and re‑sealing WinRE so BitLocker trust remains intact.
It’s designed to be safe—if the autofstx.exe entry isn’t there, it exits without making changes.
<#
.SYNOPSIS
Removes autofstx.exe from the WinRE BootExecute registry value.
.DESCRIPTION
This remediation script removes the "autofstx.exe" entry from the BootExecute
REG_MULTI_SZ value inside the Windows Recovery Environment (WinRE) offline
SYSTEM registry hive. This is a security fix to prevent autofstx.exe from
executing during WinRE boot.
The script performs the following steps:
1. Verify administrator privileges
2. Verify WinRE is enabled
3. Mount the WinRE image via reagentc
4. Load the offline SYSTEM registry hive
5. Read BootExecute and remove autofstx.exe if present
6. Unload the offline hive
7. Unmount the WinRE image with commit
8. Disable and re-enable WinRE to re-seal BitLocker trust chain
Exit 0 = Success (entry removed or not present)
Exit 1 = Failure (error during remediation)
.PARAMETER MountPath
Directory to use as the WinRE mount point. Created if it does not exist.
Default: C:\Mount
.EXAMPLE
# Standard run
.\Remove-AutoFsTxFromWinRE.ps1
.EXAMPLE
# Custom mount path
.\Remove-AutoFsTxFromWinRE.ps1 -MountPath D:\mount
.NOTES
Requirements: Windows with WinRE and reagentc support, Administrator privileges.
The WinRE disable/enable cycle at the end is required to re-seal the
BitLocker measurement chain after modifying the WinRE image.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
#>
param(
[Parameter(Mandatory = $false)]
[string]$MountPath = "C:\Mount"
)
# Target entry to remove from BootExecute
$EntryToRemove = "autofstx.exe"
# Internal constant for the offline hive key name
$HiveName = "WinREHive"
# State tracking for cleanup
$hiveLoaded = $false
$imageMounted = $false
$mountCreated = $false
$changesMade = $false
Write-Host "Remove autofstx.exe from WinRE BootExecute"
# 1. Verify Administrator Privileges
# PS Version: All | Admin: Yes | System Requirements: None
try {
$identity = [Security.Principal.WindowsIdentity]::GetCurrent()
$principal = [Security.Principal.WindowsPrincipal]$identity
$isAdmin = $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
if (-not $isAdmin) {
Write-Host "[1/8] Administrator check: FAILED" -ForegroundColor Red
Write-Host " This script must be run as Administrator."
Write-Host " Right-click PowerShell and select 'Run as administrator'."
exit 1
}
Write-Host "[1/8] Administrator check: Passed" -ForegroundColor Green
} catch {
Write-Warning "Error checking administrator privileges: $_"
exit 1
}
# 2. Check WinRE Status
# PS Version: All | Admin: Yes | System Requirements: reagentc.exe
try {
$winreOutput = & reagentc /info 2>&1
if ($LASTEXITCODE -ne 0) {
Write-Host "[2/8] WinRE status check: FAILED" -ForegroundColor Red
Write-Warning "reagentc /info returned exit code $LASTEXITCODE"
exit 1
}
$winreOutputStr = $winreOutput -join "`n"
# Make this check language agnostic
if ($winreOutputStr -match "[::]\s*Enabled\b") {
Write-Host "[2/8] WinRE status: Enabled" -ForegroundColor Green
} else {
Write-Host "[2/8] WinRE status: NOT ENABLED. Exiting." -ForegroundColor Green
exit 0
}
} catch {
Write-Warning "Error checking WinRE status: $_"
exit 1
}
# 3. Mount WinRE Image
# PS Version: All | Admin: Yes | System Requirements: reagentc.exe
try {
if (-not (Test-Path $MountPath)) {
New-Item -ItemType Directory -Path $MountPath -Force | Out-Null
$mountCreated = $true
Write-Host "[3/8] Created mount directory: $MountPath"
} else {
$existing = Get-ChildItem -Path $MountPath -Force -ErrorAction SilentlyContinue
if ($existing) {
Write-Host "[3/8] Mount WinRE image: FAILED" -ForegroundColor Red
Write-Host " Mount directory $MountPath is not empty."
Write-Host " Clean it or specify a different -MountPath."
exit 1
}
}
$mountOutput = & reagentc /mountre /path $MountPath 2>&1
if ($LASTEXITCODE -ne 0) {
Write-Host "[3/8] Mount WinRE image: FAILED" -ForegroundColor Red
Write-Warning "reagentc /mountre output: $mountOutput"
exit 1
}
$imageMounted = $true
Write-Host "[3/8] WinRE image mounted: $MountPath" -ForegroundColor Green
} catch {
Write-Warning "Error mounting WinRE image: $_"
exit 1
}
# 4. Load Offline SYSTEM Registry Hive
# PS Version: All | Admin: Yes | System Requirements: reg.exe
try {
# Locate the SYSTEM hive in the mounted WinRE image
$hivePath = $null
$hiveCandidates = @(
"$MountPath\Windows\System32\config\SYSTEM",
"$MountPath\windows\system32\config\SYSTEM"
)
foreach ($candidate in $hiveCandidates) {
if (Test-Path $candidate) {
$hivePath = $candidate
break
}
}
if (-not $hivePath) {
# Broader search as fallback
$found = Get-ChildItem -Path $MountPath -Recurse -Filter "SYSTEM" -ErrorAction SilentlyContinue |
Where-Object { $_.FullName -match "config\\SYSTEM$" } |
Select-Object -First 1
if ($found) {
$hivePath = $found.FullName
}
}
if (-not $hivePath) {
Write-Host "[4/8] Load offline hive: FAILED" -ForegroundColor Red
Write-Warning "Cannot locate SYSTEM hive in mounted WinRE image."
# Cleanup: unmount with discard
$null = & reagentc /unmountre /path $MountPath /discard 2>&1
$imageMounted = $false
exit 1
}
Write-Host "[4/8] Found SYSTEM hive: $hivePath"
$loadOutput = & reg load "HKLM\$HiveName" $hivePath 2>&1
if ($LASTEXITCODE -ne 0) {
Write-Host "[4/8] Load offline hive: FAILED" -ForegroundColor Red
Write-Warning "reg load output: $loadOutput"
# Cleanup: unmount with discard
$null = & reagentc /unmountre /path $MountPath /discard 2>&1
$imageMounted = $false
exit 1
}
$hiveLoaded = $true
Write-Host "[4/8] Hive loaded as HKLM\$HiveName" -ForegroundColor Green
} catch {
Write-Warning "Error loading offline hive: $_"
if ($imageMounted) {
$null = & reagentc /unmountre /path $MountPath /discard 2>&1
$imageMounted = $false
}
exit 1
}
# 5. Read BootExecute and Remove autofstx.exe
# PS Version: All | Admin: Yes | System Requirements: None
try {
# Determine active ControlSets from Select key
$selectPath = "Registry::HKEY_LOCAL_MACHINE\$HiveName\Select"
$selectProps = Get-ItemProperty -Path $selectPath -ErrorAction SilentlyContinue
if ($selectProps -and $selectProps.Current) {
$csNumbers = @($selectProps.Current)
if ($selectProps.Default -and $selectProps.Default -ne $selectProps.Current) {
$csNumbers += $selectProps.Default
}
$controlSets = $csNumbers | ForEach-Object { "ControlSet{0:D3}" -f [int]$_ }
Write-Host "[5/8] Active ControlSets (from Select key): $($controlSets -join ', ')"
} else {
$controlSets = @("ControlSet001")
Write-Host "[5/8] Select key not readable, falling back to ControlSet001"
}
# Remediate all relevant ControlSets
$foundEntry = $false
foreach ($cs in $controlSets) {
$regPath = "Registry::HKEY_LOCAL_MACHINE\$HiveName\$cs\Control\Session Manager"
$testResult = Get-ItemProperty -Path $regPath -Name "BootExecute" -ErrorAction SilentlyContinue
if (-not $testResult) {
Write-Host " $cs\Session Manager\BootExecute: not found, skipping"
continue
}
$currentValue = $testResult.BootExecute
if (-not $currentValue) {
Write-Host " $cs BootExecute: (empty)"
continue
}
# Remove matching entry (case-insensitive)
$updatedValue = @($currentValue | Where-Object {
$_ -and
($_ -ne $EntryToRemove) -and
($_ -notmatch "^\s*$([regex]::Escape($EntryToRemove))\s*$")
})
if ($updatedValue.Count -eq @($currentValue).Count) {
Write-Host " $cs BootExecute: '$EntryToRemove' not present"
continue
}
# Write updated REG_MULTI_SZ back
Set-ItemProperty -Path $regPath -Name "BootExecute" -Value $updatedValue
$foundEntry = $true
Write-Host " $cs BootExecute: removed '$EntryToRemove'" -ForegroundColor Green
# Verify the write
$verifyValue = (Get-ItemProperty -Path $regPath -Name "BootExecute" -ErrorAction Stop).BootExecute
Write-Host " $cs verification: $($verifyValue -join '; ')"
}
if (-not $foundEntry) {
Write-Host "[5/8] '$EntryToRemove' not found in any active ControlSet. No changes needed." -ForegroundColor Green
# Cleanup: unload hive, unmount with discard
[gc]::Collect()
Start-Sleep -Seconds 1
$null = & reg unload "HKLM\$HiveName" 2>&1
$hiveLoaded = $false
$null = & reagentc /unmountre /path $MountPath /discard 2>&1
$imageMounted = $false
if ($mountCreated) { Remove-Item -Path $MountPath -Recurse -Force -ErrorAction SilentlyContinue }
exit 0
}
$changesMade = $true
Write-Host "[5/8] Removed '$EntryToRemove' from BootExecute" -ForegroundColor Green
} catch {
Write-Warning "Error modifying BootExecute: $_"
# Cleanup: unload hive, unmount with discard
[gc]::Collect()
Start-Sleep -Seconds 2
if ($hiveLoaded) {
$null = & reg unload "HKLM\$HiveName" 2>&1
$hiveLoaded = $false
}
if ($imageMounted) {
$null = & reagentc /unmountre /path $MountPath /discard 2>&1
$imageMounted = $false
}
exit 1
}
# 6. Unload Offline Registry Hive
# PS Version: All | Admin: Yes | System Requirements: reg.exe
try {
[gc]::Collect()
Start-Sleep -Seconds 2
$unloadOutput = & reg unload "HKLM\$HiveName" 2>&1
if ($LASTEXITCODE -ne 0) {
Write-Warning "First unload attempt failed, retrying..."
[gc]::Collect()
Start-Sleep -Seconds 3
$unloadOutput = & reg unload "HKLM\$HiveName" 2>&1
if ($LASTEXITCODE -ne 0) {
Write-Host "[6/8] Unload hive: FAILED" -ForegroundColor Red
Write-Warning "reg unload output: $unloadOutput"
Write-Host " Close any Registry Editor windows and retry."
# Try to unmount with discard to avoid leaving image mounted
$null = & reagentc /unmountre /path $MountPath /discard 2>&1
$imageMounted = $false
exit 1
}
}
$hiveLoaded = $false
Write-Host "[6/8] Offline hive unloaded" -ForegroundColor Green
} catch {
Write-Warning "Error unloading hive: $_"
$null = & reagentc /unmountre /path $MountPath /discard 2>&1
$imageMounted = $false
exit 1
}
# 7. Unmount WinRE Image with Commit
# PS Version: All | Admin: Yes | System Requirements: reagentc.exe
try {
if ($changesMade) {
$unmountOutput = & reagentc /unmountre /path $MountPath /commit 2>&1
} else {
$unmountOutput = & reagentc /unmountre /path $MountPath /discard 2>&1
}
if ($LASTEXITCODE -ne 0) {
Write-Host "[7/8] Unmount WinRE: FAILED" -ForegroundColor Red
Write-Warning "reagentc /unmountre output: $unmountOutput"
# Attempt discard as fallback
if ($changesMade) {
Write-Host " Attempting discard to avoid leaving image in broken state..."
$null = & reagentc /unmountre /path $MountPath /discard 2>&1
}
$imageMounted = $false
exit 1
}
$imageMounted = $false
if ($changesMade) {
Write-Host "[7/8] WinRE image unmounted and committed" -ForegroundColor Green
} else {
Write-Host "[7/8] WinRE image unmounted (no changes)" -ForegroundColor Green
}
} catch {
Write-Warning "Error unmounting WinRE image: $_"
exit 1
}
# 8. Re-seal WinRE (Disable + Enable Cycle for BitLocker Trust Chain)
# PS Version: All | Admin: Yes | System Requirements: reagentc.exe, BitLocker
try {
if (-not $changesMade) {
Write-Host "[8/8] Re-seal WinRE: Skipped (no changes made)" -ForegroundColor Green
} else {
$disableOutput = & reagentc /disable 2>&1
if ($LASTEXITCODE -ne 0) {
Write-Warning "reagentc /disable returned non-zero: $disableOutput"
} else {
Write-Host " WinRE disabled."
}
$enableOutput = & reagentc /enable 2>&1
if ($LASTEXITCODE -ne 0) {
Write-Host "[8/8] Re-seal WinRE: FAILED" -ForegroundColor Red
Write-Warning "reagentc /enable output: $enableOutput"
Write-Host " WinRE may need manual recovery. Run: reagentc /enable"
exit 1
}
Write-Host "[8/8] WinRE re-sealed (disable + enable cycle)" -ForegroundColor Green
}
} catch {
Write-Warning "Error during WinRE re-seal: $_"
Write-Host " Run manually: reagentc /enable"
exit 1
}
Write-Host ""
Write-Host " COMPLETE: '$EntryToRemove' removed from WinRE BootExecute" -ForegroundColor Green
# Cleanup: remove mount directory if we created it
if ($mountCreated -and (Test-Path $MountPath)) {
Remove-Item -Path $MountPath -Recurse -Force -ErrorAction SilentlyContinue
}
exit 0
Affected products (5)
Windows
| Product | Security update | Type | Fixed build | Restart |
|---|---|---|---|---|
| Windows Server 2025 (Server Core installation) | KB5094125 | Security Update | 10.0.26100.32995 | Yes |
| Windows 11 Version 25H2 for x64-based Systems | KB5094126 | Security Update | 10.0.26200.8655 | Yes |
| Windows 11 Version 24H2 for x64-based Systems | ||||
| Windows Server 2025 | KB5094125 | Security Update | 10.0.26100.32995 | Yes |
| Windows 11 version 26H1 for x64-based Systems | KB5095051 | Security Update | 10.0.28000.2269 | Yes |
Security updates (3)
Exploitation and detection
Detection and weaponization
Weaponization maturity: Exploit.
Proof-of-concept repositories (7)
- bjbakker1984/Yellowkey-mitigation
- everest90909/YellowKey-WinRE-Remediation · 1 stars
- andrei-majer/bitlocker-hardening · 6 stars
- ashrafzaryouh/CVE-2026-45585 · 1 stars
- ChanderManiPandey2022/Yellow-Key-Check
- ChanderManiPandey2022/YellowKey-BitLocker-Bypass-CVE-2026-45585-Detect-Fix-Automatically-via-Microsoft-Intune
- Neccie/YellowKey-Bitlocker-CVE-2026-45585
NIST NVD data
- NVD status
- Modified
- NVD CVSS
- 6.8 (MEDIUM)
- NVD weakness
- CWE-77
- Published to NVD
- NVD last modified
Affected configurations (CPE)
| Product | Vulnerable versions |
|---|---|
| windows 11 24h2 (x64) | all listed versions |
| windows 11 25h2 (x64) | all listed versions |
| windows 11 26h1 (x64) | all listed versions |
| windows server 2025 | all listed versions |
References
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-45585 (Mitigation, Vendor Advisory)
- https://github.com/Nightmare-Eclipse/YellowKey (Exploit, Third Party Advisory)
Revision history
| Version | Date | Description |
|---|---|---|
| 1.0 | Information published. | |
| 1.1 | Updated Step 2 of the first mitigation. This is an informational change only. | |
| 1.2 | Added a script to implement a mitigation and removed the manual mitigations. Please read the information to decide if you need to run the provided script. | |
| 1.3 | Fixed a typographical error. This is an information change only. | |
| 1.4 | Updated the script in the FAQ section to make it language agnostic. Microsoft recommends customers to recopy the script and then run it to enable the mitigation. | |
| 2.0 | Added links to June 2026 Windows security updates. Microsoft recommends installing this updates as soon as possible. | |
| 2.1 | Updated product information in the Software Update table. This is an informational change only. |