/

CVE-2026-92704

Severity:

HIGH RISK

(8.3)

Missing Authentication (CWE-306) in SharpEmu Debugger

CVE-2026-92704

Received

Vulnerability type

Category:

Unauthenticated Local API and Cross-Site Request Forgery

CWE:

CWE-306, CWE-346, CWE-350, CWE-352, CWE-749

Impact:

Unauthorized Local Operations and Potential Code Execution

Severity:

HIGH RISK

(8.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

SharpEmu's repository-provided debugger frontend exposes an unauthenticated HTTP API on the local loopback interface, and its request handling does not consistently guard against cross-origin requests. A malicious page that can reach the listener may invoke debugger operations, launch an existing file under the victim's privileges, or use the frontend to connect to network services.

SharpEmu's repository-provided debugger frontend exposes an unauthenticated HTTP API on the local loopback interface, and its request handling does not consistently guard against cross-origin requests. A malicious page that can reach the listener may invoke debugger operations, launch an existing file under the victim's privileges, or use the frontend to connect to network services.

Affected context

The issue affects the debugger frontend tooling in SharpEmu versions 0.0.3-release.3 and earlier while that tooling is running. It is repository-provided and is not included in the release archives. The frontend listens on 127.0.0.1:8765, and the risk depends on a browser or other client being able to reach that listener. Chromium may require Local Network Access permission for pages served from public origins, but local-origin pages and other delivery paths may not be subject to the same restriction.

The issue affects the debugger frontend tooling in SharpEmu versions 0.0.3-release.3 and earlier while that tooling is running. It is repository-provided and is not included in the release archives. The frontend listens on 127.0.0.1:8765, and the risk depends on a browser or other client being able to reach that listener. Chromium may require Local Network Access permission for pages served from public origins, but local-origin pages and other delivery paths may not be subject to the same restriction.

Exploit preconditions

  • Attack surface: The debugger frontend's HTTP API on the victim's loopback interface.
  • Required access: The frontend must be running; the attacker needs a way to cause a client on the victim's host to send requests to it.
  • Trigger point: Requests to endpoints such as /api/launch, /api/command, or /api/connect.
  • Additional conditions: Launching a file requires an attacker-selected path to an existing file; on POSIX systems, that file must also be executable. The endpoint additionally requires an existing ebootPath.
  • Why exploitation is possible: The API lacks authentication and CSRF protection, does not validate relevant request headers, and accepts JSON with browser-simple content types.
  • Attack surface: The debugger frontend's HTTP API on the victim's loopback interface.
  • Required access: The frontend must be running; the attacker needs a way to cause a client on the victim's host to send requests to it.
  • Trigger point: Requests to endpoints such as /api/launch, /api/command, or /api/connect.
  • Additional conditions: Launching a file requires an attacker-selected path to an existing file; on POSIX systems, that file must also be executable. The endpoint additionally requires an existing ebootPath.
  • Why exploitation is possible: The API lacks authentication and CSRF protection, does not validate relevant request headers, and accepts JSON with browser-simple content types.

Why this happens

The frontend treats requests to a loopback-bound API as trusted without authenticating callers or reliably establishing that requests originated from an authorized client. Missing authentication maps to CWE-306; insufficient origin and request-source validation relates to CWE-346 and CWE-350; accepting cross-site requests without an effective CSRF defense relates to CWE-352. The API also exposes sensitive debugger and network operations, which relates to CWE-749. These patterns allow a browser or other reachable client to invoke privileged functionality without adequate checks.

The frontend treats requests to a loopback-bound API as trusted without authenticating callers or reliably establishing that requests originated from an authorized client. Missing authentication maps to CWE-306; insufficient origin and request-source validation relates to CWE-346 and CWE-350; accepting cross-site requests without an effective CSRF defense relates to CWE-352. The API also exposes sensitive debugger and network operations, which relates to CWE-749. These patterns allow a browser or other reachable client to invoke privileged functionality without adequate checks.

Potential impact

  • An attacker could launch an existing executable with the victim's privileges, subject to the endpoint's file and platform requirements.
  • An attacker could alter memory or registers in an attached emulated process, or control its execution.
  • The frontend could be used to initiate outbound connections to network services accessible from the victim's host.
  • DNS rebinding could allow an attacker to read API responses interactively in some circumstances.
  • An attacker could launch an existing executable with the victim's privileges, subject to the endpoint's file and platform requirements.
  • An attacker could alter memory or registers in an attached emulated process, or control its execution.
  • The frontend could be used to initiate outbound connections to network services accessible from the victim's host.
  • DNS rebinding could allow an attacker to read API responses interactively in some circumstances.

General mitigation guidance

Defensive approaches typically combine caller authentication with strict request-origin controls:

  • Require authentication or a per-session capability token for sensitive API operations.
  • Validate the Host and browser-origin signals, and reject cross-site requests where appropriate.
  • Require an appropriate content type and enforce strict request schemas.
  • Minimize exposed operations and require explicit authorization for process launch, debugger control, and outbound connections.
  • Bind the service only where needed, limit its lifetime, and apply least privilege to the frontend process.
  • Treat browser-accessible local services as untrusted interfaces rather than relying on loopback binding as an access-control mechanism.

Defensive approaches typically combine caller authentication with strict request-origin controls:

  • Require authentication or a per-session capability token for sensitive API operations.
  • Validate the Host and browser-origin signals, and reject cross-site requests where appropriate.
  • Require an appropriate content type and enforce strict request schemas.
  • Minimize exposed operations and require explicit authorization for process launch, debugger control, and outbound connections.
  • Bind the service only where needed, limit its lifetime, and apply least privilege to the frontend process.
  • Treat browser-accessible local services as untrusted interfaces rather than relying on loopback binding as an access-control mechanism.

How teams detect issues like this

  • Review local HTTP services for sensitive routes without authentication, authorization, or CSRF defenses.
  • Use static analysis and code review to identify handlers that omit Origin, Referer, Sec-Fetch-Site, or Host checks, and parsers that accept browser-simple content types for JSON endpoints.
  • Inspect API routes for process-launch, memory-write, register-change, and outbound-connection capabilities, and verify that each has narrowly scoped authorization.
  • Apply policy checks in CI to flag unauthenticated loopback APIs and security-sensitive operations exposed to browsers. Automated code review tools may help identify these patterns.
  • Review local HTTP services for sensitive routes without authentication, authorization, or CSRF defenses.
  • Use static analysis and code review to identify handlers that omit Origin, Referer, Sec-Fetch-Site, or Host checks, and parsers that accept browser-simple content types for JSON endpoints.
  • Inspect API routes for process-launch, memory-write, register-change, and outbound-connection capabilities, and verify that each has narrowly scoped authorization.
  • Apply policy checks in CI to flag unauthenticated loopback APIs and security-sensitive operations exposed to browsers. Automated code review tools may help identify these patterns.

Sources

SourceLink
github.comgithub.com/sharpemu/sharpemu/commit/3831f3c407c547a5e58f353649b2c556d785c463
github.comgithub.com/sharpemu/sharpemu/pull/858
github.comgithub.com/sharpemu/sharpemu/releases/tag/v0.0.3-release.3-patch.1
github.comgithub.com/sharpemu/sharpemu/security/advisories/GHSA-fr3v-rvqp-8fx3

Frequently asked

questions

It is not a directly exposed internet service: the frontend listens on loopback. However, a page or other client that can reach the listener may be able to send requests, depending on browser protections and the delivery path.

The frontend must be running, and the attacker must be able to cause a client on the victim's host to reach its API. Launching a file also requires the specified file to exist, with executable permissions required on POSIX systems.

Authenticate and authorize sensitive API requests, enforce robust origin and request-source checks, and restrict access to high-impact operations.

Treat local HTTP endpoints as potentially reachable by untrusted web content. Minimize exposed functionality, require explicit authorization, validate request types and origins, and include browser-accessible local services in security reviews.

It is not a directly exposed internet service: the frontend listens on loopback. However, a page or other client that can reach the listener may be able to send requests, depending on browser protections and the delivery path.

The frontend must be running, and the attacker must be able to cause a client on the victim's host to reach its API. Launching a file also requires the specified file to exist, with executable permissions required on POSIX systems.

Authenticate and authorize sensitive API requests, enforce robust origin and request-source checks, and restrict access to high-impact operations.

Treat local HTTP endpoints as potentially reachable by untrusted web content. Minimize exposed functionality, require explicit authorization, validate request types and origins, and include browser-accessible local services in security reviews.

Find out what's already
exploitable in your codebase.