Weaknesses of type CWE-89

12,820 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-2024-2022MEDIUMNetentsec NS-ASG Application Security Gateway list_ipAddressPolicy.php sql injectionEPSS 8.5%CVE-2025-7624CRITICALAn SQL injection vulnerability in the legacy (transparent) SMTP proxy of Sophos Firewall versions older than 21.0 MR2 (21.0.2) can lead to rEPSS 8.5%CVE-2024-28040HIGHDelta Electronics DIAEnergie SQL injectionEPSS 8.5%CVE-2024-23494HIGHDelta Electronics DIAEnergie SQL injectionEPSS 8.5%CVE-2024-29828HIGHAn unspecified SQL Injection vulnerability in Core server of Ivanti EPM 2022 SU5 and prior allows an authenticated attacker within the same EPSS 8.5%CVE-2024-29830HIGHAn unspecified SQL Injection vulnerability in Core server of Ivanti EPM 2022 SU5 and prior allows an authenticated attacker within the same EPSS 8.5%CVE-2024-29846HIGHAn unspecified SQL Injection vulnerability in Core server of Ivanti EPM 2022 SU5 and prior allows an authenticated attacker within the same EPSS 8.5%CVE-2024-23975HIGHDelta Electronics DIAEnergie SQL injectionEPSS 8.5%CVE-2024-25937HIGHDelta Electronics DIAEnergie SQL injectionEPSS 8.5%CVE-2024-28891HIGHDelta Electronics DIAEnergie SQL injectionEPSS 8.5%CVE-2021-24849WCFM - WooCommerce Multivendor Marketplace < 3.4.12 - Unauthenticated SQL InjectionEPSS 8.5%CVE-2023-1545HIGH SQL Injection in nilsteampassnet/teampassEPSS 8.4%CVE-2022-0769Users Ultra <= 3.1.0 - Unauthenticated SQL InjectionEPSS 8.3%CVE-2024-36837MEDIUMSQL Injection vulnerability in CRMEB v.5.2.2 allows a remote attacker to obtain sensitive information via the getProductList function in theEPSS 8.3%CVE-2026-26263HIGHGLPI has an Unauthenticated SQL Injection via Search engineEPSS 8.3%CVE-2024-29829HIGHAn unspecified SQL Injection vulnerability in Core server of Ivanti EPM 2022 SU5 and prior allows an authenticated attacker within the same EPSS 8.2%CVE-2021-39165HIGHUnauthenticated SQL InjectionEPSS 8.2%CVE-2022-1057Pricing Deals for WooCommerce <= 2.0.2.02 - Unauthenticated SQLiEPSS 8.1%CVE-2023-1934CRITICALThe PnPSCADA system, a product of SDG Technologies CC, is afflicted by a critical unauthenticated error-based PostgreSQL Injection vulnerabiEPSS 8.1%CVE-2022-0788WP Fundraising Donation and Crowdfunding Platform < 1.5.0 - Unauthenticated SQLiEPSS 7.9%