NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐘
🐘 Packagist
Not in CISA KEV
MEDIUM severity

CVE-2021-21263 — framework

MEDIUMFix: laravel/framework#35865

CVE-2021-21263 is a medium-severity (CVSS 5.3) CWE-74 vulnerability in laravel/framework. A fix is available for laravel/framework — see the affected versions and patch details below.

Query Binding Exploitation

Also known asBIT-laravel-2021-21263GHSA-3p32-j457-pg5x
Published
Updated
Affected
6 pkgs
Patched
6 / 6
Exploits
None indexed
Exploitation data as of Nov 7, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
1.6%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs76th percentile — riskier than 76% of all scored CVEsHighest risk
0.64%1.13%1.63%2.13%1.1%1.6%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

6 pkgs affected
🐘laravel/framework🐘illuminate/database🐘illuminate/database🐘illuminate/database🐘laravel/framework🐘laravel/framework

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.

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 Packages

6 total 6 fixed
EcosystemPackageVulnerable rangeFix
🐘Packagistlaravel/framework≥ 8.0.0&&< 8.22.18.22.1composer require laravel/framework:^8.22.1
🐘Packagistilluminate/database≥ 7.0.0&&< 7.30.37.30.3composer require illuminate/database:^7.30.3
🐘Packagistilluminate/database≥ 8.0.0&&< 8.22.18.22.1composer require illuminate/database:^8.22.1
🐘Packagistilluminate/database≥ 6.0.0&&< 6.20.126.20.12composer require illuminate/database:^6.20.12
🐘Packagistlaravel/framework≥ 6.0.0&&< 6.20.116.20.11composer require laravel/framework:^6.20.11
🐘Packagistlaravel/framework≥ 7.0.0&&< 7.30.27.30.2composer require laravel/framework:^7.30.2

Affected Products

1 product · 3 configurations
Application
laravellaravel
≥ 8.0.0 && < 8.22.1
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for laravel/framework, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update laravel/framework to 8.22.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2021-21263 is resolved across your whole dependency graph.

  3. Workarounds

    Until you can upgrade, make sure every query built from user input uses parameterised statements or a prepared-statement API rather than string concatenation, and reduce the database account's privileges so an injected query cannot read or alter data beyond what the feature needs.

Frequently Asked Questions

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 q
O3 Security · Impact-Aware SCA

Is CVE-2021-21263 in your dependencies?

Find it across Packagist, including transitive dependencies.

CVE-2021-21263: framework — Fixed in 8.22.1