{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-4889","assignerOrgId":"c09c270a-b464-47c1-9133-acb35b22c19a","state":"PUBLISHED","assignerShortName":"@huntr_ai","dateReserved":"2024-05-14T22:33:16.479Z","datePublished":"2024-06-06T17:53:35.202Z","dateUpdated":"2024-08-01T20:55:10.313Z"},"containers":{"cna":{"title":"Code Injection in berriai/litellm","providerMetadata":{"orgId":"c09c270a-b464-47c1-9133-acb35b22c19a","shortName":"@huntr_ai","dateUpdated":"2024-06-06T17:53:35.202Z"},"descriptions":[{"lang":"en","value":"A code injection vulnerability exists in the berriai/litellm application, version 1.34.6, due to the use of unvalidated input in the eval function within the secret management system. This vulnerability requires a valid Google KMS configuration file to be exploitable. Specifically, by setting the `UI_LOGO_PATH` variable to a remote server address in the `get_image` function, an attacker can write a malicious Google KMS configuration file to the `cached_logo.jpg` file. This file can then be used to execute arbitrary code by assigning malicious code to the `SAVE_CONFIG_TO_DB` environment variable, leading to full system control. The vulnerability is contingent upon the use of the Google KMS feature."}],"affected":[{"vendor":"berriai","product":"berriai/litellm","versions":[{"version":"unspecified","status":"affected","versionType":"custom","lessThanOrEqual":"latest"}]}],"references":[{"url":"https://huntr.com/bounties/be3fda72-a65b-4993-9a0e-7e0f05db51f8"}],"metrics":[{"cvssV3_0":{"version":"3.0","attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","baseScore":7.2,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"type":"CWE","lang":"en","description":"CWE-94 Improper Control of Generation of Code","cweId":"CWE-94"}]}],"source":{"advisory":"be3fda72-a65b-4993-9a0e-7e0f05db51f8","discovery":"EXTERNAL"}},"adp":[{"affected":[{"vendor":"berriai","product":"litellm","cpes":["cpe:2.3:a:berriai:litellm:1.34.6:*:*:*:*:*:*:*"],"defaultStatus":"unknown","versions":[{"version":"1.34.6","status":"affected"}]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-06-12T20:34:08.026659Z","id":"CVE-2024-4889","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2024-06-12T20:34:14.108Z"}},{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-01T20:55:10.313Z"},"title":"CVE Program Container","references":[{"url":"https://huntr.com/bounties/be3fda72-a65b-4993-9a0e-7e0f05db51f8","tags":["x_transferred"]}]}]}}