CVE-2021-21263
mediumpriority · track · 22EPSS 0.016 · 76 %ileEUUSEPSS · scored 2026-10-27
Laravel is a web application framework. Versions of Laravel before 6.20.11, 7.30.2 and 8.22.1 contain a query binding exploitation. This same exploit applies to the illuminate/database package which is used by 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. 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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 4.9–7.2
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (15)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-3p32-j457-pg5xQuery Binding Exploitation2021-01-19ghsa · osvUS
### 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
- BIT-laravel-2021-21263Query Binding Exploitation in Laravel2024-03-06vendor · osvUS
Laravel is a web application framework. Versions of Laravel before 6.20.11, 7.30.2 and 8.22.1 contain a query binding exploitation. This same exploit applies to the illuminate/database package which is used by 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. 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.
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (15)
External citations — patches, advisories, analysis.
- https://blog.laravel.com/security-laravel-62011-7302-8221-releasedcnnvd
- https://github.com/laravel/framework/pull/35865cnnvd
- https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5xcnnvd
- https://packagist.org/packages/illuminate/databasecnnvd
- https://packagist.org/packages/laravel/frameworkcnnvd
- https://blog.laravel.com/security-laravel-62011-7302-8221-releasedenisa_euvd
- https://github.com/laravel/framework/pull/35865enisa_euvd
- https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5xenisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan