BaseStableTop 25 #3

CWE-89Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Category: injection

Description

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.

Common consequences· 5

  • Confidentiality / Integrity / Availability — Execute Unauthorized Code or Commands
    Adversaries could execute system commands, typically by changing the SQL statement to redirect output to a file that can then be executed.
  • Confidentiality — Read Application Data
    Since SQL databases generally hold sensitive data, loss of confidentiality is a frequent problem with SQL injection vulnerabilities.
  • Authentication — Gain Privileges or Assume Identity, Bypass Protection Mechanism
    If poor SQL commands are used to check user names and passwords or perform other kinds of authentication, it may be possible to connect to the product as another user with no previous knowledge of the password.
  • Access Control — Bypass Protection Mechanism
    If authorization information is held in a SQL database, it may be possible to change this information through the successful exploitation of a SQL injection vulnerability.
  • Integrity — Modify Application Data
    Just as it may be possible to read sensitive information, it is also possible to modify or even delete this information with a SQL injection attack.

Potential mitigations· 5

  • [Architecture and Design]
  • [Architecture and Design]
  • [Architecture and Design, Operation]
  • [Architecture and Design]For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
  • [Implementation]

Related CAPEC attack patterns· 6

CAPEC-108CAPEC-109CAPEC-110CAPEC-470CAPEC-66CAPEC-7

References

  1. https://cwe.mitre.org/data/definitions/89.html

Exploits (incoming)5

TypeTargetConfidenceTier
AttackPatternBlind SQL Injectioncapec-7100%live
AttackPatternSQL Injectioncapec-66100%live
AttackPatternCommand Line Execution through SQL Injectioncapec-108100%live
AttackPatternObject Relational Mapping Injectioncapec-109100%live
AttackPatternExpanding Control over the Operating System from the Databasecapec-470100%live

Compliance frameworks addressing this (incoming)13

TypeTargetConfidenceTier
ComplianceControliso27001-a.8.28100%live
ComplianceControlcis_v8-16100%live
ComplianceControlai_act-art72100%live
ComplianceControlowasp_top10-a03100%live
ComplianceControltiber_eu-preparation100%live
ComplianceControlpci_dss_v4-r11100%live
ComplianceControlcis_v8-18100%live
ComplianceControliso27001-a.8.8100%live
ComplianceControlgdpr-art5100%live
ComplianceControliso27001-a.8.25100%live
ComplianceControliso27001-a.8.26100%live
ComplianceControlpci_dss_v4-r6100%live
ComplianceControliso27001-a.8.29100%live

(incoming)132

TypeTargetConfidenceTier
VulnerabilityCVE-2025-0063cve-2025-00630%live
VulnerabilityCVE-2025-0103cve-2025-01030%live
VulnerabilityCVE-2025-0165cve-2025-01650%live
VulnerabilityCVE-2025-0203cve-2025-02030%live
VulnerabilityCVE-2025-0204cve-2025-02040%live
VulnerabilityCVE-2025-0205cve-2025-02050%live
VulnerabilityCVE-2025-0207cve-2025-02070%live
VulnerabilityCVE-2025-0208cve-2025-02080%live
VulnerabilityCVE-2025-0210cve-2025-02100%live
VulnerabilityCVE-2025-0212cve-2025-02120%live
VulnerabilityCVE-2025-0229cve-2025-02290%live
VulnerabilityCVE-2025-0230cve-2025-02300%live
VulnerabilityCVE-2025-0231cve-2025-02310%live
VulnerabilityCVE-2025-0232cve-2025-02320%live
VulnerabilityCVE-2025-0233cve-2025-02330%live
VulnerabilityCVE-2025-0294cve-2025-02940%live
VulnerabilityCVE-2025-0296cve-2025-02960%live
VulnerabilityCVE-2025-0298cve-2025-02980%live
VulnerabilityCVE-2025-0299cve-2025-02990%live
VulnerabilityCVE-2025-0300cve-2025-03000%live
VulnerabilityCVE-2025-0333cve-2025-03330%live
VulnerabilityCVE-2025-0334cve-2025-03340%live
VulnerabilityCVE-2025-0336cve-2025-03360%live
VulnerabilityCVE-2025-0340cve-2025-03400%live
VulnerabilityCVE-2025-0344cve-2025-03440%live
VulnerabilityCVE-2025-0345cve-2025-03450%live
VulnerabilityCVE-2025-0347cve-2025-03470%live
VulnerabilityCVE-2025-0391cve-2025-03910%live
VulnerabilityCVE-2025-0392cve-2025-03920%live
VulnerabilityCVE-2025-0405cve-2025-04050%live

Showing top 30 of 132 by confidence. Click any target to see the full neighbourhood.

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Improper Neutralization of Data within XQuery Expressions ('XQuery Injection')
CWE
Improper Neutralization of Special Elements in Data Query Logic
CWE
Improper Neutralization of Data within XPath Expressions ('XPath Injection')
CWE
Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')
CWE
Improper Neutralization of Internal Special Elements
CWE
Improper Neutralization of Expression/Command Delimiters
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.