VulnarioBlogLaravel vulnerabilities
Laravel Vulnerabilities: The 10 Most Critical Laravel Security Bugs (CVEs)
Laravel vulnerabilities are security flaws in Laravel that attackers can abuse to steal data, take over a server or interrupt a service. Laravel is the most popular PHP web application framework. The National Vulnerability Database (NVD) lists 10 CVEs for Laravel, 2 of them rated critical, and none were published in the last 12 months. CISA lists 1 of them in its Known Exploited Vulnerabilities (KEV) catalog, which means attackers have used them against real systems.
This guide lists the 10 most critical Laravel security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers Laravel security basics, the current end-of-life dates and a free way to be told about the next Laravel CVE as soon as it is published.
Key takeaways
- 1 CVE is in CISA's KEV catalog, so attackers have exploited it in the wild.
- 2 Laravel CVEs are rated critical (CVSS v3), and 0 new ones were published in the last 12 months.
- The newest CVE in this guide is CVE-2021-28254, published Apr 19, 2023.
- Supported Laravel releases today (per endoflife.date): 13, 12. Releases not on the list are past their announced end of life.
- You can monitor Laravel for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.
How we ranked these Laravel CVEs
We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.
Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.
The 10 most critical Laravel CVEs at a glance
| # | CVE | CVSS | Published | Type | CISA KEV |
|---|---|---|---|---|---|
| 1 | CVE-2018-15133 | 8.1 High | 2018-08-09 | Laravel Deserialization of Untrusted Data | Yes |
| 2 | CVE-2021-28254 | 9.8 Critical | 2023-04-19 | Insecure deserialization | No |
| 3 | CVE-2022-2870 | 9.8 Critical | 2022-08-17 | Insecure deserialization | No |
| 4 | CVE-2022-2886 | 8.8 High | 2022-08-19 | Insecure deserialization | No |
| 5 | CVE-2020-24940 | 7.5 High | 2020-09-04 | Improper input validation | No |
| 6 | CVE-2020-24941 | 7.5 High | 2020-09-04 | Incorrect authorization | No |
| 7 | CVE-2017-16894 | 7.5 High | 2017-11-20 | Information exposure | No |
| 8 | CVE-2017-9303 | 6.1 Medium | 2017-05-29 | Improper input validation | No |
| 9 | CVE-2017-14775 | 5.9 Medium | 2017-09-28 | Information exposure | No |
| 10 | CVE-2021-21263 | 5.3 Medium | 2021-01-19 | Injection | No |
Each Laravel CVE explained
1. CVE-2018-15133: Laravel Deserialization of Untrusted Data
- What NVD says
- In Laravel Framework through 5.5.40 and 5.6.x through 5.6.29, remote code execution might occur as a result of an unserialize call on a potentially untrusted X-XSRF-TOKEN value. This involves the decrypt method in Illuminate/Encryption/Encrypter.php and PendingBroadcast in gadgetchains/Laravel/RCE/3/chain.php in phpggc.
- How it can be attacked
- Can be exploited remotely over the network with high attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- up to and including 5.5.40; 5.6.0 through 5.6.29
- What to do
- Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).
2. CVE-2021-28254: Insecure deserialization
- What NVD says
- A deserialization vulnerability in the destruct() function of Laravel v8.5.9 allows attackers to execute arbitrary commands.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 8.5.9
- What to do
- Apply the vendor's security update for your release and restart the service.
3. CVE-2022-2870: Insecure deserialization
- What NVD says
- A vulnerability was found in laravel 5.1 and classified as problematic. This issue affects some unknown processing. The manipulation leads to deserialization. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used. The identifier VDB-206501 was assigned to this vulnerability.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 5.1.0 through 5.1.46
- What to do
- Apply the vendor's security update for your release and restart the service.
4. CVE-2022-2886: Insecure deserialization
- What NVD says
- A vulnerability, which was classified as critical, was found in Laravel 5.1. Affected is an unknown function. The manipulation leads to deserialization. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. The identifier of this vulnerability is VDB-206688.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and user interaction. It has high impact on confidentiality, integrity and availability.
- Affected versions
- 5.1.0 through 5.1.46
- What to do
- Apply the vendor's security update for your release and restart the service.
5. CVE-2020-24940: Improper input validation
- What NVD says
- 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.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on integrity.
- Affected versions
- before 6.18.34; 7.0.0 to before 7.23.2
- What to do
- Upgrade to the fixed release for your branch (6.18.34, 7.23.2) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
6. CVE-2020-24941: Incorrect authorization
- What NVD says
- An issue was discovered in Laravel before 6.18.35 and 7.x before 7.24.0. The $guarded property is mishandled in some situations involving requests with JSON column nesting expressions.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on integrity.
- Affected versions
- before 6.18.35; 7.0.0 to before 7.24.0
- What to do
- Upgrade to the fixed release for your branch (6.18.35, 7.24.0) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
7. CVE-2017-16894: Information exposure
- What NVD says
- In Laravel framework through 5.5.21, remote attackers can obtain sensitive information (such as externally usable passwords) via a direct request for the /.env URI. NOTE: this CVE is only about Laravel framework's writeNewEnvironmentFileWith function in src/Illuminate/Foundation/Console/KeyGenerateCommand.php, which uses file_put_contents without restricting the .env permissions.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality.
- Affected versions
- up to and including 5.5.21
- What to do
- Apply the vendor's security update for your release and restart the service.
8. CVE-2017-9303: Improper input validation
- What NVD says
- Laravel 5.4.x before 5.4.22 does not properly constrain the host portion of a password-reset URL, which makes it easier for remote attackers to conduct phishing attacks by specifying an attacker-controlled host.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and user interaction. It has limited impact on confidentiality and integrity.
- Affected versions
- 5.4.0
- What to do
- Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).
9. CVE-2017-14775: Information exposure
- What NVD says
- Laravel before 5.5.10 mishandles the remember_me token verification process because DatabaseUserProvider does not have constant-time token comparison.
- How it can be attacked
- Can be exploited remotely over the network with high attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality.
- Affected versions
- up to and including 5.5.9
- What to do
- Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).
10. CVE-2021-21263: Injection
- What NVD says
- 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.
- How it can be attacked
- Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has limited impact on integrity.
- Affected versions
- 6.0.0 to before 6.20.11; 7.0.0 to before 7.30.2; 8.0.0 to before 8.22.1
- What to do
- Upgrade to the fixed release for your branch (6.20.11, 7.30.2, 8.22.1) or a later one, then restart the service.
- Advisory
- Vendor advisory or patch (opens in a new tab)
Laravel end of life: which versions still get security fixes
Running a release that still receives security fixes is the most effective way to avoid Laravel vulnerabilities. After a release reaches end of life, newly published CVEs stay unpatched. As of Nov 3, 2026 the supported Laravel releases are 13, 12.
| Release | Released | End of life | Latest | Status |
|---|---|---|---|---|
| Laravel 13 | Mar 17, 2026 | Mar 17, 2028 | 13.39.0 | Supported |
| Laravel 12 | Feb 24, 2025 | Feb 24, 2027 | 12.70.2 | Supported |
| Laravel 11 | Mar 12, 2024 | Mar 12, 2026 | 11.57.1 | End of life |
| Laravel 10 | Feb 14, 2023 | Feb 4, 2025 | 10.50.4 | End of life |
| Laravel 9 | Feb 8, 2022 | Feb 6, 2024 | 9.52.23 | End of life |
| Laravel 8 | Sep 8, 2020 | Jan 24, 2023 | 8.83.29 | End of life |
| Laravel 7 | Mar 3, 2020 | Mar 3, 2021 | 7.30.7 | End of life |
| Laravel 6 (LTS) | Sep 3, 2019 | Sep 6, 2022 | 6.20.45 | End of life |
Dates come from endoflife.date (opens in a new tab), which tracks each project's own support policy. Confirm them with the vendor before planning an upgrade.
Laravel security checklist
- Update the core, themes, plugins and extensions as soon as security releases appear.
- Remove plugins, themes and modules you do not use.
- Give users the minimum role they need and enable two-factor authentication for administrators.
- Keep debug and development modes off in production.
- Back up files and database before every update.
- Put a web application firewall and rate limiting in front of login pages.
Where you run Laravel matters as much as how you patch it. Whether your site lives on a VPS, a dedicated server or shared hosting (opens in a new tab), check who is responsible for updating Laravel: on most plans the operating system and applications are yours to patch unless the plan says otherwise.
Your stack is bigger than Laravel. A flaw anywhere in the chain can be the way in, so also review our guides to PHP vulnerabilities, MySQL vulnerabilities and Nginx vulnerabilities.
How to get alerted about new Laravel vulnerabilities
NVD received 0 new Laravel CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:
- Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
- Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
- Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.
Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose Laravel and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.
- Free: all technologies, alerts grouped at most every 12 hours.
- Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.
Related security guides
Few stacks run Laravel alone. These guides cover the technologies it is most often deployed with.
- PHP vulnerabilities: PHP is the server-side language behind WordPress and most of the web.
- MySQL vulnerabilities: MySQL is the world's most widely used open-source relational database.
- Nginx vulnerabilities: Nginx is a popular web server, reverse proxy and load balancer.
- Symfony vulnerabilities: Symfony is a PHP framework and a set of reusable components.
- Angular vulnerabilities: Angular is Google's TypeScript web application framework (AngularJS is its legacy predecessor).
- Apache Struts vulnerabilities: Apache Struts is a Java web application framework, known for the 2017 Equifax breach.
- Odoo vulnerabilities: Odoo is an open-source business application suite (ERP, CRM, e-commerce).
Frequently asked questions about Laravel vulnerabilities
What are the most critical Laravel vulnerabilities?
Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical Laravel CVEs include CVE-2018-15133 (CVSS 8.1), CVE-2021-28254 (CVSS 9.8), CVE-2022-2870 (CVSS 9.8). The guide above ranks the 10 most critical with affected versions and fixes.
Have Laravel vulnerabilities been exploited in real attacks?
Yes. CISA's Known Exploited Vulnerabilities (KEV) catalog lists 1 Laravel CVE, including CVE-2018-15133. Treat these as the highest priority to patch.
How many vulnerabilities does Laravel have?
As of Nov 3, 2026 the National Vulnerability Database lists 10 CVEs for Laravel, with 2 rated critical by CVSS v3. 0 were published in the previous twelve months.
Which Laravel versions are still supported?
As of Nov 3, 2026, endoflife.date lists these Laravel releases as supported: 13, 12. Releases that are not listed are past their announced end of life.
How can I get alerted when a new Laravel CVE is published?
Add Laravel to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose Laravel and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.
Is Laravel secure?
Laravel is as secure as its patch level. NVD published 0 new Laravel CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.
What is CVE-2018-15133?
CVE-2018-15133 is a high Laravel vulnerability with a CVSS score of 8.1, published Aug 9, 2018. In Laravel Framework through 5.5.40 and 5.6.x through 5.6.29, remote code execution might occur as a result of an unserialize call on a potentially untrusted X-XSRF-TOKEN value.
Sources
- National Vulnerability Database (NVD) (opens in a new tab), CVE records, CVSS scores and CPE counts, checked Nov 3, 2026.
- CISA Known Exploited Vulnerabilities (KEV) catalog (opens in a new tab), checked Nov 3, 2026.
- endoflife.date: Laravel (opens in a new tab), release and support dates, checked Nov 3, 2026.
This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.