CVE-2021-3129 in facade ignition

LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.

What the vulnerability is

Ignition before 2.5.2, as used in Laravel and other products, allows unauthenticated remote attackers to execute arbitrary code because of insecure usage of file_get_contents() and file_put_contents(). This is exploitable on sites using debug mode with Laravel before 8.4.2.

Affected software: facade ignition

Scores

What LogPulse has for it

How to mitigate it

Upgrade Laravel Ignition to 2.5.2 and turn off debug mode (CVE-2021-3129)

Patch or upgrade. Ignition 2.5.2 removes the file write in execute-solution; APP_DEBUG=false in production stops Ignition from answering at all.

Applies to: Laravel apps with facade/ignition before 2.5.2 and debug mode on

  1. Check facade/ignition in composer.lock.
  2. Run composer update facade/ignition to 2.5.2 or later (or move to spatie/laravel-ignition).
  3. Set APP_DEBUG=false in the production .env and clear the config cache.
  4. Check storage/logs/laravel.log for phar:// or php://filter entries and investigate.

Sources:

Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.

We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.

Start free with LogPulse