Cyber Posture

CWE · MITRE source

CWE-943Improper Neutralization of Special Elements in Data Query Logic

Abstraction: Class · CVEs in our corpus: 45

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

Last updated: 09 May 2026 03:25 UTC

NIST 800-53 r5 controls that address this weakness (0)AI

Control Title Family Why it addresses this CWE
No NIST controls proposed yet.

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2020-361952.09.80.00462021-04-17
CVE-2022-360842.09.90.01032022-09-08
CVE-2024-48722.09.90.00502024-08-27
CVE-2026-297932.09.80.00022026-03-10
CVE-2026-322482.09.80.00092026-03-12
CVE-2026-403512.09.80.00072026-04-17
CVE-2026-412742.09.80.00102026-04-23
CVE-2017-129041.98.80.02322017-08-23
CVE-2018-78291.88.80.00522019-05-22
CVE-2026-255131.88.80.00032026-02-04
CVE-2026-255141.88.80.00032026-02-04
CVE-2026-30231.88.80.00042026-03-16
CVE-2026-403521.88.80.00032026-04-17
CVE-2026-413271.89.10.00042026-04-24
CVE-2026-413281.89.10.00102026-04-24
CVE-2025-247871.78.60.00182025-02-06
CVE-2026-339801.78.30.00042026-03-27
CVE-2020-52571.67.70.00192020-03-13
CVE-2026-282111.67.80.00012026-02-26
CVE-2026-322471.68.10.00042026-03-12
CVE-2018-199521.57.50.00302020-11-02
CVE-2026-309411.57.50.00062026-03-10
CVE-2026-225581.57.70.00012026-03-19
CVE-2021-13491.36.50.00062021-01-20
CVE-2025-428841.36.50.00132025-11-11