CVE-2024-5751CWE-94

Remote Code Execution in BerriAI/litellm

Critical · published June 27, 2024

CVSS v3.0
9.8
EPSS
1%
Percentile
58.8
In the wild
Unconfirmed
What it is

🚨 In BerriAI's litellm version v1.35.8, a single malicious payload sent to the `/config/update` endpoint can lead to remote code execution! 🔥 Think of it like a delivery service where you can send a perfectly wrapped box filled with anything you want, and once it gets inside, the evidence is immediately accepted without a second look. It's like a sneaky package that brings chaos into your home! This vulnerability could allow attackers to execute any code on your server, giving them the ability to read sensitive data, alter configurations, or even take complete control of the environment. The potential fallout is absolutely devastating, exposing your system to unauthorized access and manipulation.

Put simply

Think of it like a delivery service where you can send a perfectly wrapped box filled with anything you want, and once it gets inside, the evidence is immediately accepted without a second look. It's like a sneaky package that brings chaos into your home! The flaw exists in the `add_deployment` function, which decodes and decrypts environment variables from base64 without validating their content. An attacker can exploit this by sending crafted data, which gets executed by the server when triggered by the `get_secret` function.

What to do

This vulnerability could allow attackers to execute any code on your server, giving them the ability to read sensitive data, alter configurations, or even take complete control of the environment. The potential fallout is absolutely devastating, exposing your system to unauthorized access and manipulation. Immediately patch to version 1.35.9 or higher to close this vulnerability. Review and restrict the payloads sent to the `/config/update` endpoint, ensuring proper validation processes are in place to prevent malicious submissions. Consider employing additional security measures such as input sanitization and strict access controls. You've got this! Just follow these steps and you'll have your defenses fortified in no time! 🛡️

The record
Technical detail
CVSS v3.0
9.8 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00882 · 58.8th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2024-06-27T18:40Z
EPSS history
Timeline
  • 27 JUN 18:40Z
    Remote Code Execution in BerriAI/litellm
    cvelistv5