Weaknesses of type CWE-89

12,877 results

Injeção SQL

Ocorre quando entrada do usuário é concatenada diretamente em comandos SQL sem validação ou sanitização, permitindo que um atacante insira código SQL malicioso. O aplicativo executa a consulta alterada, comprometendo confidencialidade, integridade e disponibilidade dos dados.

Example

Um formulário de login que monta a query assim: `SELECT * FROM users WHERE email = '" + emailDoFormulario + "'`. Se o usuário digitar `admin'--`, a query vira `SELECT * FROM users WHERE email = 'admin'--'` e bypassa a validação de senha, autenticando como admin.

How to mitigate

Use prepared statements ou stored procedures com parâmetros vinculados (bind parameters). Em Java use PreparedStatement; em Python use placeholders com psycopg2 ou SQLAlchemy; em qualquer linguagem evite concatenação de strings. Combine com validação de entrada e princípio do menor privilégio no banco de dados.

CVE-2023-0997HIGHSourceCodester Moosikay E-Commerce System POST Parameter order.php sql injectionEPSS 0.9%CVE-2023-31615HIGHAn issue in the chash_array component of openlink virtuoso-opensource v7.2.9 allows attackers to cause a Denial of Service (DoS) via craftedEPSS 0.9%CVE-2023-4661CRITICALSQLi in Saphira ConnectEPSS 0.9%CVE-2020-16104HIGHSQL Injection vulnerability in Enterprise Data Interface of Gallagher Command Centre allows a remote attacker with 'Edit Enterprise Data IntEPSS 0.9%CVE-2026-32306CRITICALOneUptime ClickHouse SQL Injection via Aggregate Query ParametersEPSS 0.9%CVE-2023-2338HIGH SQL Injection in pimcore/pimcoreEPSS 0.9%CVE-2022-42237CRITICALA SQL Injection issue in Merchandise Online Store v.1.0 allows an attacker to log in to the admin account.EPSS 0.9%CVE-2023-31613HIGHAn issue in the __nss_database_lookup component of openlink virtuoso-opensource v7.2.9 allows attackers to cause a Denial of Service (DoS) vEPSS 0.9%CVE-2024-1833MEDIUMSourceCodester Employee Management System login.php sql injectionEPSS 0.9%CVE-2024-11962MEDIUMcode-projects Simple Car Rental System login.php sql injectionEPSS 0.9%CVE-2024-4423HIGHAuthentication bypass in CemiParkEPSS 0.9%CVE-2022-47864CRITICALLead Management System v1.0 is vulnerable to SQL Injection via the id parameter in removeCategories.php.EPSS 0.9%CVE-2024-48259HIGHCloudlog 2.6.15 allows Oqrs.php request_form SQL injection via station_id or callsign.EPSS 0.9%CVE-2022-47862CRITICALLead Management System v1.0 is vulnerable to SQL Injection via the customer_id parameter in ajax_represent.php.EPSS 0.9%CVE-2025-0298MEDIUMcode-projects Online Book Shop process_login.php sql injectionEPSS 0.9%CVE-2023-31621HIGHAn issue in the kc_var_col component of openlink virtuoso-opensource v7.2.9 allows attackers to cause a Denial of Service (DoS) via crafted EPSS 0.9%CVE-2023-31616HIGHAn issue in the bif_mod component of openlink virtuoso-opensource v7.2.9 allows attackers to cause a Denial of Service (DoS) via crafted SQLEPSS 0.9%CVE-2023-31629HIGHAn issue in the sqlo_union_scope component of openlink virtuoso-opensource v7.2.9 allows attackers to cause a Denial of Service (DoS) via crEPSS 0.9%CVE-2023-31620HIGHAn issue in the dv_compare component of openlink virtuoso-opensource v7.2.9 allows attackers to cause a Denial of Service (DoS) via crafted EPSS 0.9%CVE-2023-31627HIGHAn issue in the strhash component of openlink virtuoso-opensource v7.2.9 allows attackers to cause a Denial of Service (DoS) via crafted SQLEPSS 0.9%