illuminate/database: is it safe?

Short answer: Version 8.40.0 or later has a fix for every vulnerability listed here. Older versions may be affected: check the table against the exact version you run.

Composer illuminate/database has 8 known advisories in the phpwarden feed. Feed 2026.11.23.2, updated 2026-11-23.

8advisories
0critical
0on CISA KEV
0no fix recorded
CVETitleSeverityCVSSAffectedFixed in
CVE-2021-21263Query Binding Exploitationhigh7.2>=7.0.0 and <7.30.3 or >=8.0.0 and <8.22.1 or >=6.0.0 and <6.20.127.30.3, 8.22.1, 6.20.12
CVE-2020-24940Guard bypass in Eloquent models affecting Laravel illuminate database componenthigh7.5>=5.5.0 and <=5.5.44 or >=6.0.0 and <6.18.34 or >=7.0.0 and <7.23.26.18.34, 7.23.2
GHSA-x7p5-p2c9-phvgUnexpected database bindingshigh7.2<6.20.14 or >=7.0.0 and <7.30.4 or >=8.0.0 and <8.24.06.20.14, 7.30.4, 8.24.0
2014-05-20Risk of mass-assignment vulnerabilitiesunknown0.0>=4.0.0 and <4.0.99 or >=4.1.0 and <4.1.294.0.99, 4.1.29
2021-01-21Unexpected bindings in QueryBuilderunknown0.0>=6.0.0 and <6.20.14 or >=7.0.0 and <7.30.4 or >=8.0.0 and <8.24.06.20.14, 7.30.4, 8.24.0
2021-04-28SQL Server LIMIT / OFFSET SQL Injectionunknown0.0>=6.0.0 and <6.20.26 or >=7.0.0 and <7.30.5 or >=8.0.0 and <8.40.06.20.26, 8.40.0
GHSA-4mg9-vhxq-vm7jSQL Server LIMIT / OFFSET SQL Injection in laravel/framework and illuminate/databasehigh0.0>=8.0.0 and <8.40.0 or <6.20.268.40.0, 6.20.26
GHSA-cc2w-ghc5-m5qrLaravel Risk of mass-assignment vulnerabilitiesmedium0.0>=4.0.0 and <4.1.294.1.29

Quick answers

Is illuminate/database safe to use?

Version 8.40.0 or later has a fix for every vulnerability listed here. Older versions may be affected: check the table against the exact version you run.

Is illuminate/database being actively exploited?

None of its 8 known vulnerabilities are on CISA's Known Exploited Vulnerabilities list today.

How do I check my own site?

Run `phpwarden deps composer.lock`. phpwarden compares the exact version you have installed with these advisories and lists only the ones that apply, exploited ones first.

Am I affected?

Find out in one command. phpwarden checks your composer.lock against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden deps composer.lock

# or, without Composer
pipx install phpwarden   &&   phpwarden deps composer.lock

Or keep it checked automatically: GitHub Action · pre-commit hook · GitLab CI · Laravel artisan command

Install docs   How findings are ranked
A version is vulnerable when it falls inside an affected range and below the fixed version. phpwarden applies these ranges to the exact versions in your lockfile or install, so you only see what applies to you.

Add this status to your README

phpwarden status badge

Maintainer of this package? The badge updates itself whenever the feed is rebuilt (twice a day). Add ?v=1.2.3 to the image address to show the status of one exact version.

[![phpwarden](https://phpwarden.io/badge/illuminate/database.svg)](https://phpwarden.io/packages/illuminate/database)