First published: Mon Jan 13 2020(Updated: )
### Description Laravel versions <6.20.12, <7.30.3 & <8.22.1 contain a query binding exploitation. 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. In some situations, this will simply lead to no results being returned by the query builder; however, it is possible certain queries could be affected in a way that causes the query to return unexpected results. This vulnerability was discovered by Tim Groenevelt (tim.g@foodbyus.com). ### References - https://github.com/laravel/framework/pull/35865
Credit: security-advisories@github.com security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
composer/laravel/framework | >=6.0.0<6.20.11>=7.0.0<7.30.2>=8.0.0<8.22.1 | |
composer/illuminate/database | >=6.0.0<6.20.12>=7.0.0<7.30.3>=8.0.0<8.22.1 | |
Laravel Laravel | >=6.0.0<6.20.11 | |
Laravel Laravel | >=7.0.0<7.30.2 | |
Laravel Laravel | >=8.0.0<8.22.1 | |
composer/laravel/framework | >=7.0.0<7.30.2 | 7.30.2 |
composer/laravel/framework | >=6.0.0<6.20.11 | 6.20.11 |
composer/illuminate/database | >=6.0.0<6.20.12 | 6.20.12 |
composer/illuminate/database | >=8.0.0<8.22.1 | 8.22.1 |
composer/illuminate/database | >=7.0.0<7.30.3 | 7.30.3 |
composer/laravel/framework | >=8.0.0<8.22.1 | 8.22.1 |
>=6.0.0<6.20.11 | ||
>=7.0.0<7.30.2 | ||
>=8.0.0<8.22.1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2021-21263 is a vulnerability in Laravel web application framework versions before 6.20.11, 7.30.2, and 8.22.1, as well as the illuminate/database package.
The severity of CVE-2021-21263 is high with a CVSS score of 5.3.
CVE-2021-21263 allows for query binding exploitation in Laravel, potentially leading to unauthorized access or data manipulation.
To fix CVE-2021-21263, upgrade Laravel to version 6.20.11, 7.30.2, or 8.22.1, or update the illuminate/database package accordingly.
More information on CVE-2021-21263 can be found in the Laravel security advisories and GitHub pull request.