CVE-2020-24940Laravel
High 7.5 No auth needed
Follow: this CVE · Laravel · Laravel We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 68
- Auth required
- No
- Published
- Sep 4, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
An issue was discovered in Laravel before 6.18.34 and 7.x before 7.23.2. Unvalidated values are saved to the database in some situations in which table names are stripped during a mass assignment.
What to do
- Apply the vendor's security update for Laravel.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | illuminate/database |
≥ 5.5.0 ≤ 5.5.44 |
no fixed version | — |
| Packagist | illuminate/database |
≥ 6.0.0 < 6.18.34 |
6.18.34 |
composer require "illuminate/database:^6.18.34" |
| Packagist | illuminate/database |
≥ 7.0.0 < 7.23.2 |
7.23.2 |
composer require "illuminate/database:^7.23.2" |
Per OSV / GitHub Advisories (GHSA-c7rm-w2hj-x8g3). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| laravel | laravel | < 6.18.34 |
| laravel | laravel | ≥ 7.0.0 < 7.23.2 |
Official sources
References
Links published by the sources. Open them with care.
- blog.laravel.com Vendor Advisory