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 package | Versions | Reported by |
|---|---|---|
| neuron-core neuron-ai | < 2.8.12 | CVE List |
| neuron-core/neuron-ai (Packagist) | before 2.8.12 | GitHub Advisory Database |
| neuron-ai neuron | before 2.8.12 | NVD |
All scores
| GitHub_M | 9.4critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H |
| GitHub | 9.4critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H |
Classification
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/UPDATEon selected tables; forbidDROP/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
MySQLWriteToolfor public/untrusted agents. -
Use a dedicated DB user with least privilege:
- no
DROP, noALTER, noGRANT, no access to sensitive tables unless necessary
- no
-
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
| https://github.com/neuron-core/neuron-ai/security/advisories/GHSA-898v-775g-777c | mitigation, vendor-advisory, web | |
| https://github.com/neuron-core/neuron-ai/commit/44bab85d92bf162898ee48d0bcef6ba0d29b59c9 | patch, web | |
| https://github.com/neuron-core/neuron-ai/releases/tag/2.8.12 | product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-67510 | advisory | |
| https://github.com/neuron-core/neuron-ai | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-67510 changed 2025-12-11 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-898v-775g-777c changed 2025-12-11 | CC-BY-4.0 |
| NVD | CVE-2025-67510 changed 2026-09-25 | Public domain |