
Cloud Vulnerability DB
A community-led vulnerabilities database
A regression vulnerability was identified in doctrine/orm versions 2.8.3 affecting the query builder functionality. The issue, tracked as GHSA-vjrg-wpm8-rhrw, was discovered in April 2021 and involves improper handling of case-insensitive checks in SQL query parentheses. The vulnerability affects doctrine/orm versions greater than or equal to 2.8.3 and less than 2.8.4 (GitHub Advisory).
The vulnerability stems from a regression where statements in Where-Clause were not properly wrapped in brackets due to improper handling of case-insensitive checks. Specifically, when using lowercase 'or' or 'and' operators in queries like ->andWhere("u.name = ?1 or u.username = ?1"), the query builder failed to wrap the conditions in parentheses, while it still worked correctly for uppercase 'OR' and 'AND' operators (Doctrine PR).
The improper handling of parentheses in SQL queries could potentially lead to incorrect query execution and unexpected results when using case-insensitive logical operators in where clauses. This could affect applications relying on specific query logic implementation (GitHub Advisory).
The vulnerability was patched in version 2.8.4 of doctrine/orm. Users are advised to upgrade to this version or later to resolve the issue (GitHub Advisory).
The issue was initially reported through GitHub and was quickly addressed by the Doctrine team. The development team acknowledged that the issue was missed due to insufficient test coverage, particularly noting that some test cases were not properly suffixed with 'Test' and thus were not executed during routine testing (Doctrine PR).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."