CVE-2021-21263Query Binding Exploitation
A high-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 1.6% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 1.6%
- percentile 77%
- Fix
- Named by a source
- CVE published 19 Jan 2021
Reference
None of the "Needs attention" rules apply right now.
EPSS 1.6% (+2) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- illuminate/database (Packagist): upgrade to 7.30.3 / 8.22.1 / 6.20.12 or later on your release line.
- laravel/framework (Packagist): upgrade to 8.22.1 / 6.20.11 / 7.30.2 or later on your release line.
- Commit / pull request: https://github.com/laravel/framework/pull/35865
Who should check
illuminate/database (Packagist) pkg:composer/illuminate/database
- Affected>= 7.0.0, < 7.30.3Fixed in7.30.3OSV (GHSA-3p32-j457-pg5x)
- Affected>= 8.0.0, < 8.22.1Fixed in8.22.1OSV (GHSA-3p32-j457-pg5x)
- Affected>= 6.0.0, < 6.20.12Fixed in6.20.12OSV (GHSA-3p32-j457-pg5x)
laravel/framework (Packagist) pkg:composer/laravel/framework
- Affected>= 8.0.0, < 8.22.1Fixed in8.22.1OSV (GHSA-3p32-j457-pg5x)
- Affected>= 6.0.0, < 6.20.11Fixed in6.20.11OSV (GHSA-3p32-j457-pg5x)
- Affected>= 7.0.0, < 7.30.2Fixed in7.30.2OSV (GHSA-3p32-j457-pg5x)
Confirmed facts
- CVSS
- 7.2 HIGH (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-3p32-j457-pg5x)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-74, CWE-89
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)### Description Laravel versions <6.20.12, <7.30.3 & <8.22.1 contain a query binding exploitation. 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. This vulnerability was discovered by Tim Groenevelt ([email protected]). ### References - https://github.com/laravel/framework/pull/35865
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- otherhttps://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-21263
- commit / pull requesthttps://github.com/laravel/framework/pull/35865
- otherhttps://blog.laravel.com/security-laravel-62011-7302-8221-released
- otherhttps://blog.laravel.com/security-laravel-62012-7303-released
- otherhttps://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/database/CVE-2021-21263.yaml
- otherhttps://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/CVE-2021-21263.yaml
- otherhttps://packagist.org/packages/illuminate/database
- otherhttps://packagist.org/packages/laravel/framework
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-3p32-j457-pg5x (GitHub Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 31 min ago · osv 31 min ago · nvd 2 h ago · epss 31 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-laravel-2021-21263, GHSA-3p32-j457-pg5x