{"url":"http://public2.vulnerablecode.io/api/packages/479737?format=json","purl":"pkg:composer/illuminate/database@6.0.2","type":"composer","namespace":"illuminate","name":"database","version":"6.0.2","qualifiers":{},"subpath":"","is_vulnerable":true,"next_non_vulnerable_version":"6.20.26","latest_non_vulnerable_version":"8.40.0","affected_by_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/218769?format=json","vulnerability_id":"VCID-2y8f-rfzd-yudn","summary":"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.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2020-24940","reference_id":"","reference_type":"","scores":[{"value":"0.00261","scoring_system":"epss","scoring_elements":"0.49763","published_at":"2026-06-11T12:55:00Z"},{"value":"0.00261","scoring_system":"epss","scoring_elements":"0.49899","published_at":"2026-06-12T12:55:00Z"},{"value":"0.00261","scoring_system":"epss","scoring_elements":"0.49918","published_at":"2026-06-13T12:55:00Z"},{"value":"0.00261","scoring_system":"epss","scoring_elements":"0.49904","published_at":"2026-06-14T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2020-24940"},{"reference_url":"https://blog.laravel.com/security-release-laravel-61834-7232","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://blog.laravel.com/security-release-laravel-61834-7232"},{"reference_url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/database/CVE-2020-24940.yaml","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/database/CVE-2020-24940.yaml"},{"reference_url":"https://github.com/illuminate/database","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/illuminate/database"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2020-24940","reference_id":"","reference_type":"","scores":[{"value":"7.5","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-24940"},{"reference_url":"https://github.com/advisories/GHSA-c7rm-w2hj-x8g3","reference_id":"GHSA-c7rm-w2hj-x8g3","reference_type":"","scores":[{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-c7rm-w2hj-x8g3"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/386417?format=json","purl":"pkg:composer/illuminate/database@6.18.34","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-77hd-k355-aybk"},{"vulnerability":"VCID-sswb-j9k9-5ydj"},{"vulnerability":"VCID-w7yr-t5fa-67ch"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/illuminate/database@6.18.34"},{"url":"http://public2.vulnerablecode.io/api/packages/386418?format=json","purl":"pkg:composer/illuminate/database@7.23.2","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-77hd-k355-aybk"},{"vulnerability":"VCID-sswb-j9k9-5ydj"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/illuminate/database@7.23.2"}],"aliases":["CVE-2020-24940","GHSA-c7rm-w2hj-x8g3"],"risk_score":4.0,"exploitability":"0.5","weighted_severity":"8.0","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-2y8f-rfzd-yudn"},{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/208246?format=json","vulnerability_id":"VCID-77hd-k355-aybk","summary":"Laravel is a web application framework. Versions of Laravel before 6.20.11, 7.30.2 and 8.22.1 contain a query binding exploitation. This same exploit applies to the illuminate/database package which is used by Laravel. If a request is crafted where a field that is normally a non-array value is an array, and that input is not validated or cast to its expected type before being passed to the query builder, an unexpected number of query bindings can be added to the query. In some situations, this will simply lead to no results being returned by the query builder; however, it is possible certain queries could be affected in a way that causes the query to return unexpected results.","references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2021-21263","reference_id":"","reference_type":"","scores":[{"value":"0.01139","scoring_system":"epss","scoring_elements":"0.78825","published_at":"2026-06-11T12:55:00Z"},{"value":"0.01139","scoring_system":"epss","scoring_elements":"0.7889","published_at":"2026-06-12T12:55:00Z"},{"value":"0.01139","scoring_system":"epss","scoring_elements":"0.78907","published_at":"2026-06-13T12:55:00Z"},{"value":"0.01139","scoring_system":"epss","scoring_elements":"0.78903","published_at":"2026-06-14T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2021-21263"},{"reference_url":"https://blog.laravel.com/security-laravel-62011-7302-8221-released","reference_id":"","reference_type":"","scores":[{"value":"7.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://blog.laravel.com/security-laravel-62011-7302-8221-released"},{"reference_url":"https://blog.laravel.com/security-laravel-62012-7303-released","reference_id":"","reference_type":"","scores":[{"value":"7.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://blog.laravel.com/security-laravel-62012-7303-released"},{"reference_url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-21263","reference_id":"","reference_type":"","scores":[],"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-21263"},{"reference_url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/database/CVE-2021-21263.yaml","reference_id":"","reference_type":"","scores":[{"value":"7.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/database/CVE-2021-21263.yaml"},{"reference_url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/CVE-2021-21263.yaml","reference_id":"","reference_type":"","scores":[{"value":"7.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/laravel/framework/CVE-2021-21263.yaml"},{"reference_url":"https://github.com/laravel/framework/pull/35865","reference_id":"","reference_type":"","scores":[{"value":"7.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/laravel/framework/pull/35865"},{"reference_url":"https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x","reference_id":"","reference_type":"","scores":[{"value":"7.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"},{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/laravel/framework/security/advisories/GHSA-3p32-j457-pg5x"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21263","reference_id":"","reference_type":"","scores":[{"value":"7.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21263"},{"reference_url":"https://packagist.org/packages/illuminate/database","reference_id":"","reference_type":"","scores":[{"value":"7.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://packagist.org/packages/illuminate/database"},{"reference_url":"https://packagist.org/packages/laravel/framework","reference_id":"","reference_type":"","scores":[{"value":"7.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://packagist.org/packages/laravel/framework"},{"reference_url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980095","reference_id":"980095","reference_type":"","scores":[],"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=980095"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/382726?format=json","purl":"pkg:composer/illuminate/database@6.20.12","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-sswb-j9k9-5ydj"},{"vulnerability":"VCID-w7yr-t5fa-67ch"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/illuminate/database@6.20.12"},{"url":"http://public2.vulnerablecode.io/api/packages/382724?format=json","purl":"pkg:composer/illuminate/database@7.30.3","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-sswb-j9k9-5ydj"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/illuminate/database@7.30.3"},{"url":"http://public2.vulnerablecode.io/api/packages/382725?format=json","purl":"pkg:composer/illuminate/database@8.22.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-sswb-j9k9-5ydj"},{"vulnerability":"VCID-w7yr-t5fa-67ch"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/illuminate/database@8.22.1"}],"aliases":["CVE-2021-21263","GHSA-3p32-j457-pg5x"],"risk_score":4.0,"exploitability":"0.5","weighted_severity":"8.0","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-77hd-k355-aybk"},{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/361198?format=json","vulnerability_id":"VCID-sswb-j9k9-5ydj","summary":"Unexpected database bindings\nThis is a follow-up to the previous security advisory (GHSA-3p32-j457-pg5x) which addresses a few additional edge cases.\n\nIf a request is crafted where a field that is normally a non-array value is an array, and that input is not validated or cast to its expected type before being passed to the query builder, an unexpected number of query bindings can be added to the query. In some situations, this will simply lead to no results being returned by the query builder; however, it is possible certain queries could be affected in a way that causes the query to return unexpected results.","references":[{"reference_url":"https://github.com/advisories/GHSA-3p32-j457-pg5x","reference_id":"","reference_type":"","scores":[{"value":"7.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-3p32-j457-pg5x"},{"reference_url":"https://packagist.org/packages/illuminate/database","reference_id":"","reference_type":"","scores":[{"value":"7.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://packagist.org/packages/illuminate/database"},{"reference_url":"https://packagist.org/packages/laravel/framework","reference_id":"","reference_type":"","scores":[{"value":"7.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://packagist.org/packages/laravel/framework"},{"reference_url":"https://github.com/advisories/GHSA-x7p5-p2c9-phvg","reference_id":"GHSA-x7p5-p2c9-phvg","reference_type":"","scores":[{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-x7p5-p2c9-phvg"},{"reference_url":"https://github.com/laravel/framework/security/advisories/GHSA-x7p5-p2c9-phvg","reference_id":"GHSA-x7p5-p2c9-phvg","reference_type":"","scores":[{"value":"7.2","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N"},{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/laravel/framework/security/advisories/GHSA-x7p5-p2c9-phvg"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/382801?format=json","purl":"pkg:composer/illuminate/database@6.20.14","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-w7yr-t5fa-67ch"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/illuminate/database@6.20.14"},{"url":"http://public2.vulnerablecode.io/api/packages/382802?format=json","purl":"pkg:composer/illuminate/database@7.30.4","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/illuminate/database@7.30.4"},{"url":"http://public2.vulnerablecode.io/api/packages/382803?format=json","purl":"pkg:composer/illuminate/database@8.24.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-w7yr-t5fa-67ch"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/illuminate/database@8.24.0"}],"aliases":["GHSA-x7p5-p2c9-phvg","GMS-2021-114","GMS-2021-116"],"risk_score":4.0,"exploitability":"0.5","weighted_severity":"8.0","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-sswb-j9k9-5ydj"},{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/361161?format=json","vulnerability_id":"VCID-w7yr-t5fa-67ch","summary":"SQL Server LIMIT / OFFSET SQL Injection in laravel/framework and illuminate/database\n### Impact\n\nThose using SQL Server with Laravel and allowing user input to be passed directly to the `limit` and `offset` functions are vulnerable to SQL injection. Other database drivers such as MySQL and Postgres are not affected by this vulnerability.\n\n### Patches\n\nThis problem has been patched on Laravel versions 6.20.26, 7.30.5, and 8.40.0.\n\n### Workarounds\n\nYou may workaround this vulnerability by ensuring that only integers are passed to the `limit` and `offset` functions, as well as the `skip` and `take` functions.","references":[{"reference_url":"https://github.com/laravel/framework","reference_id":"","reference_type":"","scores":[{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/laravel/framework"},{"reference_url":"https://packagist.org/packages/illuminate/database","reference_id":"","reference_type":"","scores":[{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://packagist.org/packages/illuminate/database"},{"reference_url":"https://packagist.org/packages/laravel/framework","reference_id":"","reference_type":"","scores":[{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://packagist.org/packages/laravel/framework"},{"reference_url":"https://github.com/advisories/GHSA-4mg9-vhxq-vm7j","reference_id":"GHSA-4mg9-vhxq-vm7j","reference_type":"","scores":[{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-4mg9-vhxq-vm7j"},{"reference_url":"https://github.com/laravel/framework/security/advisories/GHSA-4mg9-vhxq-vm7j","reference_id":"GHSA-4mg9-vhxq-vm7j","reference_type":"","scores":[{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/laravel/framework/security/advisories/GHSA-4mg9-vhxq-vm7j"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/382462?format=json","purl":"pkg:composer/illuminate/database@6.20.26","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/illuminate/database@6.20.26"},{"url":"http://public2.vulnerablecode.io/api/packages/382461?format=json","purl":"pkg:composer/illuminate/database@8.40.0","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/illuminate/database@8.40.0"}],"aliases":["GHSA-4mg9-vhxq-vm7j","GMS-2021-113","GMS-2021-115"],"risk_score":4.0,"exploitability":"0.5","weighted_severity":"8.0","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-w7yr-t5fa-67ch"}],"fixing_vulnerabilities":[],"risk_score":"4.0","resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/illuminate/database@6.0.2"}