Weaknesses of type CWE-89

12,990 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-2022-2774MEDIUMSourceCodester Library Management System student.php sql injectionEPSS 0.6%CVE-2024-33551CRITICALWordPress XStore Core plugin <= 5.3.5 - Unauthenticated SQL Injection vulnerabilityEPSS 0.6%CVE-2024-5588MEDIUMitsourcecode Learning Management System processscore.php sql injectionEPSS 0.6%CVE-2022-2801MEDIUMSourceCodester Automated Beer Parlour Billing System Login sql injectionEPSS 0.6%CVE-2025-8499MEDIUMcode-projects Online Medicine Guide cusfindambulence2.php sql injectionEPSS 0.6%CVE-2024-5390MEDIUMitsourcecode Online Student Enrollment System listofstudent.php sql injectionEPSS 0.6%CVE-2024-5395MEDIUMitsourcecode Online Student Enrollment System listofinstructor.php sql injectionEPSS 0.6%CVE-2024-6042MEDIUMitsourcecode Real Estate Management System property-detail.php sql injectionEPSS 0.6%CVE-2024-5392MEDIUMitsourcecode Online Student Enrollment System editSubject.php sql injectionEPSS 0.6%CVE-2024-7930MEDIUMSourceCodester Clinics Patient Management System get_packings.php sql injectionEPSS 0.6%CVE-2017-20163MEDIUMRed Snapper NView Session.php mutate sql injectionEPSS 0.6%CVE-2024-24110MEDIUMSQL Injection vulnerability in crmeb_java before v1.3.4 allows attackers to run arbitrary SQL commands via crafted GET request to the componEPSS 0.6%CVE-2024-3316MEDIUMSourceCodester Computer Laboratory Management System view_category.php sql injectionEPSS 0.6%CVE-2024-3251MEDIUMSourceCodester Computer Laboratory Management System sql injectionEPSS 0.6%CVE-2023-22378HIGHAuthenticated Blind SQL Injection on sorting in Guardian/CMC before 22.6.2EPSS 0.6%CVE-2023-22491HIGHgatsby-transformer-remark vulnerable to unsanitized JavaScript code injection EPSS 0.6%CVE-2017-20173MEDIUMAlexRed contentmap contentmap.php Load sql injectionEPSS 0.6%CVE-2023-0883MEDIUMSourceCodester Online Pizza Ordering System index.php sql injectionEPSS 0.6%CVE-2024-2661HIGHBarcode Scanner with Inventory & Order Manager <= 1.5.4 - Authenticated (Subscriber+) SQL InjectionEPSS 0.6%CVE-2023-2108MEDIUMSourceCodester Judging Management System edit_contestant.php sql injectionEPSS 0.6%