CVE-2021-21263
published high CVSS 3.1 · 7.2Query Binding Exploitation in Laravel
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| laravel | — | framework>= 6.0.0, < 6.20.11 · >= 7.0.0, < 7.30.2 · >= 8.0.0, < 8.22.1 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.2 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| laravel | framework | >= 6.0.0, < 6.20.11 (affected)>= 7.0.0, < 7.30.2 (affected)>= 8.0.0, < 8.22.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-74 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
References
5Provider assertions
2GitHub_M · cna
Query Binding Exploitation in Laravel
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- ec863eddb2e8c788d06b0c7c0394529199459f01a830e70f16cd572b900979e5
- Ingested
- 23 Sep 2026, 07:52:31 UTC
- Source record
- Official CVE record