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-112157 Overview
CVE-2026-112157 affects MemTensor memmy-agent versions up to 1.0.9, 1.1.1, and 1.2.2. The flaw resides in the requireAdminWrite function within Memory/src/server/http.ts of the Memory Service component. The weakness enables resource consumption through the unauthenticated POST /api/v1/admin/shutdown endpoint when no token is configured. Attackers can trigger this condition remotely, though exploitation requires high complexity and user interaction. The classification maps to [CWE-400] Uncontrolled Resource Consumption. A public exploit exists, but the vendor describes it as partially overstated because the endpoint is designed for local use and later received cross-origin fixes.
Critical Impact
Unauthenticated callers can reach a shutdown endpoint that terminates the Memory Service, producing a denial-of-service condition dependent on browser behavior.
Affected Products
- MemTensor memmy-agent up to version 1.0.9
- MemTensor memmy-agent up to version 1.1.1
- MemTensor memmy-agent up to version 1.2.2
Discovery Timeline
- 2026-10-19 - CVE-2026-112157 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-112157
Vulnerability Analysis
The memmy-agent Memory Service exposes an administrative HTTP interface. The requireAdminWrite guard in Memory/src/server/http.ts should enforce authentication for privileged routes, including POST /api/v1/admin/shutdown. When operators deploy the service without configuring an admin token, the guard accepts unauthenticated requests. Any network-reachable caller can issue the shutdown command and terminate the running Memory Service process. Repeated requests after restart compound the resource exhaustion effect, degrading availability for downstream agents that depend on memory retrieval.
Root Cause
The root cause is missing enforcement in requireAdminWrite when no admin credential is set. The function fails open rather than refusing privileged operations, violating secure-by-default expectations for an administrative endpoint. The design assumption that the service runs only on localhost is not validated at the network layer.
Attack Vector
Exploitation occurs over the network and requires user interaction, consistent with a browser-triggered cross-origin request against a locally bound service. An attacker hosts a page that issues a POST to http://<target>/api/v1/admin/shutdown. If the victim visits that page and the deployment has no admin token, the Memory Service shuts down. The attack complexity is high because success depends on specific browser behavior, CORS handling, and the absence of a configured token. For technical specifics, see the GitHub Memmy Agent Issue #468 and the VulDB CVE-2026-112157 record.
Detection Methods for CVE-2026-112157
Indicators of Compromise
- Unexpected POST requests to /api/v1/admin/shutdown in Memory Service access logs, especially from Origin or Referer headers tied to untrusted domains.
- Memory Service process terminations that correlate with inbound HTTP requests rather than operator action.
- Repeated service restarts followed immediately by another shutdown request from the same client.
Detection Strategies
- Monitor HTTP access logs for any request path matching /api/v1/admin/* originating from non-loopback source addresses.
- Alert on process exit events for memmy-agent where the parent cause is an HTTP request rather than a signal from a known orchestrator.
- Baseline normal administrative API traffic and flag deviations in method, path, or source.
Monitoring Recommendations
- Forward Memory Service logs and host process telemetry to a centralized analytics pipeline for correlation.
- Track service uptime metrics and alert on short-lived process lifetimes indicative of repeated shutdown abuse.
- Capture network flow data for ports bound by memmy-agent to identify unexpected external connectivity.
How to Mitigate CVE-2026-112157
Immediate Actions Required
- Configure an admin token for memmy-agent so that requireAdminWrite enforces authentication on all privileged routes.
- Bind the Memory Service to the loopback interface 127.0.0.1 rather than 0.0.0.0 when remote access is not required.
- Restrict inbound access to the Memory Service port using host firewalls or network policy to trusted administrative sources only.
- Review the GitHub Memmy Agent Repository for the latest release and apply updates that include the cross-origin fixes referenced in the advisory.
Patch Information
MemTensor has issued fixes addressing cross-origin behavior for the administrative endpoints in memmy-agent. Operators running 1.0.9, 1.1.1, or 1.2.2 should upgrade to a release that includes these fixes and verify an admin token is configured. Track remediation progress through GitHub Memmy Agent Issue #468.
Workarounds
- Place memmy-agent behind a reverse proxy that enforces authentication and rejects cross-origin requests to /api/v1/admin/*.
- Add explicit Origin header validation at a proxy layer to block browser-triggered shutdown attempts from untrusted sites.
- Disable the shutdown endpoint at the proxy where operational workflows do not require remote shutdown control.
# Configuration example
# Restrict memmy-agent administrative access via host firewall (Linux)
iptables -A INPUT -p tcp --dport 8080 -s 127.0.0.1 -j ACCEPT
iptables -A INPUT -p tcp --dport 8080 -j DROP
# Example nginx snippet to block cross-origin admin calls
# location /api/v1/admin/ {
# if ($http_origin !~* "^https?://(localhost|127\.0\.0\.1)") { return 403; }
# proxy_pass http://127.0.0.1:8080;
# }
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

