Arbitrary Code Injection Affecting neuron-core/neuron-ai package, versions >=2.8.11, <2.8.12


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.28% (21st 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-PHP-NEURONCORENEURONAI-14287470
  • published10 Dec 2025
  • disclosed9 Dec 2025
  • creditGrzegorz Siewruk

Introduced: 9 Dec 2025

CVE-2025-67509  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade neuron-core/neuron-ai to version 2.8.12 or higher.

Overview

neuron-core/neuron-ai is a The PHP Agentic Framework.

Affected versions of this package are vulnerable to Arbitrary Code Injection via the validation based on the first keyword (e.g., SELECT) and a forbidden-keyword list does not block file-writing constructs such in the MySQLSelectTool. An attacker can write arbitrary files to the database server by injecting SQL statements containing file-writing clauses such as INTO OUTFILE or INTO DUMPFILE. This can potentially lead to remote code execution if the database account has the FILE privilege and the server is configured to allow writes to web-accessible directories.

Note: This is only exploitable if the deployment exposes an agent using MySQLSelectTool to untrusted input and the database account has overly-permissive privileges or configuration.

Workaround

This vulnerability can be mitigated by disabling or removing MySQLSelectTool for agents exposed to untrusted input, ensuring the database account does not have the FILE privilege, setting secure_file_priv to a non-web-accessible directory, and adding application-layer query filters to reject dangerous SQL clauses.

CVSS Base Scores

version 4.0
version 3.1