CVE-2025-66335: Doris mcp server SQL Injection Vulnerability
MODERATECVE-2025-66335 is a MODERATE (CVSS 5.3) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Doris mcp server libraries in the PyPI ecosystem. The issue involves apache doris mcp server vulnerable to sql injection via improper query context neutralization. Remediation is available by upgrading affected packages to version 0.6.1.
CVE-2025-66335 at a Glance
Security Impact
CVSS: 5.3
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:N/A:N).
How to Fix CVE-2025-66335
To remediate this vulnerability, upgrade all affected Doris mcp server dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install doris-mcp-server>=0.6.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show doris-mcp-server
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-66335, inspect your installed packages using pip:
pip show doris-mcp-server
Analyze the terminal output to locate any version of Doris mcp server in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.1), your application is affected.
Note: The pip show doris-mcp-server command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Doris mcp server, 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-66335 Affected Doris mcp server Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
doris-mcp-server
|
PyPI |
≥ 0.1.0
< 0.6.1
|
0.6.1
|
References
Frequently Asked Questions
What is CVE-2025-66335?
Which Doris mcp server versions are affected?
What version fixes CVE-2025-66335?
Is doris-mcp-server affected?
What is the CVSS score of CVE-2025-66335?
What CWE is associated with CVE-2025-66335?
How can I check PyPI dependencies for CVE-2025-66335?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qhfq-gvvc-5q6q",
"modified" : "2026-04-24T15:24:04Z",
"published" : "2026-04-20T15:31:52Z",
"aliases" : [ "CVE-2025-66335" ],
"summary" : "Apache Doris MCP Server vulnerable to SQL Injection via improper query context neutralization",
"details" : "Apache Doris MCP Server versions prior to 0.6.1 are affected by an improper neutralization flaw in query context handling that may allow execution of unintended SQL statements and bypass of intended query validation and access restrictions through the MCP query execution interface. Versions 0.6.1 and later are not affected.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "doris-mcp-server"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.1.0"
}, {
"fixed" : "0.6.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-66335"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/doris-mcp-server"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/doris-mcp-server/releases/tag/0.6.1"
}, {
"type" : "WEB",
"url" : "https://lists.apache.org/thread/odp0fyyst8kxm7hhm9z4d1snh1y4hjpy"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2026/04/17/4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-24T15:24:04Z",
"nvd_published_at" : "2026-04-20T14:16:16Z"
}
}