{"id":"CVE-2025-67510","aliases":["CVE-2025-67510","GHSA-898v-775g-777c"],"related":[],"kind":"vulnerability","state":"published","title":"MySQLWriteTool allows arbitrary/destructive SQL when exposed to untrusted prompts (agent “footgun”)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\n`MySQLWriteTool` executes arbitrary SQL provided by the caller using `PDO::prepare()` + `execute()` without semantic restrictions.  \n\nThis 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).\n\n\n\n**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.\n\n### Patches\n\n**Not patched in:** 2.8.11  \n\nRecommended improvements (even if keeping the tool intentionally powerful):\n\n- Provide a safer API that supports only constrained operations (e.g., `insertRecord`, `updateRecord`) with allowlisted tables/columns.\n\n- Add a policy/allowlist layer (e.g., allow only `INSERT`/`UPDATE` on selected tables; forbid `DROP/TRUNCATE/ALTER/GRANT`).\n\n- Add optional review workflow: log + require human approval for high-risk statements; or “dry-run” mode.\n\n- Document strongly that the tool must not be exposed to untrusted prompts without additional safeguards.\n\n\n\n### Workarounds\n\n- Do not enable `MySQLWriteTool` for public/untrusted agents.\n\n- Use a dedicated DB user with **least privilege**:\n\n  - no `DROP`, no `ALTER`, no `GRANT`, no access to sensitive tables unless necessary\n\n- Add an application-layer policy rejecting high-risk statements (`DROP`, `TRUNCATE`, `ALTER`, `GRANT`, `REVOKE`, `CREATE USER`, etc.).\n\n- Implement authorization gating for tool calls (RBAC, allow tool use only for trusted operators).","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-12-09T17:19:42.000Z","modified":"2026-09-25T23:10:00.463Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H","score":9.4,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H","score":9.4,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:H","score":9.4,"rating":"CRITICAL"}],"cwes":["CWE-250","CWE-284"],"affected":[{"ranges":[{"version":"< 2.8.12","status":"affected"}],"vendor":"neuron-core","product":"neuron-ai","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.8.12"}],"ecosystem":"Packagist","package":"neuron-core/neuron-ai","purl":"pkg:composer/neuron-core/neuron-ai","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.8.12"}],"vendor":"neuron-ai","product":"neuron","cpe":"cpe:2.3:a:neuron-ai:neuron:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/neuron-core/neuron-ai/security/advisories/GHSA-898v-775g-777c","tags":["mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/neuron-core/neuron-ai/commit/44bab85d92bf162898ee48d0bcef6ba0d29b59c9","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/neuron-core/neuron-ai/releases/tag/2.8.12","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-67510","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/neuron-core/neuron-ai","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-12-11T15:37:23.715Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-67510","url":"https://www.cve.org/CVERecord?id=CVE-2025-67510","licence":"CVE Terms of Use","modified":"2025-12-11T15:37:39.220Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-898v-775g-777c","url":"https://github.com/advisories/GHSA-898v-775g-777c","licence":"CC-BY-4.0","modified":"2025-12-11T16:23:02.135Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-67510","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-67510","licence":"Public domain","modified":"2026-09-25T23:10:00.463Z"}],"updatedAt":"2026-11-25T22:59:09.211Z","epss":{"score":0.00438,"percentile":0.39809,"date":"2026-12-01T12:00:22.000Z"}}