Skip to content
Xianzhi Community (Aliyun)·Indexed by this site · Originally published· Event →· Its place in the scan record →

Analysis of the CVE-2025-3248 Langflow unauthenticated code execution vulnerability and exploit chain construction

AI summary

The authors reproduced and analyzed the Langflow unauthenticated code execution vulnerability CVE-2025-3248 (affecting versions before 1.3.0): the /api/v1/validate/code endpoint does not require login, yet actually executes submitted Python code. The authors put commands into decorator expressions to pass syntax checks and trigger execution, which is echoed back via function.errors, thereby reading the secret_key and exfiltrating the database; this key both decrypts Fernet-encrypted model credentials and signs HS256 JWTs, allowing offline decryption of model keys such as OpenAI and Anthropic and forgery of a superuser token with is_superuser set to true. The fix PR #6911 was released with 1.3.0, but the authors' testing found that ordinary registered users can still execute code through the same endpoint, and when self-service registration is enabled, a superuser token can further be signed; /validate/prompt is also outside the patch scope but does not execute code.

Read originalxz.aliyun.com