CVE-2025-66335: Doris mcp server SQL Injection Vulnerability

MODERATE
Advisory Identifier: GHSA-qhfq-gvvc-5q6q
CVSS 5.3
CWE-89
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-66335
GHSA Identifier GHSA-qhfq-gvvc-5q6q
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Doris mcp server
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (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.

doris-mcp-server fixed: 0.6.1
pip install doris-mcp-server>=0.6.1
Verify Direct and Transitive Dependencies

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

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.

CVE-2025-66335 Affected Doris mcp server Versions

1 component(s)
Fixed Versions:
0.6.1
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?
CVE-2025-66335 is a security vulnerability in Doris mcp server involving Apache Doris MCP Server vulnerable to SQL Injection via improper query context neutralization under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Doris mcp server versions are affected?
Affected versions include releases prior to 0.6.1 across affected packages: doris-mcp-server.
What version fixes CVE-2025-66335?
Upgrading to 0.6.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is doris-mcp-server affected?
Yes, doris-mcp-server is affected in releases prior to 0.6.1. Upgrade your dependency to 0.6.1 or later.
What is the CVSS score of CVE-2025-66335?
CVE-2025-66335 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2025-66335?
CVE-2025-66335 is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (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.).
How can I check PyPI dependencies for CVE-2025-66335?
Run the dependency tree command: 'pip show doris-mcp-server'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}