CVE-2021-21263
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 6.20.11+dfsg-1 |
| sid | Fixed | 6.20.11+dfsg-1 |
| forky | Fixed | 6.20.11+dfsg-1 |
| bullseye | Fixed | 6.20.11+dfsg-1 |
| bookworm | Fixed | 6.20.11+dfsg-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Packagist | laravel/framework | >=8.0.0,<8.22.1 | 8.22.1 |
| Packagist | illuminate/database | >=7.0.0,<7.30.3 | 7.30.3 |
| Packagist | illuminate/database | >=8.0.0,<8.22.1 | 8.22.1 |
| Packagist | illuminate/database | >=6.0.0,<6.20.12 | 6.20.12 |
| Packagist | laravel/framework | >=6.0.0,<6.20.11 | 6.20.11 |
| Packagist | laravel/framework | >=7.0.0,<7.30.2 | 7.30.2 |
References
- https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x
- https://nvd.nist.gov/vuln/detail/CVE-2021-21263
- https://github.com/laravel/framework/pull/35865
- https://blog.laravel.com/security-laravel-62011-7302-8221-released
- https://blog.laravel.com/security-laravel-62012-7303-released
- https://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/database/CVE-2021-21263.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/CVE-2021-21263.yaml
- https://packagist.org/packages/illuminate/database
- https://packagist.org/packages/laravel/framework
- https://security-tracker.debian.org/tracker/CVE-2021-21263
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.