Skip to main content
Network Thinking Solutions Logo

CVE-2021-21263

Query Binding Exploitation in Laravel

All CVEs
CVE-2021-21263Published 1/19/2021

Query Binding Exploitation in Laravel

Vendor advisory
CVSS7.2High

Overview

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.

Published
1/19/2021
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
laravel
laravel
≥ 6.0.0, < 6.20.11

Verify advisory

Source
laravel
laravel
≥ 7.0.0, < 7.30.2

Verify advisory

Source
laravel
laravel
≥ 8.0.0, < 8.22.1

Verify advisory

Source
framework
laravel
>= 6.0.0, < 6.20.11

Verify advisory

Source
framework
laravel
>= 7.0.0, < 7.30.2

Verify advisory

Source
framework
laravel
>= 8.0.0, < 8.22.1

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.2. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.