Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-105792 Overview
CVE-2026-105792 is a denial-of-service vulnerability in Microsoft UFO, an open-source framework for intelligent automation across devices and platforms. Versions prior to 3.0.9 contain a reentrancy flaw in the SessionManager component. The /api/task_result/{task_name} endpoint calls SessionManager.get_result_by_task() in ufo/server/services/session_manager.py, which acquires a non-reentrant lock and then calls SessionManager.get_result() that attempts to acquire the same lock. An authenticated caller supplying a mapped task name triggers an indefinite block. The flaw is tracked as a deadlock condition [CWE-833] and is fixed in version 3.0.9.
Critical Impact
In the default single-process server configuration, the blocked event-loop thread halts other HTTP, WebSocket, and background interactions, taking the server offline for all users.
Affected Products
- Microsoft UFO versions prior to 3.0.9
- Deployments running the default single-process server configuration
- Any authenticated multi-tenant UFO server exposing /api/task_result/{task_name}
Discovery Timeline
- 2026-10-06 - CVE-2026-105792 published to the National Vulnerability Database
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-105792
Vulnerability Analysis
The vulnerability resides in ufo/server/services/session_manager.py. The get_result_by_task() method acquires self.lock, resolves a task name to a session identifier through session_id_dict, and then invokes get_result(session_id). The nested method attempts to acquire the same lock a second time. Because the lock is non-reentrant, the second acquisition blocks indefinitely while the first acquisition still holds it. The calling thread never releases either reference, producing a permanent deadlock on the request path.
UFO ships with a single-process server by default. The deadlocked request pins the asyncio event-loop thread, preventing it from servicing other coroutines. All subsequent HTTP requests, WebSocket messages, and dependent background jobs stall. A single authenticated request is sufficient to render the server unresponsive until it is restarted.
Root Cause
The root cause is improper use of a non-reentrant synchronization primitive within a code path that recursively re-enters the critical section [CWE-833]. The developer assumed get_result() could be called from an already-locked context, but the lock implementation does not support reentrant acquisition.
Attack Vector
Exploitation requires network access to the UFO API and valid authentication credentials. The attacker must know or create a task name that maps to an active session in session_id_dict. Requests referencing unknown task names return early and do not reach the nested call. Once a mapped task name is submitted to /api/task_result/{task_name}, the server deadlocks and stops processing new work.
# Patch applied in ufo/server/services/session_manager.py (v3.0.9)
"""
with self.lock:
session_id = self.session_id_dict.get(task_name)
- if session_id:
- return self.get_result(session_id)
+ if session_id and session_id in self.sessions:
+ return self.sessions[session_id].results
+ return None
def set_results(self, session_id: str):
"""
# Source: https://github.com/microsoft/UFO/commit/0eeb792333ce76c856bc1c8b05fd65fc26bd3c50
The fix removes the recursive call to get_result() and reads session results directly from self.sessions while the lock is already held. This eliminates the second acquisition attempt and the resulting deadlock.
Detection Methods for CVE-2026-105792
Indicators of Compromise
- Repeated or long-running GET or POST requests against /api/task_result/{task_name} from a single authenticated principal.
- UFO server processes that stop responding to new HTTP or WebSocket connections while still running.
- Thread dumps or Python traces showing threads blocked inside SessionManager.get_result_by_task waiting on self.lock.
Detection Strategies
- Instrument the UFO server with request-duration metrics and alert when /api/task_result/ requests exceed expected service times.
- Correlate authentication logs with API access logs to identify a single account issuing task-result requests that precede a service outage.
- Compare the deployed ufo/server/services/session_manager.py against the v3.0.9 reference to confirm the patched implementation is in place.
Monitoring Recommendations
- Monitor process liveness and asyncio event-loop responsiveness through synthetic health checks rather than TCP-only probes.
- Capture per-endpoint latency percentiles and raise alerts when p99 latency on /api/task_result/{task_name} diverges from baseline.
- Record and retain Python stack traces on hung workers to accelerate root-cause triage.
How to Mitigate CVE-2026-105792
Immediate Actions Required
- Upgrade all UFO deployments to version 3.0.9 or later without delay.
- Audit API credentials and rotate any tokens shared across untrusted users while remediation is pending.
- Place rate limits on /api/task_result/{task_name} to constrain repeated authenticated calls.
Patch Information
The fix is included in UFO v3.0.9. See the GitHub Release v3.0.9, the GitHub Commit Details, and the GitHub Security Advisory GHSA-3hwr-qx8m-9xxx. The patch replaces the recursive get_result() call with a direct dictionary read inside the existing lock scope.
Workarounds
- Restrict network reachability to the UFO API so only trusted automation clients can authenticate.
- Run UFO behind a reverse proxy that enforces per-user rate limits and request-timeout ceilings on /api/task_result/ paths.
- Deploy process supervisors that automatically restart hung UFO server instances pending the version upgrade.
# Upgrade to the patched release
pip install --upgrade "ufo-agent>=3.0.9"
# Verify installed version
python -c "import ufo; print(ufo.__version__)"
# Example nginx reverse-proxy limits for the vulnerable endpoint
# limit_req_zone $binary_remote_addr zone=ufo_task:10m rate=5r/s;
# location /api/task_result/ {
# limit_req zone=ufo_task burst=10 nodelay;
# proxy_read_timeout 10s;
# proxy_pass http://ufo_backend;
# }
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

