HighGHSA-c7rm-w2hj-x8g3BIT-laravel-2020-24940CVE-2020-24940
Guard bypass in Eloquent models affecting Laravel illuminate database component
Published 24 May 2022 · Updated 29 Nov 2024
Affected packages
illuminate/databaseComposer
- Affected
- >=5.5.0 <=5.5.44
- Fixed in
- No fix released
illuminate/databaseComposer
- Affected
- >=6.0.0 <6.18.34
- Fixed in
- 6.18.34
Update to the fixed version for your release line, for example:
composer require illuminate/database:^6.18.34illuminate/databaseComposer
- Affected
- >=7.0.0 <7.23.2
- Fixed in
- 7.23.2
Update to the fixed version for your release line, for example:
composer require illuminate/database:^7.23.2Details
An issue was discovered in Laravel before 6.18.34 and 7.x before 7.23.2. Unvalidated values are saved to the database component in some situations in which table names are stripped during a mass assignment.
Is GHSA-c7rm-w2hj-x8g3 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected illuminate/database, and gives you the command that fixes it.
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.