Weaknesses of type CWE-89

13,525 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-2021-24731—Pie Register < 3.7.1.6 - Unauthenticated SQL InjectionEPSS 6.4%CVE-2024-22611CRITICALOpenEMR 7.0.2 is vulnerable to SQL Injection via \openemr\library\classes\Pharmacy.class.php, \controllers\C_Pharmacy.class.php and \openemrEPSS 6.3%CVE-2026-8111HIGHSQL injection in the web console of Ivanti Endpoint Manager before version 2024 SU6 allows a remote authenticated attacker to achieve remoteEPSS 6.3%CVE-2024-43360CRITICALZoneMinder Time-based SQL InjectionEPSS 6.2%CVE-2025-3836HIGHSQL InjectionEPSS 6.1%CVE-2022-36973CRITICALThis vulnerability allows remote attackers to bypass authentication on affected installations of Ivanti Avalanche 6.3.2.3490. Although autheEPSS 6.0%CVE-2017-16716—A SQL Injection issue was discovered in WebAccess versions prior to 8.3. WebAccess does not properly sanitize its inputs for SQL commands.EPSS 6.0%CVE-2024-35584HIGHSQL injection vulnerabilities were discovered in Ajax.php, ForWindow.php, ForExport.php, Modules.php, functions/HackingLogFnc.php in OpenSisEPSS 5.9%CVE-2022-1950—Youzify < 1.2.0 - Unauthenticated SQLiEPSS 5.8%CVE-2024-32709CRITICALWordPress WP-Recall plugin <= 16.26.5 - SQL Injection vulnerabilityEPSS 5.8%CVE-2024-44349CRITICALA SQL injection vulnerability in login portal in AnteeoWMS before v4.7.34 allows unauthenticated attackers to execute arbitrary SQL commandsEPSS 5.8%CVE-2024-36412CRITICALSuiteCRM unauthenticated SQL InjectionEPSS 5.7%CVE-2021-27472CRITICALRockwell Automation FactoryTalk AssetCentre SQL InjectionEPSS 5.7%CVE-2021-24295—Time-based Blind SQL Injection in Spam protection, AntiSpam, FireWall by CleanTalk < 5.153.4EPSS 5.6%CVE-2021-24741—Support Board < 3.3.4 - Multiple Unauthenticated SQL InjectionsEPSS 5.6%CVE-2021-24139—Photo Gallery by 10Web < 1.5.55 - Unauthenticated SQL InjectionEPSS 5.5%CVE-2022-1339HIGHSQL injection in ElementController.php in pimcore/pimcoreEPSS 5.5%CVE-2024-32737HIGHCyberPower PowerPanel Enterprise SQL InjectionEPSS 5.4%CVE-2024-32736HIGHCyberPower PowerPanel Enterprise SQL InjectionEPSS 5.4%CVE-2024-32739HIGHCyberPower PowerPanel Enterprise SQL InjectionEPSS 5.4%