Unrestricted Upload of File with Dangerous Type Affecting craftcms/cms package, versions >=0.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.33% (72nd percentile)

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 ID SNYK-PHP-CRAFTCMSCMS-6674134
  • published 26 Apr 2024
  • disclosed 13 May 2022
  • credit Unknown

How to fix?

There is no fixed version for craftcms/cms.

Overview

craftcms/cms is a content management system.

Affected versions of this package are vulnerable to Unrestricted Upload of File with Dangerous Type due to the improper handling of file uploads and extensions in the Assets->Upload files screen followed by the Replace it option. An attacker can execute arbitrary code by uploading a .jpg file containing embedded PHP code, which can then be renamed to a .php extension.

References

CVSS Scores

version 3.1
Expand this section

Snyk

8.8 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High