Weaknesses of type CWE-89

12,904 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-2012-5872CRITICALARC (aka ARC2) through 2011-12-01 allows blind SQL Injection in getTriplePatternSQL in ARC2_StoreSelectQueryHandler.php via comments in a SPEPSS 0.8%CVE-2022-2876MEDIUMSourceCodester Student Management System index.php sql injectionEPSS 0.8%CVE-2023-30018CRITICALJudging Management System v1.0 is vulnerable to SQL Injection. via /php-jms/review_se_result.php?mainevent_id=.EPSS 0.8%CVE-2022-43774CRITICALThe HandlerPageP_KID class in Delta Electronics DIAEnergy v1.9 contains a SQL Injection flaw that could allow an attacker to gain code execuEPSS 0.8%CVE-2023-31752CRITICALSourceCodester Employee and Visitor Gate Pass Logging System v1.0 is vulnerable to SQL Injection via /employee_gatepass/classes/Login.php.EPSS 0.8%CVE-2023-30203CRITICALJudging Management System v1.0 was discovered to contain a SQL injection vulnerability via the event_id parameter at /php-jms/result_sheet.pEPSS 0.8%CVE-2023-27052CRITICALE-Commerce System v1.0 ws discovered to contain a SQL injection vulnerability via the id parameter at /admin/delete_user.php.EPSS 0.8%CVE-2023-1361HIGH SQL Injection in unilogies/bumsysEPSS 0.8%CVE-2023-3146MEDIUMSourceCodester Online Discussion Forum Site manage_category.php sql injectionEPSS 0.8%CVE-2022-43362HIGHSenayan Library Management System v9.4.2 was discovered to contain a SQL injection vulnerability via the collType parameter at loan_by_classEPSS 0.8%CVE-2026-25746HIGHOpenEMR has SQL Injection VulnerabilityEPSS 0.8%CVE-2023-3150MEDIUMSourceCodester Online Discussion Forum Site manage_post.php sql injectionEPSS 0.8%CVE-2024-55980CRITICALWordPress Wr Age Verification plugin <= 2.0.0 - SQL Injection vulnerabilityEPSS 0.8%CVE-2024-10967MEDIUMcode-projects E-Health Care System delete_user_appointment_request.php sql injectionEPSS 0.8%CVE-2023-3694MEDIUMSourceCodester/projectworlds House Rental and Property Listing index.php sql injectionEPSS 0.8%CVE-2024-45794HIGHSQL Injection in CreateUser API in devtronEPSS 0.7%CVE-2024-12958MEDIUM1000 Projects Portfolio Management System MCA update_pro_details.php sql injectionEPSS 0.7%CVE-2023-2092MEDIUMSourceCodester Vehicle Service Management System view_service.php sql injectionEPSS 0.7%CVE-2025-0564MEDIUMcode-projects Fantasy-Cricket authenticate.php sql injectionEPSS 0.7%CVE-2024-12960MEDIUM1000 Projects Portfolio Management System MCA update_edu_details.php sql injectionEPSS 0.7%