CVE-2025-3466 Unsanitized Input in langgenius/dify
Attackers can execute arbitrary code with root permissions by overriding JavaScript functions in the code node, leading to full system compromise.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-3466?
CVE-2025-3466 is a critical code injection vulnerability in langgenius/dify, published on 7 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
langgenius/dify versions 1.1.0 to 1.1.2 are vulnerable to unsanitized input in the code node, allowing execution of arbitrary code with full root permissions. The vulnerability arises from the ability to override global functions in JavaScript, such as parseInt, before sandbox security restrictions are imposed. This can lead to unauthorized access to secret keys, internal network servers, and lateral movement within dify.ai. The issue is resolved in version 1.1.3.
Weakness: CWE-1100
Which versions are affected by CVE-2025-3466?
It affects 1 product.
Products include Langgenius Dify.
How do I fix CVE-2025-3466?
No fix has been published for CVE-2025-3466 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2025-3466 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-3466 exists.
Other vulnerabilities in langgenius/dify
Sources
Also known as GHSA-x53g-q9xm-rf4m.