Weaknesses of type CWE-89

12,962 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-2014-125038MEDIUMIS_Projecto2 NewsBean.java sql injectionEPSS 0.7%CVE-2014-125032MEDIUMporpeeranut go-with-me add.php sql injectionEPSS 0.7%CVE-2015-10042MEDIUMDovgalyuk AIBattle procedures.php registerUser sql injectionEPSS 0.7%CVE-2024-55971CRITICALSQL Injection vulnerability in the default configuration of the Logitime WebClock application <= 5.43.0 allows an unauthenticated user to ruEPSS 0.7%CVE-2025-30365CRITICALSQL Injection in query_geracao_auto.phpEPSS 0.7%CVE-2024-38755HIGHWordPress DirectoryPress plugin <= 3.6.10 - SQL Injection vulnerabilityEPSS 0.7%CVE-2017-20150MEDIUMchallenge website sql injectionEPSS 0.7%CVE-2024-9560MEDIUMESAFENET CDG Catelogs;logindojojs delCatelogs sql injectionEPSS 0.7%CVE-2023-5826MEDIUMNetentsec NS-ASG Application Security Gateway list_onlineuser.php sql injectionEPSS 0.7%CVE-2024-6745MEDIUMcode-projects Simple Ticket Booking Login adminauthenticate.php sql injectionEPSS 0.7%CVE-2023-29598CRITICALlmxcms v1.4.1 was discovered to contain a SQL injection vulnerability via the setbook parameter at index.php.EPSS 0.7%CVE-2023-2035MEDIUMCampcodes Video Sharing Website signup.php sql injectionEPSS 0.7%CVE-2024-5774MEDIUMSourceCodester Stock Management System Login index.php sql injectionEPSS 0.7%CVE-2026-22620HIGHImproper input validation in the authentication component of Eaton's Tripp Lite series PADM firmware could allow an unauthenticated remote aEPSS 0.7%CVE-2026-73069CRITICALTwenty: SQL Injection in the `searchVector` Field Settings Allows Arbitrary PostgreSQL ExecutionEPSS 0.7%CVE-2026-78317HIGHDIAEnergie - SQL InjectionEPSS 0.7%CVE-2026-54348HIGHFroxlor: Second-Order SQL Injection via `Admins.add` `ipaddress` Parameter Allows Full Database ExfiltrationEPSS 0.7%CVE-2024-7498MEDIUMitsourcecode Airline Reservation System Admin Login Page login.php login2 sql injectionEPSS 0.7%CVE-2026-78315HIGHDIAEnergie - SQL InjectionEPSS 0.7%CVE-2024-7682MEDIUMcode-projects Job Portal rw_i_nat.php sql injectionEPSS 0.7%