EventsSecuring Finance in the Age of AI · Secure.com X ZIG Finance · London, 12 NovRegister now

CVE-2026-139877

mysql2 before 3.25.0 SQL Injection via Placeholder Escaping under NO_BACKSLASH_ESCAPES

9.1 CRITICALEPSS 0.78%Not in KEVNVD: Received

Overview

mysql2 before 3.25.0 contains an sql injection vulnerability in Connection.format() and Connection.escape() because quotes are always backslash-escaped regardless of session SQL mode. When NO_BACKSLASH_ESCAPES is enabled, attackers can pass crafted values through ? placeholders in connection.query() to close string literals and append SQL, disclosing or modifying data.

Severity

ScoreSeverityVersionTechnologies Affected
9.1CRITICAL4.0VulnCheck (CNA)Sidorares Mysql2
7.4HIGH3.1VulnCheck (CNA)

Details

CVE ID
CVE-2026-139877
Status
Received
Assigner (CNA)
VulnCheck
Published
Nov 30, 2026
Last modified
Nov 30, 2026, 5:18 PM UTC
Weaknesses
  • CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Affected Products

As published by the CNA in the CVE record.

sidoraresmysql21 version range
  • before 3.25.0

References