Back to Intelligence

CVE-2026-133992: LM Studio Weak Credentials Authentication Bypass — Detection and Hardening Guide

SA
Security Arsenal Team
November 27, 2026
12 min read

A vulnerability disclosed through the Zero Day Initiative's Pwn2Own pipeline — ZDI-26-1119 / CVE-2026-133992 — allows remote attackers to bypass authentication on affected installations of LM Studio due to weak credential handling. Critically, the advisory notes that authentication is not required to exploit the vulnerability, and ZDI has assigned it a CVSS score of 8.1 (High).

This should be a wake-up call for every security team with developers, data scientists, or red teamers running local LLM tooling. LM Studio has exploded in adoption as organizations experiment with local inference — and in far too many environments we've assessed, its built-in HTTP server is bound to 0.0.0.0, reachable from the LAN (or worse, the internet), with default or trivially weak credentials protecting model and chat endpoints. An unauthenticated authentication bypass against that attack surface is exactly the kind of bug that turns a developer workstation into a beachhead.

Reference: ZDI-26-1119 Advisory


Technical Analysis

Affected Product

AttributeDetail
ProductLM Studio (local LLM desktop application and embedded inference server)
ComponentAuthentication / credential validation for the LM Studio local server API
PlatformsWindows, macOS, Linux (all desktop builds shipping the affected server component)
CVECVE-2026-133992
AdvisoryZDI-26-1119 (Pwn2Own)
CVSS8.1 (High)
Attack VectorRemote, unauthenticated

How the Vulnerability Works (Defender's Perspective)

Per the ZDI advisory, the flaw is a weak credentials authentication bypass in LM Studio's server component. The key exploitation characteristics:

  1. The LM Studio server exposes an HTTP API (OpenAI-compatible endpoints such as /v1/chat/completions, /v1/models, and /v1/embeddings), by default listening on TCP 1234. Users frequently reconfigure the bind address from 127.0.0.1 to 0.0.0.0 so teammates or other machines can hit the API.
  2. Authentication on these endpoints relies on credential validation that is cryptographically or logically weak — the advisory classifies the root cause as a weak credentials flaw. An attacker who can reach the listening port can bypass the authentication check entirely and interact with the API as an authorized user.
  3. No prior authentication is required. The attacker only needs network reachability to the LM Studio server port.

Why This Is Dangerous Beyond 'Chat Access'

Teams consistently underestimate what access to a local LLM server grants an attacker:

  • Prompt injection and data theft: Chat histories, loaded model context, and any documents or system prompts users have fed the model may be retrievable through the API.
  • Inference abuse: The compromised host becomes free GPU compute for the attacker's workloads (fraud content generation, password candidate generation, etc.).
  • Lateral movement staging: The LM Studio host is typically a developer or data-science workstation — high-value targets holding cloud credentials, SSH keys, source code, and internal wiki tokens. API access gives an attacker a foothold to profile the host and plan the next hop.
  • Chaining potential: Post-authentication API functionality (model loading, file-path parameters in certain endpoints, JIT/tool-calling features in newer builds) materially increases the blast radius once authentication is bypassed.

Exploitation Status

This vulnerability was demonstrated/discovered through the Pwn2Own program and coordinated via ZDI, meaning it was proven exploitable under controlled conditions. As of publication, there are no confirmed reports of in-the-wild exploitation, and it has not been added to the CISA Known Exploited Vulnerabilities catalog. However, Pwn2Own-disclosed bugs historically see rapid PoC reproduction after disclosure — treat this as pre-exploitation and remediate now, not after a public exploit drops.


Detection & Response

The most reliable detection surface for this vulnerability is network-level: unauthenticated or anomalous requests hitting the LM Studio server port from hosts that have no business talking to it, and LM Studio listening on non-loopback interfaces. The following detections are tuned to minimize noise.

Sigma Rules

YAML
---
title: LM Studio Server Listening on Non-Loopback Interface
id: 3f8c1a72-5b9d-4e21-9c47-6a2d8f3b1e90
status: experimental
description: Detects the LM Studio server process bound to a non-loopback address (0.0.0.0 or an external interface), which exposes the API vulnerable to CVE-2026-133992 to remote attackers.
references:
  - http://www.zerodayinitiative.com/advisories/ZDI-26-1119/
author: Security Arsenal
date: 2026/04/10
tags:
  - attack.discovery
  - attack.t1046
logsource:
  category: network_connection
  product: windows
detection:
  selection_image:
    Image|endswith:
      - '\LM Studio.exe'
      - '\lm-studio.exe'
  selection_bind:
    Initiated: 'false'
    DestinationPort: 1234
    DestinationIp|startswith:
      - '0.0.0.0'
      - '10.'
      - '172.'
      - '192.168.'
  condition: selection_image and selection_bind
falsepositives:
  - Deliberately shared LM Studio instances on isolated lab networks — investigate and force justification
level: high
---
title: Remote Connection to LM Studio API Port From Non-Approved Host
id: 8b2e4d61-1c7a-4f35-b298-4d6a9e0c5f73
status: experimental
description: Detects inbound network connections to the LM Studio default API port (1234) where the source is not the local host, indicating remote interaction with a server potentially vulnerable to CVE-2026-133992 authentication bypass.
references:
  - http://www.zerodayinitiative.com/advisories/ZDI-26-1119/
author: Security Arsenal
date: 2026/04/10
tags:
  - attack.initial_access
  - attack.t1190
logsource:
  category: network_connection
  product: windows
detection:
  selection:
    DestinationPort: 1234
    Initiated: 'true'
  filter_local:
    SourceIp|startswith:
      - '127.'
      - '::1'
  condition: selection and not filter_local
falsepositives:
  - Legitimate multi-user LM Studio deployments — these should be inventoried and remediated, not whitelisted indefinitely
level: medium
---
title: LM Studio Process Spawning Shell or Script Interpreter
id: c41f7b28-6e93-4a08-bd56-2f8a1c9d4e67
status: experimental
description: Detects LM Studio spawning command shells or script interpreters, a post-exploitation indicator if API access (via CVE-2026-133992 or otherwise) is leveraged for host interaction or chained attacks.
references:
  - http://www.zerodayinitiative.com/advisories/ZDI-26-1119/
  - https://attack.mitre.org/techniques/T1059/
author: Security Arsenal
date: 2026/04/10
tags:
  - attack.execution
  - attack.t1059
logsource:
  category: process_creation
  product: windows
detection:
  selection_parent:
    ParentImage|endswith:
      - '\LM Studio.exe'
      - '\lm-studio.exe'
  selection_child:
    Image|endswith:
      - '\cmd.exe'
      - '\powershell.exe'
      - '\pwsh.exe'
      - '\wscript.exe'
      - '\cscript.exe'
      - '\mshta.exe'
      - '\rundll32.exe'
  condition: selection_parent and selection_child
falsepositives:
  - Rare; LM Studio does not normally spawn shells. Investigate all hits.
level: high

KQL — Microsoft Sentinel / Defender Hunting

This query hunts for remote (non-localhost) connections to LM Studio's API port and for LM Studio processes with command-line flags indicating a non-loopback bind. Run it across both Defender endpoint telemetry and any Syslog/CEF-ingested firewall or Zeek data.

KQL — Microsoft Sentinel / Defender
// Hunt 1: Remote connections to LM Studio API port (Defender endpoint telemetry)
let LMPort = 1234;
DeviceNetworkEvents
| where TimeGenerated > ago(14d)
| where RemotePort == LMPort or LocalPort == LMPort
| where not(RemoteIP startswith "127." or RemoteIP == "::1")
| where InitiatingProcessFileName has_any ("LM Studio", "lm-studio")
    or LocalPort == LMPort
| summarize Connections = count(),
            DistinctSources = dcount(RemoteIP),
            SourceIPs = make_set(RemoteIP, 20),
            FirstSeen = min(TimeGenerated),
            LastSeen = max(TimeGenerated)
  by DeviceName, InitiatingProcessFileName, LocalPort, bin(TimeGenerated, 1h)
| where DistinctSources > 0
| order by LastSeen desc;

// Hunt 2: LM Studio launched with network-exposed bind flags
DeviceProcessEvents
| where TimeGenerated > ago(14d)
| where FileName has_any ("LM Studio", "lm-studio")
| where ProcessCommandLine has_any ("--host 0.0.0.0", "--bind 0.0.0.0", "0.0.0.0:1234", "--cors")
| project TimeGenerated, DeviceName, AccountName, FileName, ProcessCommandLine, SHA256
| order by TimeGenerated desc;

// Hunt 3: Firewall/syslog-ingested traffic to LM Studio port from external segments
CommonSecurityLog
| where TimeGenerated > ago(14d)
| where DestinationPort == 1234
| where not(SourceIP startswith "127.")
| summarize Hits = count(), Sources = make_set(SourceIP, 25), Destinations = make_set(DestinationIP, 25)
  by DeviceAction, bin(TimeGenerated, 1d)
| order by TimeGenerated desc

Velociraptor VQL

Use this artifact to triage endpoints for exposed LM Studio listeners — the single highest-value pre-exploitation hunt for this vulnerability.

VQL — Velociraptor
-- Identify LM Studio processes and their listening sockets.
-- Flag any instance bound to a non-loopback address as exposed to CVE-2026-133992.
SELECT Pid, Name, CommandLine, Exe, Username
FROM pslist()
WHERE Name =~ '(?i)lm.?studio'
   OR Exe =~ '(?i)lm.?studio'

-- Correlate with listening sockets on the LM Studio API port
SELECT Pid, Name, Family, Type, Address, Port, Status
FROM netstat()
WHERE Port = 1234
  AND Status =~ '(?i)listen'
  AND NOT Address =~ '^(127\.|::1|\[::1\])'

Remediation / Exposure Audit Script

Run this on endpoints to identify running LM Studio instances, check their bind posture, and (optionally) enforce a localhost-only stance at the host firewall until the patch is applied.

PowerShell
# CVE-2026-133992 — LM Studio exposure audit and interim hardening
# Run elevated. Audit first with -AuditOnly, then apply firewall block.

param([switch]$AuditOnly)

Write-Host "=== LM Studio Exposure Audit (CVE-2026-133992) ===" -ForegroundColor Cyan

# 1. Locate running LM Studio processes
$lmProcs = Get-Process | Where-Object { $_.ProcessName -match 'lm.?studio' }
if ($lmProcs) {
    $lmProcs | Select-Object Id, ProcessName, Path, StartTime | Format-Table -AutoSize
} else {
    Write-Host "[-] No running LM Studio processes found." -ForegroundColor Green
}

# 2. Check listening sockets on default API port 1234
$listeners = Get-NetTCPConnection -LocalPort 1234 -State Listen -ErrorAction SilentlyContinue
foreach ($l in $listeners) {
    $bind = $l.LocalAddress
    $owner = (Get-Process -Id $l.OwningProcess -ErrorAction SilentlyContinue).ProcessName
    if ($bind -eq '127.0.0.1' -or $bind -eq '::1') {
        Write-Host "[OK]  Port 1234 bound to loopback ($bind) by $owner (PID $($l.OwningProcess))" -ForegroundColor Green
    } else {
        Write-Host "[!!]  EXPOSED: Port 1234 bound to $bind by $owner (PID $($l.OwningProcess)) — reachable from network" -ForegroundColor Red
    }
}

# 3. Check installed LM Studio version (compare against vendor-fixed build)
$lmPath = Get-ChildItem "$env:LOCALAPPDATA\Programs", "$env:ProgramFiles" -Filter 'LM Studio.exe' -Recurse -ErrorAction SilentlyContinue | Select-Object -First 1
if ($lmPath) {
    $ver = (Get-Item $lmPath.FullName).VersionInfo.ProductVersion
    Write-Host "[*] Installed LM Studio version: $ver — verify against the vendor advisory for the fixed build" -ForegroundColor Yellow
}

# 4. Interim hardening: block inbound TCP 1234 at the host firewall until patched
if (-not $AuditOnly) {
    if (-not (Get-NetFirewallRule -DisplayName 'Block LM Studio API (CVE-2026-133992)' -ErrorAction SilentlyContinue)) {
        New-NetFirewallRule -DisplayName 'Block LM Studio API (CVE-2026-133992)' `
            -Direction Inbound -Protocol TCP -LocalPort 1234 -Action Block `
            -Profile Any | Out-Null
        Write-Host "[+] Firewall rule created: inbound TCP 1234 blocked (interim mitigation)" -ForegroundColor Yellow
    } else {
        Write-Host "[*] Interim firewall rule already in place." -ForegroundColor Yellow
    }
}
Bash / Shell
#!/usr/bin/env bash
# CVE-2026-133992 — LM Studio exposure audit for macOS/Linux hosts
set -euo pipefail

echo "=== LM Studio Exposure Audit ==="

# 1. Running LM Studio processes
ps aux | grep -i '[l]m.?studio' || echo "[-] No LM Studio processes found"

# 2. Listening sockets on port 1234 and their bind address
echo "--- Listeners on :1234 ---"
if command -v ss >/dev/null 2>&1; then
    ss -lntp | grep ':1234' || echo "[-] No listener on 1234"
elif command -v lsof >/dev/null 2>&1; then
    lsof -nP -iTCP:1234 -sTCP:LISTEN || echo "[-] No listener on 1234"
fi

# 3. Any non-loopback listener is exposed — flag it
if (ss -lnt 2>/dev/null | grep ':1234' | grep -Ev '127\.0\.0\.1|\[::1\]') || \
   (lsof -nP -iTCP:1234 -sTCP:LISTEN 2>/dev/null | grep -Ev '127\.0\.0\.1|\[::1\]'); then
    echo "[!!] EXPOSED: LM Studio API reachable from the network."
    echo "     Interim mitigation (Linux/nftables):"
    echo "     sudo nft add rule inet filter input tcp dport 1234 ip saddr != 127.0.0.0/8 drop"
    echo "     Interim mitigation (Linux/iptables):"
    echo "     sudo iptables -A INPUT -p tcp --dport 1234 ! -s 127.0.0.1 -j DROP"
fi

Remediation

  1. Patch immediately. Apply the fixed LM Studio build referenced in the ZDI-26-1119 advisory and the vendor's release notes. Because this came through Pwn2Own's coordinated disclosure, a vendor fix should accompany or closely follow the ZDI publication — check LM Studio's official download page and in-app updater rather than third-party mirrors. Verify the installed version after updating (see audit script above).
  2. Bind to loopback. Until patched — and as a permanent posture unless there is a documented business need — ensure the LM Studio server listens on 127.0.0.1 only. In the LM Studio server settings, set the host/bind address to localhost and do not enable "Serve on local network."
  3. Block the port at the edge and host. Add a network-level deny for inbound TCP 1234 at host firewalls and, if your developers run these tools broadly, at internal segmentation boundaries. The PowerShell and Bash scripts above implement this as an interim mitigation.
  4. Inventory your LLM tooling estate. You cannot patch what you don't know about. Query your EDR/software inventory for LM Studio, Ollama (port 11434), text-generation-webui, and similar local inference servers. Treat every instance as an unmanaged service requiring registration, patching, and a firewall posture.
  5. Enforce strong, unique API tokens on any LM Studio instance that must remain network-reachable, and place it behind an authenticating reverse proxy (e.g., with mTLS or SSO) rather than relying on the application's built-in credential check — which is precisely the component this CVE defeats.
  6. Segment AI/ML workstations. Developer and data-science machines running local LLM servers should sit in a VLAN with restricted lateral movement paths. An auth bypass on a workstation with cloud admin tokens cached is an incident, not a nuisance.
  7. Rotate exposed secrets. If your hunt finds evidence of remote access to an LM Studio instance predating the patch, treat chat history and any credentials present in prompts/context as compromised and rotate accordingly.
  8. Monitor for PoC publication. Track the ZDI advisory page and CISA KEV for updates. Pwn2Own bugs move from disclosure to public exploit quickly; your detections above should already be deployed when that happens.

Bottom Line

CVE-2026-133992 is a textbook example of the expanding enterprise attack surface created by local AI tooling: a high-severity, unauthenticated, remotely exploitable flaw in software that most asset inventories don't even track. The defensive play is straightforward — patch, bind to localhost, firewall the port, and inventory your LLM estate — but only if you act before a public PoC does the targeting for the adversary. Deploy the detections above, run the exposure audit this week, and bring local AI infrastructure under the same vulnerability-management discipline as everything else on your network.

Related Resources

Security Arsenal Penetration Testing Services AlertMonitor Platform Book a SOC Assessment vulnerability-management Intel Hub

Is your security operations ready?

Get a free SOC assessment or see how AlertMonitor cuts through alert noise with automated triage.