Vulnerability Details : CVE-2021-21263
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.
Vulnerability category: Sql Injection
Products affected by CVE-2021-21263
- cpe:2.3:a:laravel:laravel:*:*:*:*:*:*:*:*
- cpe:2.3:a:laravel:laravel:*:*:*:*:*:*:*:*
- cpe:2.3:a:laravel:laravel:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-21263
2.18%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 83 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-21263
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:N/I:P/A:N |
10.0
|
2.9
|
NIST | |
5.3
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
3.9
|
1.4
|
NIST | |
7.2
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
3.9
|
2.7
|
GitHub, Inc. |
CWE ids for CVE-2021-21263
-
The product 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.Assigned by: security-advisories@github.com (Secondary)
-
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-21263
-
https://packagist.org/packages/illuminate/database
illuminate/database - PackagistProduct;Third Party Advisory
-
https://packagist.org/packages/laravel/framework
laravel/framework - PackagistProduct;Third Party Advisory
-
https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x
Query Binding Exploitation · Advisory · laravel/framework · GitHubThird Party Advisory
-
https://blog.laravel.com/security-laravel-62011-7302-8221-released
Security: Laravel 6.20.11, 7.30.2, 8.22.1 Released - The Laravel BlogVendor Advisory
-
https://github.com/laravel/framework/pull/35865
[6.x] Limit expected bindings by taylorotwell · Pull Request #35865 · laravel/framework · GitHubPatch;Third Party Advisory
Jump to