laravel laravel CVE-2021-21263 is a vulnerability in Laravel
Published on January 19, 2021

Query Binding Exploitation in Laravel
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.

Github Repository NVD

Vulnerability Analysis

CVE-2021-21263 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have a small impact on confidentiality and integrity, and no impact on availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
NONE
Scope:
CHANGED
Confidentiality Impact:
LOW
Integrity Impact:
LOW
Availability Impact:
NONE

Weakness Type

What is an Injection Vulnerability?

The software constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. Software has certain assumptions about what constitutes data and control respectively. It is the lack of verification of these assumptions for user-controlled input that leads to injection problems. Injection problems encompass a wide variety of issues -- all mitigated in very different ways and usually attempted in order to alter the control flow of the process. For this reason, the most effective way to discuss these weaknesses is to note the distinct features which classify them as injection weaknesses. The most important issue to note is that all injection problems share one thing in common -- i.e., they allow for the injection of control plane data into the user-controlled data plane. This means that the execution of the process may be altered by sending code in through legitimate data channels, using no other mechanism. While buffer overflows, and many other flaws, involve the use of some further issue to gain execution, injection problems need only for the data to be parsed. The most classic instantiations of this category of weakness are SQL injection and format string vulnerabilities.

CVE-2021-21263 has been classified to as an Injection vulnerability or weakness.


Products Associated with CVE-2021-21263

Want to know whenever a new CVE is published for Laravel? stack.watch will email you.

 

Affected Versions

laravel framework:

Vulnerable Packages

The following package name and versions may be associated with CVE-2021-21263

Package Manager Vulnerable Package Versions Fixed In
composer laravel/framework < 6.20.12 6.20.12
composer laravel/framework >= 7.0.0, < 7.30.3 7.30.3
composer laravel/framework >= 8.0.0, < 8.22.1 8.22.1
composer illuminate/database < 6.20.12 6.20.12
composer illuminate/database >= 7.0.0, < 7.30.3 7.30.3
composer illuminate/database >= 8.0.0, < 8.22.1 8.22.1

Exploit Probability

EPSS
1.14%
Percentile
78.34%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.