Skip to content
CriticalVulnerability

CVE-2024-10834: eosphoros-ai/db-gpt arbitrary file write through RAG-knowledge endpoint

Identifier
CVE-2024-10834
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.6%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

eosphoros-ai/db-gpt version 0.6.0 has a flaw in its RAG-knowledge endpoint that permits arbitrary file write. The endpoint passes a caller-supplied absolute path to `os.path.join`, so setting `doc_file.filename` to an absolute path lets an attacker write files to arbitrary locations on the target server. The source notes this can overwrite system files or create new SSH-key entries.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.