Command Injection Affecting craftcms/cms package, versions >=4.0.0-RC1, <4.13.2>=5.0.0-RC1, <5.5.2


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-CRAFTCMSCMS-8536498
  • published19 Dec 2024
  • disclosed18 Dec 2024
  • creditakues-an

Introduced: 18 Dec 2024

NewCVE-2024-56145  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade craftcms/cms to version 4.13.2, 5.5.2 or higher.

Overview

craftcms/cms is a content management system.

Affected versions of this package are vulnerable to Command Injection due to the PHP register_argc_argv configuration setting. An attacker can execute arbitrary code by manipulating the command line arguments.

Note: This is only exploitable if the PHP configuration has register_argc_argv enabled.

References

CVSS Scores

version 4.0
version 3.1