Input validation error in Laravel Framework - CVE-2021-21263

 

Input validation error in Laravel Framework - CVE-2021-21263

Published: January 15, 2021 / Updated: June 1, 2026


Vulnerability identifier: #VU133116
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-21263
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause queries to return unexpected results.

The vulnerability exists due to improper input validation in the query builder when processing crafted request input that supplies an array where a scalar value is expected. A remote attacker can send specially crafted input to cause queries to return unexpected results.

Exploitation requires application code to pass unvalidated or uncast input to the query builder.


Affected software

Laravel Framework

How to mitigate CVE-2021-21263

Install security update from vendor's website.

Laravel Framework - addressed in versions 6.20.12, 7.30.3, 8.22.1

External References

Related Security Bulletins