Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-21263

HIGH 7.2EPSS 77%

Query Binding Exploitation in Laravel

Also known as BIT-laravel-2021-21263, GHSA-3p32-j457-pg5x

Mitigation

  • Upgrade laravel/framework to one of 8.22.1, 6.20.11, 7.30.2 (or later in the same release line).
  • Upgrade illuminate/database to one of 7.30.3, 8.22.1, 6.20.12 (or later in the same release line).

Who should check

  • Projects that depend on Packagist package laravel/framework (>= 8.0.0, < 8.22.1)
  • Projects that depend on Packagist package illuminate/database (>= 7.0.0, < 7.30.3)
  • Anyone running laravel framework >= 6.0.0, < 6.20.11; >= 7.0.0, < 7.30.2; >= 8.0.0, < 8.22.1

Vulnerability facts

Affected
laravel/framework >= 8.0.0, < 8.22.1; illuminate/database >= 7.0.0, < 7.30.3
Fixed in
8.22.1, 6.20.11, 7.30.2, 7.30.3, 6.20.12
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.2 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: Low
  • Integrity impact: Low
  • Availability impact: None
EPSS
1.63% chance of exploitation in 30 days (percentile 77, 2026-11-26)
CWE
CWE-74
Published
Modified

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 and fixed versions

Package / productAffectedFixedSource
Packagist laravel/framework>= 8.0.0, < 8.22.18.22.1, 6.20.11, 7.30.2osv
Packagist illuminate/database>= 7.0.0, < 7.30.37.30.3, 8.22.1, 6.20.12osv
laravel framework>= 6.0.0, < 6.20.11; >= 7.0.0, < 7.30.2; >= 8.0.0, < 8.22.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2021-21263. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-21263.md
Affected: laravel/framework >= 8.0.0, < 8.22.1; illuminate/database >= 7.0.0, < 7.30.3
Fixed in: 8.22.1, 6.20.11, 7.30.2, 7.30.3, 6.20.12

Steps:
1. Search this machine and project for laravel/framework (Packagist), illuminate/database (Packagist), laravel framework: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2021-21263 being exploited?

There is no confirmed exploitation: CVE-2021-21263 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.63% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2021-21263?

High: CVSS 7.2 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2021-21263?

laravel/framework >= 8.0.0, < 8.22.1; illuminate/database >= 7.0.0, < 7.30.3.

Is there a fix for CVE-2021-21263?

Yes. Fixed in 8.22.1, 6.20.11, 7.30.2, 7.30.3, 6.20.12. Upgrade laravel/framework to one of 8.22.1, 6.20.11, 7.30.2 (or later in the same release line). Upgrade illuminate/database to one of 7.30.3, 8.22.1, 6.20.12 (or later in the same release line).

How do I check if I'm affected by CVE-2021-21263?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors