Skip to content
CriticalVulnerabilityLLM-specific

CVE-2024-4343: privategpt command injection in SagemakerLLM complete() via eval()

Identifier
CVE-2024-4343
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
2.7%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

CVE-2024-4343 is a Python command injection flaw in the `complete()` method of the `SagemakerLLM` class, in `./private_gpt/components/llm/custom/sagemaker.py` of imartinez/privategpt, versions up to and including 0.3.0. The method passes a string returned by a remote AWS SageMaker LLM endpoint to `eval()` to parse it into a dictionary, so an attacker who can manipulate that response can run arbitrary Python code on the host running the application.

Mitigation

Fixed in 0.6.0.