Bug 2587462 (CVE-2026-139877) - CVE-2026-139877 mysql2: mysql2 before 3.25.0 SQL Injection via Placeholder Escaping under NO_BACKSLASH_ESCAPES
Summary: CVE-2026-139877 mysql2: mysql2 before 3.25.0 SQL Injection via Placeholder Es...
Keywords:
Status: NEW
Alias: CVE-2026-139877
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2590267
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-30 16:32 UTC by OSIDB Bzimport
Modified: 2026-12-03 17:39 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-30 16:32:32 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.