High

Guard bypass in Eloquent models affecting Laravel illuminate database component

  • Disclosed: 24.05.2022
  • Updated: 11.10.2026 10:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package illuminate/database >= 5.5.0, <= 5.5.44, >= 6.0.0, < 6.18.34, >= 7.0.0, < 7.23.2 6.18.34, 7.23.2

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness (CWE)
-
Platform
Composer
Package
illuminate/database
Disclosed
24.05.2022
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-c7rm-w2hj-x8g3 - CC BY 4.0

Vulnerability history: illuminate/database

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
5
First → latest
01.2021 05.2024
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 4
  • Medium 1

Disclosures per year

  1. 2021: 3
  2. 2022: 1
  3. 2023: 0
  4. 2024: 1
  5. 2025: 0
  6. 2026: 0
  1. Medium ghsa-cc2w-ghc5-m5qr >= 4.0.0, < 4.1.29 4.1.29
  2. Guard bypass in Eloquent models affecting Laravel illuminate database component this entry
    High · 7.5 CVE-2020-24940 >= 5.5.0, <= 5.5.44, >= 6.0.0, < 6.18.34, >= 7.0.0, < 7.23.2 6.18.34, 7.23.2
  3. High ghsa-4mg9-vhxq-vm7j >= 8.0.0, < 8.40.0, < 6.20.26 8.40.0, 6.20.26
  4. High · 7.2 ghsa-x7p5-p2c9-phvg < 6.20.14, >= 7.0.0, < 7.30.4, >= 8.0.0, < 8.24.0 6.20.14, 7.30.4, 8.24.0
  5. High · 7.2 CVE-2021-21263 >= 7.0.0, < 7.30.3, >= 8.0.0, < 8.22.1, >= 6.0.0, < 6.20.12 7.30.3, 8.22.1, 6.20.12

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.