CVE-2025-4261 GAIR-NLP factool tool.py run_single code injection
Local attackers can execute arbitrary code via the run_single function in the GAIR-NLP factool library.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-4261?
CVE-2025-4261 is a medium-severity code injection vulnerability in GAIR-NLP factool, published on 5 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
A vulnerability was found in GAIR-NLP factool up to 3f3914bc090b644be044b7e0005113c135d8b20f. It has been classified as critical. This affects the function run_single of the file factool/factool/math/tool.py. The manipulation leads to code injection. The attack needs to be approached locally. The exploit has been disclosed to the public and may be used. This product takes the approach of rolling releases to provide continious delivery. Therefore, version details for affected and updated releases are not available.
Which versions are affected by CVE-2025-4261?
How do I fix CVE-2025-4261?
No fix has been published for CVE-2025-4261 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-4261 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-4261 exists.
Sources
Also known as GHSA-fmp3-757p-8j59.