Unrestricted File UploadWeakness · CWE-434

CVE-2024-47946

HIGH · 7.2 CVSS v3.1 Published 2024-12-10
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
78/100
Remediation priority · High
Remotely reachable Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
If the attacker has access to a valid Poweruser session, remote code execution is possible because specially crafted valid PNG files with injected PHP content can be uploaded as desktop backgrounds or lock screens. After the upload, the PHP script is available in the web root. The PHP code executes once the uploaded file is accessed. This allows the execution of arbitrary PHP code and OS commands on the device as "www-data".

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

A file upload vulnerability in the desktop background/lock screen feature allows authenticated Powerusers to upload specially crafted PNG files containing injected PHP code. The application stores these files in the web root without proper validation, enabling the PHP code to execute when the file is accessed, resulting in arbitrary OS command execution as the www-data user.

MitigationImplement strict file type validation using magic byte inspection, store uploads outside the web root, and disable PHP execution in upload directories.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
High
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify if the application has a desktop background/lock screen upload feature
    Review the application documentation or navigate through the admin/user interface to locate any feature related to desktop backgrounds, lock screens, or wallpapers that accepts file uploads
    Affected if The application includes a feature that allows uploading custom background images or lock screen content
  2. Determine if Poweruser role has upload permissions for this feature
    Check the application's role-based access control (RBAC) settings or user role documentation to see if users with Poweruser privileges can access the background/lock screen upload functionality
    Affected if Poweruser accounts are permitted to upload files through this feature
  3. Inspect where uploaded background images are stored
    Locate the upload directory for the background/lock screen feature by checking the application's configuration files, file system paths referenced in the code, or by uploading a test file and examining its storage location
    Affected if Uploaded files are stored within the web root directory (public_html, www, htdocs, or similar)
  4. Verify if PHP execution is disabled in the upload directory
    Check the web server configuration (Apache .htaccess, Nginx config, or equivalent) for the upload directory to see if PHP execution is explicitly disabled, or check if the application stores files with non-PHP extensions
    Affected if PHP execution is allowed in the directory where uploaded background images are stored, or files are saved with executable extensions
  5. Check the application's installed version
    Query the application's version number through its admin panel, CLI tool, or by inspecting version files in the installation directory
    Affected if The installed version falls within any affected version range (compare against any official vulnerability advisories for this CVE)

Your environment is affected if the application has an active desktop background/lock screen upload feature accessible to Powerusers, and uploaded files are stored within the web root with PHP execution enabled in that directory.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Implement strict file type validation using magic byte inspection, store uploads outside the web root, and disable PHP execution in upload directories.

Have this fixed Scoped from the published advisory
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing4.0 h
  • Review / QA2.0 h
18.0 hours of engineering $3,200
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,120.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2024-47946 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2024-47946 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data