CVE-2021-43608

Doctrine DBAL 3.x before 3.1.4 allows SQL Injection

published December 9, 2021

CVSS
—
EPSS
2%
Percentile
84.2
In the wild
Unconfirmed
What it is

⚠️ A sneaky SQL injection lurks in Doctrine DBAL 3.x before 3.1.4, where unchecked inputs can sneak into your queries like an uninvited guest at a dinner party! 🍽️ Think of the QueryBuilder as a chef who prepares meals based on the orders he receives. If the waiter (your application) brings in improperly vetted orders, the chef might whip up something disastrous instead of the delicious dish you intended! This vulnerability lets attackers insert harmful SQL code into your queries, potentially allowing them to access, modify, or delete sensitive data in your database. It transforms your database from a safe haven into a buffet for malicious actors—yikes!

Put simply

Think of the QueryBuilder as a chef who prepares meals based on the orders he receives. If the waiter (your application) brings in improperly vetted orders, the chef might whip up something disastrous instead of the delicious dish you intended! The flaw arises from improperly casting offset and length inputs for the LIMIT clause, which can be exploited if developers pass user inputs directly to the QueryBuilder or similar APIs without proper sanitization.

What to do

This vulnerability lets attackers insert harmful SQL code into your queries, potentially allowing them to access, modify, or delete sensitive data in your database. It transforms your database from a safe haven into a buffet for malicious actors—yikes! Upgrade to Doctrine DBAL version 3.1.4 or later as soon as possible. Ensure that all user inputs are thoroughly validated and sanitized before being used in any queries to eliminate the risk of SQL injection. You've got this! Follow these steps to secure your application, and you'll be a security hero in no time! 🦸‍♂️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02447 · 84.2th percentile
Published
2021-12-09T19:02Z
EPSS history
Timeline
  • 09 DEC 19:02Z
    Doctrine DBAL 3.x before 3.1.4 allows SQL Injection
    cvelistv5