CVE-2025-67510
JSON

9.4critical

MySQLWriteTool allows arbitrary/destructive SQL when exposed to untrusted prompts (agent “footgun”)

Severity
9.4critical CVSS:3.1 by GitHub_M
Exploit likelihood
0.44% (higher than 39% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-898v-775g-777c

Description

Neuron is a PHP framework for creating and orchestrating AI Agents. In versions 2.8.11 and below, the MySQLWriteTool executes arbitrary SQL provided by the caller using PDO::prepare() + execute() without semantic restrictions. This is consistent with the name (“write tool”), but in an LLM/agent context it becomes a high-risk capability: prompt injection or indirect prompt manipulation can cause execution of destructive queries such as DROP TABLE, TRUNCATE, DELETE, ALTER, or privilege-related statements (subject to DB permissions). Deployments that expose an agent with MySQLWriteTool enabled to untrusted input and/or run the tool with a DB user that has broad privileges are impacted. This issue is fixed in version 2.8.12.

Affected

Product or packageVersionsReported by
neuron-core neuron-ai< 2.8.12CVE List
neuron-core/neuron-ai (Packagist)before 2.8.12GitHub Advisory Database
neuron-ai neuronbefore 2.8.12NVD

All scores

GitHub_M9.4critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H
GitHub9.4critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H

Classification

CWE-250CWE-284

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Neuron is a PHP framework for creating and orchestrating AI Agents. In versions 2.8.11 and below, the MySQLWriteTool executes arbitrary SQL provided by the caller using PDO::prepare() + execute() without semantic restrictions. This is consistent with the name (“write tool”), but in an LLM/agent context it becomes a high-risk capability: prompt injection or indirect prompt manipulation can cause execution of destructive queries such as DROP TABLE, TRUNCATE, DELETE, ALTER, or privilege-related statements (subject to DB permissions). Deployments that expose an agent with MySQLWriteTool enabled to untrusted input and/or run the tool with a DB user that has broad privileges are impacted. This issue is fixed in version 2.8.12.

GitHub Advisory Database
Impact

MySQLWriteTool executes arbitrary SQL provided by the caller using PDO::prepare() + execute() without semantic restrictions.

This is consistent with the name (“write tool”), but in an LLM/agent context it becomes a high-risk capability: prompt injection or indirect prompt manipulation can cause execution of destructive queries such as DROP TABLE, TRUNCATE, DELETE, ALTER, or privilege-related statements (subject to DB permissions).

Who is impacted: Deployments that expose an agent with MySQLWriteTool enabled to untrusted input and/or run the tool with a DB user that has broad privileges.

Patches

Not patched in: 2.8.11

Recommended improvements (even if keeping the tool intentionally powerful):

  • Provide a safer API that supports only constrained operations (e.g., insertRecord, updateRecord) with allowlisted tables/columns.

  • Add a policy/allowlist layer (e.g., allow only INSERT/UPDATE on selected tables; forbid DROP/TRUNCATE/ALTER/GRANT).

  • Add optional review workflow: log + require human approval for high-risk statements; or “dry-run” mode.

  • Document strongly that the tool must not be exposed to untrusted prompts without additional safeguards.

Workarounds
  • Do not enable MySQLWriteTool for public/untrusted agents.

  • Use a dedicated DB user with least privilege:

    • no DROP, no ALTER, no GRANT, no access to sensitive tables unless necessary
  • Add an application-layer policy rejecting high-risk statements (DROP, TRUNCATE, ALTER, GRANT, REVOKE, CREATE USER, etc.).

  • Implement authorization gating for tool calls (RBAC, allow tool use only for trusted operators).

NVD (es)

Neuron es un framework PHP para crear y orquestar Agentes de IA. En las versiones 2.8.11 e inferiores, la MySQLWriteTool ejecuta SQL arbitrario proporcionado por el llamador utilizando PDO::prepare() + execute() sin restricciones semánticas. Esto es consistente con el nombre ('herramienta de escritura'), pero en un contexto de LLM/agente se convierte en una capacidad de alto riesgo: la inyección de prompts o la manipulación indirecta de prompts puede causar la ejecución de consultas destructivas como DROP TABLE, TRUNCATE, DELETE, ALTER, o sentencias relacionadas con privilegios (sujeto a los permisos de la base de datos). Las implementaciones que exponen un agente con MySQLWriteTool habilitada a entrada no confiable y/o ejecutan la herramienta con un usuario de base de datos que tiene amplios privilegios se ven afectadas. Este problema está solucionado en la versión 2.8.12.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-67510 changed 2025-12-11CVE Terms of Use
GitHub Advisory DatabaseGHSA-898v-775g-777c changed 2025-12-11CC-BY-4.0
NVDCVE-2025-67510 changed 2026-09-25Public domain