Skip to main content
Vulnerability Database/CVE-2026-107839

CVE-2026-107839: ageLANServer DOS Vulnerability

CVE-2026-107839 is a denial of service flaw in ageLANServer that allows unauthenticated attackers to crash the server through excessive memory allocation. This post explains its impact, affected versions, and mitigation steps.

Published:

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-107839 Overview

CVE-2026-107839 is a resource exhaustion vulnerability [CWE-400] in ageLANServer, a cross-platform web server and launcher used for offline multiplayer in several Age of Empires and Age of Mythology titles. The flaw resides in the Age of Empires III POST /game/cloud/getFileURL handler, which lacks a request body size limit and does not cap the attacker-controlled JSON names array. A remote unauthenticated attacker can submit an oversized request that forces excessive memory allocation, crashing or hanging the server process. All versions prior to 1.15.2 are affected.

Critical Impact

Unauthenticated remote attackers can crash the game server, disconnect active players, and keep the LAN service unavailable until manual restart.

Affected Products

  • ageLANServer versions prior to 1.15.2
  • The bundled Age of Empires III (AoE3) game server component
  • Deployments relying on the default self-registration flow

Discovery Timeline

  • 2026-10-09 - CVE-2026-107839 published to NVD
  • 2026-10-16 - Last updated in NVD database

Technical Details for CVE-2026-107839

Vulnerability Analysis

The vulnerability affects the AoE3 cloud file URL endpoint exposed by ageLANServer. The handler accepts a JSON body containing a names array and allocates response storage based directly on the attacker-supplied array length. Because the HTTP server enforces no body size limit and the handler performs no bounds checking on the array length, a single crafted request can trigger a memory allocation large enough to crash or hang the Go runtime hosting the server.

Successful exploitation terminates the server process, disconnects all active players from the LAN session, and keeps the service unavailable until an operator restarts it. The default self-registration flow allows any network-reachable client to reach the vulnerable endpoint without prior authentication.

Root Cause

The root cause is twofold: the HTTP router did not apply a maximum request body size, and the getFileURL handler trusted the attacker-controlled names array length when sizing response buffers. Both conditions align with [CWE-400] Uncontrolled Resource Consumption.

Attack Vector

An attacker sends a single oversized HTTP POST request to /game/cloud/getFileURL over the network. No authentication, user interaction, or privileges are required. The request body carries either a very large JSON payload or a names array with an inflated element count, forcing the server to allocate memory beyond available capacity.

go
// Patch: server/internal/routes/router/maxBodySizeMiddleware.go
// Introduces a middleware that caps request body size using http.MaxBytesReader.
package router

import "net/http"

func MaxBodySizeMiddleware(maxBytes int64, next http.Handler) http.Handler {
    return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
        r.Body = http.MaxBytesReader(w, r.Body, maxBytes)
        next.ServeHTTP(w, r)
    })
}
// Source: https://github.com/luskaner/ageLANServer/commit/1dd40166a59356865c0a4b1800f32d05dc8bec79
go
// Patch: server/internal/cmd/root.go
// Applies the new middleware with a 1 MB body size limit to the router chain.
            mux = router.NewLoggingMiddleware(mux)
        }
    }
    // 1 MB limit
    mux = router.MaxBodySizeMiddleware(1<<20, mux)
    for addr := range addrs.Iter() {
        var certFile string
        var keyFile string
// Source: https://github.com/luskaner/ageLANServer/commit/1dd40166a59356865c0a4b1800f32d05dc8bec79

Detection Methods for CVE-2026-107839

Indicators of Compromise

  • Unexpected termination or hang of the ageLANServer process coinciding with inbound HTTP traffic to /game/cloud/getFileURL.
  • Sudden mass disconnection of players from a LAN session without a corresponding network outage.
  • Spikes in resident memory consumption of the server process immediately before a crash.

Detection Strategies

  • Inspect reverse-proxy or web access logs for POST requests to /game/cloud/getFileURL with Content-Length values exceeding 1 MB.
  • Alert on JSON payloads to the AoE3 cloud endpoint containing abnormally large names arrays.
  • Correlate server process crashes with inbound requests from unauthenticated or unrecognized source addresses.

Monitoring Recommendations

  • Monitor memory usage of the ageLANServer process and alert on sustained growth outside normal gameplay patterns.
  • Track HTTP request size distributions to the game server and flag outliers.
  • Enable application-level logging on all /game/cloud/* endpoints for post-incident forensics.

How to Mitigate CVE-2026-107839

Immediate Actions Required

  • Upgrade ageLANServer to version 1.15.2 or later, which introduces the 1 MB body size middleware.
  • Restrict exposure of the game server to trusted LAN segments or VPN-reachable clients only.
  • Restart any server instances currently hung or degraded due to suspected exploitation.

Patch Information

The fix is delivered in GitHub Release v1.15.2. The underlying code change is documented in the GitHub Commit Details and the GitHub Security Advisory GHSA-4jfq-pmq9-257h. The patch adds a MaxBodySizeMiddleware that wraps the HTTP router and limits request bodies to 1 MB using http.MaxBytesReader.

Workarounds

  • Place the server behind a reverse proxy (such as nginx or Caddy) configured with a strict client_max_body_size of 1 MB or lower.
  • Disable the default self-registration flow where feasible to limit who can reach the vulnerable endpoint.
  • Apply host-based firewall rules to restrict inbound access to known player IP addresses.
bash
# Example nginx reverse-proxy configuration enforcing a request body cap
server {
    listen 443 ssl;
    server_name agelanserver.local;

    client_max_body_size 1m;

    location / {
        proxy_pass http://127.0.0.1:8080;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
    }
}

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.