Arbitrary Code Injection Affecting factool package, versions [0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.03% (7th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-FACTOOL-10228695
  • published22 May 2025
  • disclosed5 May 2025
  • creditUnknown

Introduced: 5 May 2025

NewCVE-2025-4261  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

There is no fixed version for factool.

Overview

factool is a Factuality Detection for Generative AI

Affected versions of this package are vulnerable to Arbitrary Code Injection through the run_single and run functions in the class python_executor due to using the exec() function to execute user-provided input without any form of validation. An attacker can execute arbitrary code by manipulating the input parameters to the function. This can lead to unauthorized access to system resources, data leakage, or even complete system compromise.

Note: This is only exploitable if the attacker has local access to the system.

CVSS Base Scores

version 4.0
version 3.1