CVE-2021-3129: Facade/ignition Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-4qwp-7c67-jmcc
CVSS 9.8
CWE-94
Published
Advisory Summary

CVE-2021-3129 is a CRITICAL (CVSS 9.8) remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Facade/ignition libraries in the Packagist ecosystem. The issue involves unauthenticated remote code execution in ignition. Remediation is available by upgrading affected packages to version 2.5.2, 2.4.2, 1.16.14, 1.6.15.

CVE-2021-3129 at a Glance

CVE Identifier CVE-2021-3129
GHSA Identifier GHSA-4qwp-7c67-jmcc
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Facade/ignition
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2021-3129

To remediate this vulnerability, upgrade all affected Facade/ignition dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

facade/ignition fixed: 2.5.2
Upgrade facade/ignition to 2.5.2
facade/ignition fixed: 2.4.2
Upgrade facade/ignition to 2.4.2
facade/ignition fixed: 1.16.14
Upgrade facade/ignition to 1.16.14
facade/ignition fixed: 1.6.15
Upgrade facade/ignition to 1.6.15
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for facade/ignition

How to Check if You Are Affected

To determine whether your application is affected by CVE-2021-3129, inspect your project dependencies for Facade/ignition:

inspect dependencies for facade/ignition

Analyze the terminal output to locate any version of Facade/ignition in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.5.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Facade/ignition, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2021-3129 Affected Facade/ignition Versions

4 component(s)
Fixed Versions:
2.5.22.4.21.16.141.6.15
Product / Package Ecosystem Affected Versions Fixed Version
facade/ignition
Packagist
≥ 2.5.0
< 2.5.2
2.5.2
facade/ignition
Packagist
≥ 2.0.0
< 2.4.2
2.4.2
facade/ignition
Packagist
≥ 1.7.0
< 1.16.14
1.16.14
facade/ignition
Packagist
< 1.6.15
1.6.15

References

Frequently Asked Questions

What is CVE-2021-3129?
CVE-2021-3129 is a security vulnerability in Facade/ignition involving Unauthenticated remote code execution in Ignition under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Facade/ignition versions are affected?
Affected versions include releases prior to 2.5.2, 2.4.2, 1.16.14, 1.6.15 across affected packages: facade/ignition.
What version fixes CVE-2021-3129?
Upgrading to 2.5.2, 2.4.2, 1.16.14, 1.6.15 (or the latest patched release for your respective branch) resolves the vulnerability.
Is facade/ignition affected?
Yes, facade/ignition is affected in releases prior to 2.5.2, 2.4.2, 1.16.14, 1.6.15. Upgrade your dependency to 2.5.2, 2.4.2, 1.16.14, 1.6.15 or later.
What is the CVSS score of CVE-2021-3129?
CVE-2021-3129 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H.
What CWE is associated with CVE-2021-3129?
CVE-2021-3129 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check Packagist dependencies for CVE-2021-3129?
Run the dependency tree command: 'inspect dependencies for facade/ignition'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4qwp-7c67-jmcc",
  "modified" : "2025-10-22T17:58:58Z",
  "published" : "2021-03-29T20:23:46Z",
  "aliases" : [ "CVE-2021-3129" ],
  "summary" : "Unauthenticated remote code execution in Ignition",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "facade/ignition"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.5.0"
      }, {
        "fixed" : "2.5.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "facade/ignition"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.4.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "facade/ignition"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.7.0"
      }, {
        "fixed" : "1.16.14"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "facade/ignition"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.15"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-3129"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/facade/ignition/pull/334"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/facade/ignition/commit/11ffca14abd22db779d90b12e193f8000f6d184b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/facade/ignition/CVE-2021-3129.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/facade/ignition"
  }, {
    "type" : "WEB",
    "url" : "https://www.ambionics.io/blog/laravel-debug-rce"
  }, {
    "type" : "WEB",
    "url" : "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-3129"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/162094/Ignition-2.5.1-Remote-Code-Execution.html"
  }, {
    "type" : "WEB",
    "url" : "http://packetstormsecurity.com/files/165999/Ignition-Remote-Code-Execution.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-03-23T00:13:45Z",
    "nvd_published_at" : "2021-01-12T15:15:00Z"
  }
}