Vulnerability · Published Jan 19, 2021 · Assigned by GitHub_M
CVE-2021-21263Query Binding Exploitation in Laravel
High 7.2
In plain English
A high-severity injection in framework from laravel. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | php-laravel-framework | 6.20.11+dfsg-1 | DEBIAN-CVE-2021-21263 |
| Debian:13 | php-laravel-framework | 6.20.11+dfsg-1 | DEBIAN-CVE-2021-21263 |
| Debian:14 | php-laravel-framework | 6.20.11+dfsg-1 | DEBIAN-CVE-2021-21263 |
| Packagist | illuminate/database | 6.20.12 | GHSA-3p32-j457-pg5x |
| Packagist | illuminate/database | 7.30.3 | GHSA-3p32-j457-pg5x |
| Packagist | illuminate/database | 8.22.1 | GHSA-3p32-j457-pg5x |
| Packagist | laravel/framework | 6.20.11 | GHSA-3p32-j457-pg5x |
| Packagist | laravel/framework | 8.22.1 | GHSA-3p32-j457-pg5x |
| Packagist | laravel/framework | 7.30.2 | GHSA-3p32-j457-pg5x |
Affected products (as reported)
Weakness: CWE-74 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
References
- https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x x_refsource_CONFIRM
- https://github.com/laravel/framework/pull/35865 x_refsource_MISC
- https://blog.laravel.com/security-laravel-62011-7302-8221-released x_refsource_MISC
- https://packagist.org/packages/laravel/framework x_refsource_MISC
- https://packagist.org/packages/illuminate/database x_refsource_MISC