Weaknesses of type CWE-89

12,920 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-32306HIGHTime Tracker has Blind SQL Injection Vulnerability in ReportsEPSS 0.7%CVE-2024-10354MEDIUMSourceCodester Petrol Pump Management Software print.php sql injectionEPSS 0.7%CVE-2024-56801MEDIUMTasklists has Blind SQL Injection in /ajax/reorder.phpEPSS 0.7%CVE-2024-25308HIGHCode-projects Simple School Managment System 1.0 allows SQL Injection via the 'name' parameter at School/teacher_login.php.EPSS 0.7%CVE-2024-25306HIGHCode-projects Simple School Managment System 1.0 allows SQL Injection via the 'aname' parameter at "School/index.php".EPSS 0.7%CVE-2023-36677HIGHWordPress SP Project & Document Manager Plugin <= 4.67 is vulnerable to SQL InjectionEPSS 0.7%CVE-2023-2451MEDIUMSourceCodester Online DJ Management System GET Parameter view_details.php sql injectionEPSS 0.7%CVE-2023-24956HIGHForget Heart Message Box v1.1 was discovered to contain a SQL injection vulnerability via the name parameter at /cha.php.EPSS 0.7%CVE-2025-48912HIGHApache Superset: Improper authorization bypass on row level security via SQL InjectionEPSS 0.7%CVE-2023-5589HIGHSourceCodester Judging Management System login.php sql injectionEPSS 0.7%CVE-2023-7127MEDIUMcode-projects Automated Voting System Login sql injectionEPSS 0.7%CVE-2023-7100MEDIUMPHPGurukul Restaurant Table Booking System bwdates-report-details.php sql injectionEPSS 0.7%CVE-2023-7156HIGHCampcodes Online College Library System Search index.php sql injectionEPSS 0.7%CVE-2023-7131MEDIUMcode-projects Intern Membership Management System User Registration sql injectionEPSS 0.7%CVE-2024-25533CRITICALError messages in RuvarOA v6.01 and v12.01 were discovered to leak the physical path of the website (/WorkFlow/OfficeFileUpdate.aspx). This EPSS 0.7%CVE-2023-5047CRITICALSQLi in DRDriveEPSS 0.7%CVE-2023-6441CRITICALSQLi in UNI-PA's University Information SystemEPSS 0.7%CVE-2024-24323HIGHSQL injection vulnerability in linlinjava litemall v.1.8.0 allows a remote attacker to obtain sensitive information via the nickname, consigEPSS 0.7%CVE-2024-2329MEDIUMNetentsec NS-ASG Application Security Gateway sql injectionEPSS 0.7%CVE-2024-1514CRITICALWP eCommerce <= 3.15.1 - Unauthenticated SQL InjectionEPSS 0.7%