CVE-2025-67509: Neuron core/neuron ai Remote Code Execution Vulnerability
HIGHCVE-2025-67509 is a HIGH (CVSS 8.2) remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Neuron core/neuron ai libraries in the Packagist ecosystem. The issue involves neuron mysqlselecttool “read-only” bypass via `select ... into outfile` (file write → potential rce). Remediation is available by upgrading affected packages to version 2.8.12.
CVE-2025-67509 at a Glance
Security Impact
CVSS: 8.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N).
How to Fix CVE-2025-67509
To remediate this vulnerability, upgrade all affected Neuron core/neuron ai dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade neuron-core/neuron-ai to 2.8.12
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for neuron-core/neuron-ai
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-67509, inspect your project dependencies for Neuron core/neuron ai:
inspect dependencies for neuron-core/neuron-ai
Analyze the terminal output to locate any version of Neuron core/neuron ai in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.8.12), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Neuron core/neuron ai, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-67509 Affected Neuron core/neuron ai Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
neuron-core/neuron-ai
|
Packagist |
< 2.8.12
|
2.8.12
|
References
Frequently Asked Questions
What is CVE-2025-67509?
Which Neuron core/neuron ai versions are affected?
What version fixes CVE-2025-67509?
Is neuron-core/neuron-ai affected?
What is the CVSS score of CVE-2025-67509?
What CWE is associated with CVE-2025-67509?
How can I check Packagist dependencies for CVE-2025-67509?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j8g6-5gqc-mq36",
"modified" : "2025-12-11T15:49:01Z",
"published" : "2025-12-09T17:19:23Z",
"aliases" : [ "CVE-2025-67509" ],
"summary" : "Neuron MySQLSelectTool “read-only” bypass via `SELECT ... INTO OUTFILE` (file write → potential RCE)",
"details" : "### Impact\n\n`MySQLSelectTool` is intended to be a read-only SQL tool (e.g., for LLM agent querying). However, validation based on the first keyword (e.g., `SELECT`) and a forbidden-keyword list does not block file-writing constructs such as `INTO OUTFILE` / `INTO DUMPFILE`. \n\nAs a result, an attacker who can influence the tool input (e.g., prompt injection through a public agent endpoint) may be able to write arbitrary content to files on the DB server.\n\nIf the MySQL/MariaDB account has the `FILE` privilege and server configuration permits writes to a useful location (e.g., a web-accessible directory), the impact can escalate to remote code execution on the application host (for example, by writing a PHP web shell).\n\n**Who is impacted:** Deployments that expose an agent using `MySQLSelectTool` to untrusted input and run with overly-permissive DB privileges/configuration.\n\n### Patches\n\n**Not patched in:** 2.8.11 \n\n**Fixed in:** 2.8.12\n\nRecommended fix direction:\n\n- Explicitly reject queries containing: `INTO`, `OUTFILE`, `DUMPFILE`, `LOAD_FILE`, and other file/IO-related functions/clauses.\n\n- Prefer AST-based validation (SQL parser) over keyword checks.\n\n- Constrain allowed tables/columns and disallow multi-statements.\n\n### Workarounds\n\nIf you cannot upgrade immediately:\n\n- Remove/disable `MySQLSelectTool` for any agent reachable from untrusted input.\n\n- Ensure DB account used by the tool **does not** have `FILE` privilege.\n\n- Ensure `secure_file_priv` is set to a directory that is **not** web-accessible (or restrict it tightly).\n\n- Add a defensive query filter at the application layer rejecting `INTO OUTFILE`, `INTO DUMPFILE`, `LOAD_FILE`, `;` (multi-statements), and suspicious comment patterns.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "neuron-core/neuron-ai"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.8.12"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.8.11"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/neuron-core/neuron-ai/security/advisories/GHSA-j8g6-5gqc-mq36"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-67509"
}, {
"type" : "WEB",
"url" : "https://github.com/neuron-core/neuron-ai/commit/72735d0ea133266cf2f5d5d195d41e9dd865289a"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/neuron-core/neuron-ai"
}, {
"type" : "WEB",
"url" : "https://github.com/neuron-core/neuron-ai/releases/tag/2.8.12"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-12-09T17:19:23Z",
"nvd_published_at" : "2025-12-10T23:15:48Z"
}
}