GHSA-cc2w-ghc5-m5qr Laravel Risk of mass-assignment vulnerabilities
Not scored
Published
Check this codebase for GHSA-cc2w-ghc5-m5qr and fix it if it is affected.
What it is: GHSA-cc2w-ghc5-m5qr is a vulnerability in illuminate/database, published on 15 May 2024.
Exploitation: There is no known exploitation of GHSA-cc2w-ghc5-m5qr in the wild and no public exploit code.
Affected packages and fixed versions:
- illuminate/database (Packagist): affected from 4.0.0; fixed in 4.1.29
- illuminate/database (Packagist): affected from 4.0.0; fixed in 4.1.29
Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.
Reference: https://insights.sbomify.com/GHSA-cc2w-ghc5-m5qr/ (Markdown: https://insights.sbomify.com/GHSA-cc2w-ghc5-m5qr/index.md)
- Exploited in the wild
- Not known
- Fix
- Available
What is GHSA-cc2w-ghc5-m5qr?
GHSA-cc2w-ghc5-m5qr is a vulnerability in illuminate/database, published on 15 May 2024.
Official description
Laravel 4.1.29 improves the column quoting for all database drivers. This protects your application from some mass assignment vulnerabilities when not using the fillable property on models. If you are using the fillable property on your models to protect against mass assignment, your application is not vulnerable. However, if you are using guarded and are passing a user controlled array into an "update" or "save" type function, you should upgrade to 4.1.29 immediately as your application may be at risk of mass assignment.
Which versions are affected by GHSA-cc2w-ghc5-m5qr?
2 open source packages ship an affected version, including illuminate/database.
| Package | Affected | Fixed in |
|---|---|---|
illuminate/database Packagist | From 4.0.0 | 4.1.29 |
illuminate/database Packagist | From 4.0.0 | 4.1.29 |
How do I fix GHSA-cc2w-ghc5-m5qr?
Upgrade illuminate/database to 4.1.29 or later.
Is GHSA-cc2w-ghc5-m5qr being exploited?
There is no known exploitation of GHSA-cc2w-ghc5-m5qr in the wild and no public exploit code.