37 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.
... 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); ...SELECT * FROM items WHERE owner = <userName> AND itemname = <itemName>;context = new InitialDirContext(env); String searchFilter = "StreetAddress=" + address; NamingEnumeration answer = context.search(searchBase, searchFilter, searchCtls);| CVE ID | Title | CVSS | Severity | Published |
|---|---|---|---|---|
| CVE-2024-31882 | IBM Db2 denial of service — Db2 for Linux, UNIX and Windows | 5.3 | Medium | 2024-08-14 |
| CVE-2024-35136 | IBM Db2 denial of service — Db2 for Linux, UNIX and Windows | 5.3 | Medium | 2024-08-14 |
| CVE-2024-28192 | NoSQL Injection Leading to Authentication Bypass in your_spotify — your_spotify | 5.3 | Medium | 2024-03-13 |
| CVE-2022-36084 | cruddl vulnerable to AQL injection through flexSearch — cruddl | 9.9 | Critical | 2022-09-08 |
| CVE-2021-34712 | Cisco SD-WAN vManage Software Cypher Query Language Injection Vulnerability — Cisco SD-WAN vManage | 5.4 | Medium | 2021-09-23 |
| CVE-2021-1349 | Cisco SD-WAN vManage Cypher Query Language Injection Vulnerability — Cisco SD-WAN vManage | 6.5 | Medium | 2021-01-20 |
| CVE-2020-5257 | Sort order SQL injection in Administrate — administrate | 7.7 | High | 2020-03-13 |
Vulnerabilities classified as CWE-943 (数据查询逻辑中特殊元素的不当中和) represent 37 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.