/

CVE-2026-54416

Severity:

HIGH RISK

(7.2)

Unrestricted File Upload (CWE-434) in Pluck CMS Admin

CVE-2026-54416

Deferred

Vulnerability type

Category:

Unrestricted File Upload

CWE:

CWE-434

Impact:

Remote Code Execution

Severity:

HIGH RISK

(7.2)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Pluck CMS contains a file-upload restriction that relies on a fixed blacklist of dangerous filename extensions and does not recognize the .php8 extension. An authenticated administrator may upload a .php8 file that is stored unchanged and executed as PHP when the web server is configured to process that extension, potentially enabling remote code execution.

Affected context

The issue occurs in Pluck CMS's administrative file-management feature when uploaded filenames are checked only against a limited extension blacklist. Deployments are especially exposed when an authenticated administrator can upload files and the underlying web server or PHP integration treats .php8 files as executable PHP scripts.

Exploit preconditions

  • Attack surface: Administrative file-management upload functionality
  • Required access: Authenticated administrator privileges, or equivalent access to the upload feature
  • Trigger point: Upload and subsequent web access to a file using the omitted .php8 extension
  • Environmental condition: The web server must map .php8 files to PHP execution
  • Why exploitation is possible: The blacklist-based validation omits an executable extension, allowing the file to be stored without sufficient type or content validation

Why this happens

The vulnerability results from relying on a hard-coded extension blacklist and checking only a limited suffix of the filename. This insecure pattern fails to account for all executable extensions supported by the deployment environment, allowing a dangerous file type to bypass validation. The behavior maps to CWE-434: Unrestricted Upload of File with Dangerous Type, because the application permits an uploaded file that can be interpreted as executable server-side code.

Potential impact

  • An attacker may execute arbitrary code with the privileges of the web server process.
  • The application and its stored content could be modified or compromised.
  • Sensitive data accessible to the web process may be disclosed.
  • The server could be used for persistence, malware hosting, or lateral movement.
  • Website integrity and availability could be affected.

General mitigation guidance

Mitigation generally focuses on preventing uploaded content from being interpreted as server-side code and reducing trust in user-controlled filenames.

Common defensive patterns include:

  • Store uploads outside the web root or in a location that is not executable.
  • Use an allowlist of permitted file types rather than a blacklist of extensions.
  • Generate server-side filenames and disregard user-supplied extensions where possible.
  • Validate file signatures, content, and size in addition to filename metadata.
  • Configure the web server and runtime so upload directories cannot execute scripts.
  • Apply least-privilege permissions to the web process and administrative accounts.
  • Require strong authentication and authorization controls for file-management functions.

How teams detect issues like this

Organizations can look for this weakness through:

  • Static analysis rules identifying blacklist-only upload validation.
  • Code review checks for extension comparisons based on short filename suffixes.
  • Tests covering all executable extensions supported by the deployed web server and runtime.
  • Monitoring for newly uploaded script-like files in web-accessible directories.
  • Web-server configuration reviews that identify executable upload locations.
  • Policy enforcement requiring upload allowlists, content validation, and non-executable storage.

Automated security testing and code review tools may help identify incomplete extension validation and unsafe upload-directory configurations.

Sources

SourceLink
github.comgithub.com/pluck-cms/pluck

Frequently asked

questions

It may be exploitable through the application's administrative web interface when that interface is reachable by an attacker who has the required administrator credentials or session access.

The attacker generally needs authenticated administrator-level access, or another way to use the file-management upload function. Exploitation also depends on the server executing .php8 files as PHP.

Prevent uploaded files from being executed by storing them outside the web root or in a non-executable location, while enforcing an allowlist and validating file content.

Combine server-side allowlist validation, generated filenames, content inspection, non-executable upload storage, least privilege, and testing against the runtime's complete set of executable file types.

Find out what's already
exploitable in your codebase.