CVE-2021-21263
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 1.6% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 1.6% in the next 30 days (EPSS).
- Severity: 7.2 HIGH (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 1.6% · EPSS, next 30 days
- Weakness
- CWE-74
- Record status
- Modified
Affected
- Laravel < 6.20.11
- Laravel < 7.30.2
- Laravel < 8.22.1
Attack profile CVSS 3.1 · 7.2
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Raw vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2021-21263.md and follow it. Check whether this project is affected by CVE-2021-21263. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- https://blog.laravel.com/security-laravel-62011-7302-8221-released
- https://github.com/laravel/framework/pull/35865
- https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x
- https://blog.laravel.com/security-laravel-62011-7302-8221-released
- https://github.com/laravel/framework/pull/35865
- https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x
References
- https://blog.laravel.com/security-laravel-62011-7302-8221-released
- https://github.com/laravel/framework/pull/35865
- https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x
- https://packagist.org/packages/illuminate/database
- https://packagist.org/packages/laravel/framework
- https://blog.laravel.com/security-laravel-62011-7302-8221-released
- https://github.com/laravel/framework/pull/35865
- https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x
- https://packagist.org/packages/illuminate/database
- https://packagist.org/packages/laravel/framework