PT-2021-14371 · Laravel · Laravel

Tim Groenevelt

·

Published

2021-01-19

·

Updated

2024-03-06

·

CVE-2021-21263

CVSS v3.1

7.2

High

VectorAV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions: Laravel versions prior to 6.20.11 Laravel versions prior to 7.30.2 Laravel versions prior to 8.22.1
Description: The issue concerns a query binding exploitation in Laravel. If a request is crafted where a field that is normally a non-array value is an array, and that input is not validated or cast to its expected type before being passed to the query builder, an unexpected number of query bindings can be added to the query. This could lead to no results being returned by the query builder or, in certain situations, cause the query to return unexpected results.
Recommendations: For versions prior to 6.20.11, update to version 6.20.11 or later to resolve the issue. For versions prior to 7.30.2, update to version 7.30.2 or later to resolve the issue. For versions prior to 8.22.1, update to version 8.22.1 or later to resolve the issue. As a temporary workaround, consider validating and casting input to its expected type before passing it to the query builder to minimize the risk of exploitation.

Exploit

Fix

SQL injection

Special Elements Injection

Weakness Enumeration

Related Identifiers

BIT-LARAVEL-2021-21263
CVE-2021-21263
GHSA-3P32-J457-PG5X

Affected Products

Laravel