Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-943 (数据查询逻辑中特殊元素的不当中和) — Vulnerability Class 120

120 vulnerabilities classified as CWE-943 (数据查询逻辑中特殊元素的不当中和). AI Chinese analysis included.

CWE-943 represents a critical software weakness where applications fail to properly sanitize special characters within data query logic, allowing malicious input to alter intended database operations. Attackers typically exploit this vulnerability by injecting crafted strings that break out of the original query structure, enabling unauthorized data access, modification, or deletion through techniques like SQL injection. This occurs when developers directly concatenate user-supplied data into query statements without validation or escaping mechanisms. To prevent such exploits, developers must implement robust input validation and utilize parameterized queries or prepared statements, which separate code from data. By treating all user input as untrusted and ensuring that special elements are correctly neutralized or escaped, organizations can effectively mitigate the risk of logic manipulation and safeguard their data stores from unauthorized interference.

MITRE CWE Description
The product generates a query intended to access or manipulate data in a data store such as a database, but it does not neutralize or incorrectly neutralizes special elements that can modify the intended logic of the query. Depending on the capabilities of the query language, an attacker could inject additional logic into the query to: Modify the intended selection criteria, thus changing which data entities (e.g., records) are returned, modified, or otherwise manipulated Append additional commands to the query Return more entities than intended Return fewer entities than intended Cause entities to be sorted in an unexpected way The ability to execute additional commands or change which entities are returned has obvious risks. But when the product logic depends on the order or number of entities, this can also lead to vulnerabilities. For example, if the query expects to return only one entity that specifies an administrative user, but an attacker can change which entities are returned, this could cause the logic to return information for a regular user and incorrectly assume that the user has administrative privileges. While this weakness is most commonly associated with SQL injection, there are many other query languages that are also subject to injection attacks, including HTSQL, LDAP, DQL, XQuery, Xpath, and "NoSQL" languages.
Common Consequences (1)
Confidentiality, Integrity, Availability, Access Control Bypass Protection Mechanism, Read Application Data, Modify Application Data, Varies by Context
Examples (2)
The following code dynamically constructs and executes a SQL query that searches for items matching a specified name. The query restricts the items displayed to those where owner matches the user name of the currently-authenticated user.
... string userName = ctx.getAuthenticatedUserName(); string query = "SELECT * FROM items WHERE owner = '" + userName + "' AND itemname = '" + ItemName.Text + "'"; sda = new SqlDataAdapter(query, conn); DataTable dt = new DataTable(); sda.Fill(dt); ...
Bad · C#
SELECT * FROM items WHERE owner = <userName> AND itemname = <itemName>;
Informative
The code below constructs an LDAP query using user input address data:
context = new InitialDirContext(env); String searchFilter = "StreetAddress=" + address; NamingEnumeration answer = context.search(searchBase, searchFilter, searchCtls);
Bad · Java
CVE ID Title CVSS Severity Published
CVE-2026-55253 LangChain MongoDB: NoSQL Operator Injection in MongoDBSaver.list() leading to cross-tenant data exposure — langchain-mongodb 7.7 High 2026-09-14
CVE-2026-88036 GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB C Driver — C Driver 8.3 High 2026-09-10
CVE-2026-88034 GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB C++ Driver — C++ Driver 8.3 High 2026-09-10
CVE-2026-88033 GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Java Driver — Java Driver 8.3 High 2026-09-10
CVE-2026-88031 GridFS data deletion via query-operator injection in file IDs in the MongoDB Go Driver — Go Driver 8.1 High 2026-09-10
CVE-2026-88030 GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Ruby Driver — Ruby Driver 8.3 High 2026-09-10
CVE-2026-88029 GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Python Driver — Python Driver 8.3 High 2026-09-10
CVE-2026-88028 Unauthorized document disclosure via query-operator injection in polymorphic relation identifiers in MongoDB integration for Laravel — Laravel MongoDB (PHP) 6.5 Medium 2026-09-10
CVE-2026-88027 Mass deletion and overwrite of embedded documents via query-operator injection in embedded record keys in MongoDB integration for Laravel — Laravel MongoDB (PHP) 7.1 High 2026-09-10
CVE-2026-88026 Regular expression injection via unescaped characters in LINQ query translation in MongoDB C# Driver — C# Driver 6.5 Medium 2026-09-10
CVE-2026-88025 GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB C# Driver — C# Driver 8.3 High 2026-09-10
CVE-2026-88024 GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Rust Driver — Rust Driver 8.3 High 2026-09-10
CVE-2026-88023 GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB PHP Library — MongoDB PHP Library 8.3 High 2026-09-10
CVE-2026-88022 Unauthorized document disclosure and deletion via query-operator injection in explicit equality filters in MongoDB integration for Laravel — Laravel MongoDB (PHP) 7.7 High 2026-09-10
CVE-2026-82060 Insufficient Validation of Shard Key Values in MongoDB Server Leads to Query Operator Injection in Change Stream Post-Image Lookups — MongoDB Server 5.4 Medium 2026-09-08
CVE-2026-62906 Microsoft Discovery Studio Information Disclosure Vulnerability — Microsoft Discovery Studio 7.4 High 2026-09-03
CVE-2026-85167 n8n before 2.36.2 Query Injection via Elasticsearch Firestore Nodes — n8n 6.3 Medium 2026-09-03
CVE-2026-63138 Improper Neutralization of Special Elements in Data Query Logic in Kibana Leading to Information Disclosure — Kibana 6.5 Medium 2026-09-01
CVE-2026-78691 Unescaped backslash allows LIKE wildcard injection in AshSql string search — ash_sql 2.1 Low 2026-08-30
CVE-2026-77846 JSON path injection via unescaped get_path segments in AshSqlite — ash_sqlite 2.1 Low 2026-08-30
CVE-2026-81528 NoSQL injection via array replacement bypassing update shape validation in driver write path — C# Driver 5.4 Medium 2026-08-27
CVE-2026-81527 NoSQL injection via unquoted constant GroupBy keys in LINQ pipeline translation — C# Driver 6.5 Medium 2026-08-27
CVE-2026-81525 Cross-tenant database retargeting via dot/NUL injection in namespace strings in the PHP Driver — PHP Library 8.1 High 2026-08-27
CVE-2026-56094 Information Disclosure in extension "Apache Solr for TYPO3 - Enterprise Search" (solr) — Extension "Apache Solr for TYPO3 - Enterprise Search" 6.3 Medium 2026-08-25
CVE-2026-56096 Information Disclosure in extension "Apache Solr for TYPO3 - Enterprise Search" (solr) — Extension "Apache Solr for TYPO3 - Enterprise Search" 6.3 Medium 2026-08-25
CVE-2026-77070 n8n before 1.123.69 NoSQL Injection via MongoDB Node — n8n 7.1 High 2026-08-20
CVE-2026-76363 Structured Query Language Injection through the REST API in Splunk SOAR — Splunk SOAR 6.5 Medium 2026-08-19
CVE-2026-76349 SPL Injection through Splunk Web Form Tokens in Splunk Enterprise — Splunk Enterprise 6.4 Medium 2026-08-19
CVE-2026-76331 SPL Injection through the REST API in Splunk Enterprise — Splunk Enterprise 8.1 High 2026-08-19
CVE-2026-76329 SPL Injection through Monitoring Console Dashboard Inputs in Splunk Enterprise — Splunk Enterprise 6.4 Medium 2026-08-19

Vulnerabilities classified as CWE-943 (数据查询逻辑中特殊元素的不当中和) represent 120 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.