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 December 19, 2024)

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

References

  • 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

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. Learn more about Dependency Scanning →

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.

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 Wed, 14 May 2025 12:16:10 +0000.