CVE-2021-21263Query Binding Exploitation in Laravel
- 7.2HighCVSS base score
- 1.6%Exploitation in 30 daysEPSS · top 23% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 28 days later
· 28 days later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
| NVDNVD · Modified | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
- EPSS (exploitation in 30 days)
- 1.6% · top 23% of all CVEs (17 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.2.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Packagistilluminate/databaseGHSA-3p32-j457-pg5x (opens in a new tab)
- Packagistlaravel/frameworkGHSA-3p32-j457-pg5x (opens in a new tab)
References
References5
- https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://github.com/laravel/framework/pull/35865 (opens in a new tab)x_refsource_MISCx_transferred
- https://blog.laravel.com/security-laravel-62011-7302-8221-released (opens in a new tab)x_refsource_MISCx_transferred
- https://packagist.org/packages/laravel/framework (opens in a new tab)x_refsource_MISCx_transferred
- https://packagist.org/packages/illuminate/database (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-0484 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-3p32-j457-pg5x (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-21263)Record last updated .