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-85709

CVE-2026-85709: Sensitive Information Exposure in LightRAG API Server

Amit Schendel
Amit Schendel
Senior Security Researcher

Sep 23, 2026·6 min read·21 visits

Executive Summary (TL;DR)

Improper error handling in LightRAG's FastAPI server prior to version 1.5.5 permits unauthenticated network clients to leak highly sensitive infrastructure details, including absolute filesystem paths and database host parameters, by triggering raw exception traces.

CVE-2026-85709 is a sensitive information exposure vulnerability in HKUDS LightRAG prior to version 1.5.5. The vulnerability allows remote, unauthenticated clients to trigger server-side errors and receive raw Python exception details, including local filesystem paths, database connection strings, credentials, and internal system configurations.

Vulnerability Overview

LightRAG is an open-source retrieval-augmented generation framework designed to integrate knowledge graphs and large language models for advanced information retrieval tasks. The framework exposes a FastAPI-based server component to facilitate document ingestion, graph generation, querying, and backend model configuration. By default, this API server operates without an active authentication mechanism, permitting any network client to interact with the endpoints.

Prior to version 1.5.5, the application suffered from systemic improper exception handling across its core API routes. Under normal operations, failures in network connectivity, malformed inputs, or missing files would trigger backend Python exceptions. Instead of sanitizing these failures, the API routers returned the raw exceptions directly to the clients. This architecture creates a substantial information exposure surface.

The vulnerability is tracked as CVE-2026-85709 and GHSA-hrmj-7rvj-4hg8, matching the CWE-209 classification (Generation of Error Message Containing Sensitive Information). The absolute exposure of traceback structures and connection variables lowers the technical barrier for attackers mapping the host environment, targeting database servers, or constructing secondary exploitation chains.

Root Cause Analysis

The root cause of CVE-2026-85709 is the widespread implementation of generic catch-all try-except structures that directly reflect system error states to HTTP responses. Specifically, across approximately 31 endpoints in modules such as document_routes.py, graph_routes.py, and query_routes.py, the developers utilized a standardized error handling pattern. This pattern caught all exceptions using except Exception as e and threw a FastAPI HTTPException with detail=str(e).

When Python serializes exceptions to string formats, the resulting string typically includes context-specific details. In the context of database drivers (such as PostgreSQL's asyncpg, MongoDB's pymongo, or Neo4j drivers), an exception caused by a failed connection, timeout, or authentication failure frequently contains sensitive configuration parameters. This metadata can include backend hostname values, internal port numbers, username strings, and database schemas.

Because the endpoints do not perform pre-execution validation or sanitize outbound error details, any backend failure exposes the internal running context. The lack of standard exception translation layers allowed operational driver failures to bypass administrative visibility and propagate raw diagnostic records directly to untrusted web clients.

Code Analysis and Patch Review

The vulnerability was distributed across multiple router files. The following example demonstrates the pre-patch vulnerability structure within the document uploading route:

# Pre-patch vulnerable pattern in lightrag/api/routers/document_routes.py
@router.post("/documents/upload")
async def upload_document(file: UploadFile = File(...)):
    try:
        # Ingestion logic executed here
        await process_document_ingestion(file)
    except Exception as e:
        logger.error(f"Error /documents/upload: {file.filename}: {str(e)}")
        logger.error(traceback.format_exc())
        # VULNERABLE: Stringified exception 'str(e)' is returned to client
        raise HTTPException(status_code=500, detail=str(e))

In version 1.5.5, the maintainers implemented a two-tier remediation strategy. The primary defense introduces a centralized sanitization helper function within lightrag/api/utils_api.py. This helper captures the exception, logs the details securely on the server, generates a randomized 12-character hexadecimal correlation ID, and returns a generic client-safe HTTP response.

# Defensive mitigation helper in lightrag/api/utils_api.py
import uuid
from fastapi import HTTPException
 
_INTERNAL_SERVER_ERROR_MESSAGE = "Internal server error"
 
def internal_server_error(exc: Exception) -> HTTPException:
    # Generate a unique correlation ID for server-side log auditing
    error_id = uuid.uuid4().hex[:12]
    logger.error(
        f"Returning HTTP 500 to client [error_id={error_id}] ({type(exc).__name__})"
    )
    # Return generic error details and ID, completely hiding the exception string
    return HTTPException(
        status_code=500,
        detail=f"{_INTERNAL_SERVER_ERROR_MESSAGE} (error_id: {error_id})",
    )

All endpoint modules were refactored to replace raise HTTPException(status_code=500, detail=str(e)) with raise internal_server_error(e). To ensure complete defensive coverage, a last-resort global exception handler was registered within lightrag_server.py. This handler intercepts any uncaught runtime exceptions that escape standard router handlers, preventing the underlying ASGI server from disclosing unhandled stack trace frames.

Exploitation Methodology and Vector Analysis

Exploitation of CVE-2026-85709 is straightforward because it does not require authentication or complex state preparation. The attacker's objective is to systematically induce server-side exceptions and parse the reflected response structures.

Common exploitation vectors include:

  1. Sending malformed JSON structures to endpoints with rigid schema validators.
  2. Uploading corrupted document formats to /documents/upload to trigger file-parsing or driver-level insertion failures.
  3. Initiating high volumes of concurrent requests to exhaust backend database connections, triggering connection pool exhaustion tracebacks.

When a connection or operational error is successfully induced, the unpatched server returns an HTTP 500 response containing detailed traceback metadata. From this metadata, the attacker can extract local path definitions (e.g., /opt/lightrag/workspace/config.json), active database parameters, and internal Python library versions. These details are used to perform targeted external host profiling.

Impact Assessment

The overall severity of CVE-2026-85709 is classified as Medium, represented by a CVSS v3.1 score of 5.3 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N). The impact vector is limited to confidentiality. The vulnerability does not directly allow write access, system manipulation, or service disruption, which leaves the integrity and availability scores at none.

Despite the lack of direct control-flow hijacking, the exposure of internal execution parameters is a significant security risk. Retrieval-augmented generation platforms handle sensitive corporate data and interface directly with key internal datastores. Disclosing absolute directory paths and internal database credentials significantly assists attackers in targeting localized path traversal vulnerabilities or seeking lateral movement opportunities.

Furthermore, the disclosure of internal network topologies, system usernames, and configuration layouts provides the exact parameters required for offline credential brute-forcing and network scanning. This risk is amplified if the database driver prints raw authorization tokens or unredacted connection strings.

Remediation and Defensive Guidance

The primary remediation strategy is upgrading the LightRAG package to version 1.5.5 or later. This release enforces the sanitized generic exception structures globally and establishes the internal_server_error translation framework across all API modules.

For systems where immediate upgrades are not possible, administrators should apply the following secondary workarounds:

  1. Restrict access to the API port (default 9621) using host-based firewalls, network security groups, or a reverse proxy. Limit API communication strictly to authorized internal hosts.
  2. Enforce the LIGHTRAG_API_KEY environment variable configuration to block unauthenticated access across the entire API router structure.
  3. Configure web application firewall (WAF) rule sets to detect and block outgoing HTTP responses containing standard Python tracebacks, exception identifiers, and server configuration structures.

Fix Analysis (2)

Technical Appendix

CVSS Score
5.3/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected Systems

HKUDS LightRAG

Affected Versions Detail

Product
Affected Versions
Fixed Version
LightRAG
HKUDS
< 1.5.51.5.5
AttributeDetail
CWE IDCWE-209
Attack VectorNetwork (AV:N)
CVSS v3.1 Score5.3 (Medium)
Exploit StatusNo Public Exploits
ImpactPartial Confidentiality Leak
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1005Data from Local System
Collection
CWE-209
Generation of Error Message Containing Sensitive Information

The product generates an error message that includes sensitive information about its environment, users, or associated data.

Vulnerability Timeline

Defensive patches written to resolve sensitive information leakage
2026-07-18
Vulnerability cataloged by GitHub Security Advisories and NVD
2026-09-22
Release of LightRAG version 1.5.5 containing the patch
2026-09-22

References & Sources

  • [1]GitHub Security Advisory GHSA-hrmj-7rvj-4hg8
  • [2]LightRAG Pull Request #3422
  • [3]LightRAG Release v1.5.5
  • [4]Fix Commit: Centralized Sanitization Helper
  • [5]Fix Commit: Chunking 422 Sanitization
  • [6]NVD CVE-2026-85709 Detail

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

•10 minutes ago•CVE-2026-46429
5.5

CVE-2026-46429: Unrestricted File Upload and Validation Bypass in GeoNode

GeoNode versions prior to 5.0.3 contain an unrestricted file upload vulnerability (CWE-434) within the document and dataset ingestion architecture. Authenticated low-privileged users can bypass upload validation via direct REST API interactions, file extension masquerading, metadata mutation via PATCH requests, or malicious archive submissions. This allows attackers to store and serve dangerous file types, alter on-disk file references, or trigger path traversal and resource exhaustion during archive extraction.

Amit Schendel
Amit Schendel
1 views•10 min read
•about 1 hour ago•CVE-2026-55649
6.3

CVE-2026-55649: Stored Cross-Site Scripting in GeoNode Document Metadata Abstract Field

CVE-2026-55649 is a stored Cross-Site Scripting (XSS) vulnerability in GeoNode versions prior to 5.0.3. The flaw exists because document abstract metadata fields are ingested via the metadata management pipeline and stored in the backend database without HTML sanitization or input neutralization. An authenticated attacker with privileges to create or edit document metadata can inject arbitrary HTML and JavaScript payloads into these fields. When another user, such as an administrator, views the affected document page or catalog listing, the unencoded payload is rendered into the Document Object Model (DOM) and executes within the victim's browser session.

Amit Schendel
Amit Schendel
4 views•9 min read
•about 2 hours 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
3 views•11 min read
•about 3 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 4 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 5 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