# CVE-2026-59819: BerriAI LiteLLM local file read in health test_connection endpoint

Source: https://junglewise.ai/threats/cve-2026-59819-berriai-litellm-local-file-read-in-health-test-connection  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-08. Updated: 2026-07-22  
License: CC BY 4.0 with a link back

CVE-2026-59819 · Severity: medium · CVSS 4 · Published 2026-07-08

LiteLLM is a proxy server used to connect various AI models to applications. A security flaw in its connection testing tool allows an administrator to read sensitive files from the server's local storage. While this requires administrative access, it could allow a malicious insider or a compromised admin account to access configuration data or other system files.

Technologies: [Berriai LiteLLM](https://junglewise.ai/threats/technologies/litellm), [litellm (PyPI)](https://junglewise.ai/threats/technologies/pypi-litellm). Vendors: [Berriai](https://junglewise.ai/threats/vendors/berriai), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-59819 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-59819 being exploited in the wild.

**How severe is CVE-2026-59819?** Medium severity, with a CVSS score of 4, published 8 July 2026.

**Which products and versions are affected?** Berriai LiteLLM < 1.83.10-stable; litellm (PyPI) ECOSYSTEM:introduced=0,fixed=1.83.10.

**Is there a fix for CVE-2026-59819?** Yes. litellm (PyPI): upgrade to 1.83.10 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-59819 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-59819?** Check whether you run Berriai LiteLLM or litellm (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- litellm (PyPI): upgrade to 1.83.10 or later

  ```sh
  pip install "litellm>=1.83.10"
  ```


## Technical details

A local file inclusion (LFI) vulnerability exists in LiteLLM's `/health/test_connection` endpoint due to improper validation of the `litellm_params` parameter. The endpoint resolves request-supplied OIDC file references (using the `oidc/file/` prefix), allowing an attacker to specify arbitrary local file paths. Exploitation requires high privileges (proxy administrator) and network access to the management endpoint. Successful exploitation allows the reading of local files, potentially exposing sensitive environment variables or system secrets. The issue is addressed in version 1.83.10-stable by improving how file references are resolved.

## Affected products

- BerriAI LiteLLM < 1.83.10-stable

## Identifiers

- CVE-2026-59819
- GHSA-4g5m-c9r5-49xf
- PYSEC-2026-3476

## Timeline

- 2026-06-30: disclosed: Initial report to vendor
- 2026-07-08: advisory: NVD publication
- 2026-07-22: patched: GitHub Advisory published and fix confirmed in 1.83.10-stable

## References

- [https://github.com/BerriAI/litellm/security/advisories/GHSA-4g5m-c9r5-49xf](https://github.com/BerriAI/litellm/security/advisories/GHSA-4g5m-c9r5-49xf)
- [https://github.com/BerriAI/litellm/pull/25592](https://github.com/BerriAI/litellm/pull/25592)
- [https://github.com/BerriAI/litellm/releases/tag/v1.83.10-stable](https://github.com/BerriAI/litellm/releases/tag/v1.83.10-stable)
- [https://api.github.com/repos/BerriAI/litellm/security-advisories/GHSA-4g5m-c9r5-49xf](https://api.github.com/repos/BerriAI/litellm/security-advisories/GHSA-4g5m-c9r5-49xf)

## Related threats

- [LiteLLM arbitrary local file read via vertex_ai_credentials](https://junglewise.ai/threats/litellm-internal-user-viewer-arbitrary-local-file-read-via-vertex-ai-649a7475)
- [LiteLLM reflected XSS in SSO debug callback endpoint](https://junglewise.ai/threats/litellm-vulnerable-to-reflected-xss-in-sso-debug-callback-38154651)
- [LiteLLM proxy authentication bypass via reused crypto context](https://junglewise.ai/threats/cve-2026-114612-litellm-is-a-proxy-server-ai-gateway-to-call-llm-apis-in-openai)
- [BerriAI LiteLLM improper authorization in secret resolution](https://junglewise.ai/threats/cve-2026-108575-a-vulnerability-has-been-found-in-berriai-litellm-up-to-1-94-0)
- [BerriAI LiteLLM authorization bypass in spend tracking](https://junglewise.ai/threats/cve-2026-108574-a-flaw-has-been-found-in-berriai-litellm-up-to-1-95-0-affected)
