# CVE-2020-24940: Guard bypass in Eloquent models affecting Laravel illuminate database component

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.20%, higher than 69% of CVEs (2026-12-02)
- Published: 2020-09-04T01:28:09.000Z
- Modified: 2026-06-17T03:06:10.643Z
- Also known as: GHSA-c7rm-w2hj-x8g3, BIT-LARAVEL-2020-24940
- Weaknesses: CWE-20
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- illuminate/database (Packagist): from 5.5.0 up to 5.5.44; from 6.0.0 before 6.18.34; from 7.0.0 before 7.23.2
- laravel laravel: before 6.18.34; from 7.0.0 before 7.23.2
- laravel (Bitnami): before 6.18.34; from 7.0.0 before 7.23.2

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://blog.laravel.com/security-release-laravel-61834-7232> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-24940> (advisory, web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/illuminate/database/CVE-2020-24940.yaml> (web)
- <https://github.com/illuminate/database> (package)

## Sources

- CVE List: [CVE-2020-24940](https://www.cve.org/CVERecord?id=CVE-2020-24940), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-c7rm-w2hj-x8g3](https://github.com/advisories/GHSA-c7rm-w2hj-x8g3), CC-BY-4.0, modified 2024-11-29
- NVD: [CVE-2020-24940](https://nvd.nist.gov/vuln/detail/CVE-2020-24940), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LARAVEL-2020-24940](https://osv.dev/vulnerability/BIT-LARAVEL-2020-24940), Apache-2.0, modified 2025-04-03

---

Page: https://cve.day/CVE-2020-24940 · Whole record: https://cve.day/CVE-2020-24940.json · Rebuilt by cve.day 2026-11-25T22:57:54.514Z
