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

Most critical Laravel vulnerabilities (data from NVD and CISA KEV)
#CVECVSSPublishedTypeCISA KEV
1CVE-2018-151338.1 High2018-08-09Laravel Deserialization of Untrusted DataYes
2CVE-2021-282549.8 Critical2023-04-19Insecure deserializationNo
3CVE-2022-28709.8 Critical2022-08-17Insecure deserializationNo
4CVE-2022-28868.8 High2022-08-19Insecure deserializationNo
5CVE-2020-249407.5 High2020-09-04Improper input validationNo
6CVE-2020-249417.5 High2020-09-04Incorrect authorizationNo
7CVE-2017-168947.5 High2017-11-20Information exposureNo
8CVE-2017-93036.1 Medium2017-05-29Improper input validationNo
9CVE-2017-147755.9 Medium2017-09-28Information exposureNo
10CVE-2021-212635.3 Medium2021-01-19InjectionNo

Each Laravel CVE explained

1. CVE-2018-15133: Laravel Deserialization of Untrusted Data

  • CVSS 8.1 High
  • In CISA KEV (added 2024-01-16)
  • Published 2018-08-09
  • CWE-502
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).

NVD record for CVE-2018-15133 (opens in a new tab)

2. CVE-2021-28254: Insecure deserialization

  • CVSS 9.8 Critical
  • Published 2023-04-19
  • CWE-502
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.

NVD record for CVE-2021-28254 (opens in a new tab)

3. CVE-2022-2870: Insecure deserialization

  • CVSS 9.8 Critical
  • Published 2022-08-17
  • CWE-502
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.

NVD record for CVE-2022-2870 (opens in a new tab)

4. CVE-2022-2886: Insecure deserialization

  • CVSS 8.8 High
  • Published 2022-08-19
  • CWE-502
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.

NVD record for CVE-2022-2886 (opens in a new tab)

5. CVE-2020-24940: Improper input validation

  • CVSS 7.5 High
  • Published 2020-09-04
  • CWE-20
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)

NVD record for CVE-2020-24940 (opens in a new tab)

6. CVE-2020-24941: Incorrect authorization

  • CVSS 7.5 High
  • Published 2020-09-04
  • CWE-863
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)

NVD record for CVE-2020-24941 (opens in a new tab)

7. CVE-2017-16894: Information exposure

  • CVSS 7.5 High
  • Published 2017-11-20
  • CWE-200
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.

NVD record for CVE-2017-16894 (opens in a new tab)

8. CVE-2017-9303: Improper input validation

  • CVSS 6.1 Medium
  • Published 2017-05-29
  • CWE-20
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).

NVD record for CVE-2017-9303 (opens in a new tab)

9. CVE-2017-14775: Information exposure

  • CVSS 5.9 Medium
  • Published 2017-09-28
  • CWE-200
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).

NVD record for CVE-2017-14775 (opens in a new tab)

10. CVE-2021-21263: Injection

  • CVSS 5.3 Medium
  • Published 2021-01-19
  • CWE-74
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)

NVD record for CVE-2021-21263 (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.

Laravel release support (source: endoflife.date, checked Nov 3, 2026)
ReleaseReleasedEnd of lifeLatestStatus
Laravel 13Mar 17, 2026Mar 17, 202813.39.0Supported
Laravel 12Feb 24, 2025Feb 24, 202712.70.2Supported
Laravel 11Mar 12, 2024Mar 12, 202611.57.1End of life
Laravel 10Feb 14, 2023Feb 4, 202510.50.4End of life
Laravel 9Feb 8, 2022Feb 6, 20249.52.23End of life
Laravel 8Sep 8, 2020Jan 24, 20238.83.29End of life
Laravel 7Mar 3, 2020Mar 3, 20217.30.7End of life
Laravel 6 (LTS)Sep 3, 2019Sep 6, 20226.20.45End 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

  1. Update the core, themes, plugins and extensions as soon as security releases appear.
  2. Remove plugins, themes and modules you do not use.
  3. Give users the minimum role they need and enable two-factor authentication for administrators.
  4. Keep debug and development modes off in production.
  5. Back up files and database before every update.
  6. 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.

Few stacks run Laravel alone. These guides cover the technologies it is most often deployed with.

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

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.