AZSecureby Azguards Technolabs

Exploited vulnerabilities · Laravel

Laravel Ignition remote code execution (CVE-2021-3129)

Laravel apps left in debug mode with an old version of Ignition can be taken over remotely, no login required.

Actively exploited (CISA KEV)CVE-2021-3129CVSS 9.8 (critical)

Free website scan

Is your store serving malware right now?

Checks home, product, cart and checkout pages, blocklists, exposed files and spam shown only to Google. Takes about a minute.

How Laravel Ignition remote code execution works

Ignition is the error page Laravel shows when debug mode is on. Before version 2.5.2, facade/ignition had a feature attackers could abuse to write files and run code on the server. It only works when the app is in debug mode, which is exactly what a forgotten APP_DEBUG=true in production gives them.

CISA lists it as known exploited and notes it has been used in ransomware campaigns. Bots scan for Laravel apps with debug mode on all the time. Updating Ignition fixes this bug. Turning debug mode off removes the conditions it needs, and stops error pages leaking secrets as well.

What attackers do with it

  • Code running on your server: webshells, crypto miners, and copies of your .env and database.

Signs of a Laravel Ignition remote code execution compromise

  • Visitors seeing detailed Laravel error pages (debug mode is on).
  • Requests to /_ignition/execute-solution in your access logs.
  • PHP files in public/ you didn't deploy, or odd changes under storage/logs.

How to fix Laravel Ignition remote code execution

  1. Set APP_DEBUG=false in the production .env and run php artisan config:clear.
  2. Update facade/ignition to 2.5.2 or later, or upgrade to a supported Laravel version, which uses spatie/laravel-ignition instead.
  3. If debug mode was ever on in production, rotate everything in .env: APP_KEY, the database password and every API key.

Check if your Laravel site is exposed

This one the free scan can check directly. It looks for debug mode, the public Ignition endpoints, a downloadable .env and public log files, which are the conditions this attack depends on.

Patched late, or not sure when?

A deep scan checks your installed version against this advisory and looks for what attackers leave behind, with read-only access. An Azguards engineer signs off the report.

Common questions about Laravel Ignition remote code execution

APP_DEBUG is false. Am I covered?

Against this bug, yes, because it needs debug mode. Update Ignition anyway, and keep debug mode off in production for good: error pages in debug mode show secrets too.

Sources

Reviewed by Yash, Azguards security team. Last updated 9 Nov 2026.