# CVE-2021-21263: Query Binding Exploitation in Laravel

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.63%, higher than 76% of CVEs (2026-12-01)
- Published: 2021-01-19T19:36:51.000Z
- Modified: 2026-09-10T03:49:13.905Z
- Also known as: GHSA-3p32-j457-pg5x, BIT-LARAVEL-2021-21263
- Weaknesses: CWE-74, CWE-89
- Assigned by: 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.

(As written by CVE List.)

## Affected

- laravel framework: >= 6.0.0, < 6.20.11; >= 7.0.0, < 7.30.2; >= 8.0.0, < 8.22.1
- laravel/framework (Packagist): from 8.0.0 before 8.22.1; from 6.0.0 before 6.20.11; from 7.0.0 before 7.30.2
- illuminate/database (Packagist): from 7.0.0 before 7.30.3; from 8.0.0 before 8.22.1; from 6.0.0 before 6.20.12
- laravel laravel: from 6.0.0 before 6.20.11; from 7.0.0 before 7.30.2; from 8.0.0 before 8.22.1
- laravel (Bitnami): from 6.0.0 before 6.20.11; from 7.0.0 before 7.30.2; from 8.0.0 before 8.22.1

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x> (third-party-advisory, web)
- <https://github.com/laravel/framework/pull/35865> (patch, third-party-advisory, web)
- <https://blog.laravel.com/security-laravel-62011-7302-8221-released> (vendor-advisory, web)
- <https://packagist.org/packages/laravel/framework> (product, third-party-advisory, web)
- <https://packagist.org/packages/illuminate/database> (product, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21263> (advisory, web)
- <https://blog.laravel.com/security-laravel-62012-7303-released> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/database/CVE-2021-21263.yaml> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/CVE-2021-21263.yaml> (web)

## Sources

- CVE List: [CVE-2021-21263](https://www.cve.org/CVERecord?id=CVE-2021-21263), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-3p32-j457-pg5x](https://github.com/advisories/GHSA-3p32-j457-pg5x), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2021-21263](https://nvd.nist.gov/vuln/detail/CVE-2021-21263), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LARAVEL-2021-21263](https://osv.dev/vulnerability/BIT-LARAVEL-2021-21263), Apache-2.0, modified 2025-05-20

---

Page: https://cve.day/CVE-2021-21263 · Whole record: https://cve.day/CVE-2021-21263.json · Rebuilt by cve.day 2026-11-25T22:57:59.521Z
