Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. craftcms/cms
  4. ›
  5. CVE-2024-56145

CVE-2024-56145: Craft CMS has potential RCE when PHP `register_argc_argv` config setting is enabled

December 18, 2024 (updated October 22, 2025)

You are affected if your php.ini configuration has register_argc_argv enabled.

References

  • github.com/Chocapikk/CVE-2024-56145
  • github.com/advisories/GHSA-2p6p-9rc9-62j9
  • github.com/craftcms/cms
  • github.com/craftcms/cms/commit/82e893fb794d30563da296bca31379c0df0079b3
  • github.com/craftcms/cms/security/advisories/GHSA-2p6p-9rc9-62j9
  • nvd.nist.gov/vuln/detail/CVE-2024-56145
  • www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-56145

Code Behaviors & Features

Detect and mitigate CVE-2024-56145 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.0.0 before 3.9.14, all versions starting from 4.0.0-RC1 before 4.13.2, all versions starting from 5.0.0-RC1 before 5.5.2

Fixed versions

  • 5.5.2
  • 4.13.2
  • 3.9.14

Solution

Upgrade to versions 3.9.14, 4.13.2, 5.5.2 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

packagist/craftcms/cms/CVE-2024-56145.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:22 +0000.