Vulnerability · Published Jan 19, 2021 · Assigned by GitHub_M

CVE-2021-21263Query Binding Exploitation in Laravel

High 7.2

In plain English

A high-severity injection in framework from laravel. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.2High
Exploit odds (30 days)1.6%top 23.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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 & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12php-laravel-framework6.20.11+dfsg-1DEBIAN-CVE-2021-21263
Debian:13php-laravel-framework6.20.11+dfsg-1DEBIAN-CVE-2021-21263
Debian:14php-laravel-framework6.20.11+dfsg-1DEBIAN-CVE-2021-21263
Packagistilluminate/database6.20.12GHSA-3p32-j457-pg5x
Packagistilluminate/database7.30.3GHSA-3p32-j457-pg5x
Packagistilluminate/database8.22.1GHSA-3p32-j457-pg5x
Packagistlaravel/framework6.20.11GHSA-3p32-j457-pg5x
Packagistlaravel/framework8.22.1GHSA-3p32-j457-pg5x
Packagistlaravel/framework7.30.2GHSA-3p32-j457-pg5x

Affected products (as reported)

VendorProductVersions
laravel framework >= 6.0.0, < 6.20.11>= 7.0.0, < 7.30.2>= 8.0.0, < 8.22.1

Weakness: CWE-74 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

References