medium CVSS 6.8

CVE-2024-7863·PHP vulnerability

The Favicon Generator (CLOSED) WordPress plugin before 2.1 does not validate files to be uploaded and does not have CSRF checks, which could allow attackers to make logged in admin upload arbitrary files such as PHP on the server

Severity
medium
Software
PHP
Fixed in
2.1
Published
2024-09-13

Affected versions

Until: 2.1

Fixed in: 2.1

How to fix this CVE

The Favicon Generator WordPress plugin versions prior to 2.1 contain critical file upload vulnerabilities that permit authenticated administrators to upload malicious files, including executable PHP scripts, without proper validation or CSRF protection. Immediately update the Favicon Generator plugin to version 2.1 or later, and audit your WordPress uploads directory for any suspicious PHP or executable files that may have been planted. If the plugin is no longer maintained, consider removing it entirely and replacing it with an actively supported alternative.

sudo dnf update php

Defensia detects this vulnerability

WAF mitigation (if patching is not yet possible)

Add this rule to your WAF to block exploitation attempts while you schedule the patch.

Implement WAF rules to restrict file uploads to the WordPress uploads directory based on MIME type (whitelist only image formats like .jpg, .png, .gif, .ico). Block any POST requests to plugin administration endpoints that contain PHP, executable, or shell script extensions. Additionally, enforce strict Content-Type validation headers and require Content-Length limits on multipart form data to prevent oversized payloads.

How to check if you are affected

  1. Check the Favicon Generator plugin version: In your WordPress admin dashboard, navigate to Plugins and locate 'Favicon Generator (CLOSED)' to view the installed version number.
  2. Verify the plugin file location: Run `find /var/www/html -type d -name 'favicon-generator' 2>/dev/null` to confirm if the plugin is installed on your server.
  3. Review upload directory permissions: Execute `ls -la /var/www/html/wp-content/uploads/` and check for suspicious PHP files or unexpected executable permissions (777 or 755).
  4. Scan PHP error logs for exploitation attempts: Run `grep -i 'favicon-generator\|upload' /var/log/php-fpm/error.log /var/log/apache2/error.log 2>/dev/null` to detect file upload-related errors or warnings.
  5. Confirm the fix: After updating, re-check the plugin version in WordPress admin to ensure it displays version 2.1 or higher.

FAQ

What is CVE-2024-7863?

CVE-2024-7863 is a file upload vulnerability in the WordPress Favicon Generator plugin that allows authenticated administrators to bypass file validation controls and upload arbitrary files, including malicious PHP scripts, due to missing CSRF protections and insufficient input sanitization.

Is CVE-2024-7863 being actively exploited?

No, CVE-2024-7863 is not currently listed on the CISA KEV catalog and has no known public exploits; however, the vulnerability is trivial to exploit if an attacker gains admin access, making proactive patching essential.

What versions of the Favicon Generator plugin are affected by CVE-2024-7863?

All versions of the Favicon Generator plugin prior to version 2.1 are vulnerable; the plugin is now marked as closed, so no further updates will be released.

How do I check if my WordPress site is vulnerable to CVE-2024-7863?

Log into your WordPress dashboard, navigate to Plugins, and search for 'Favicon Generator (CLOSED)'; if it is installed and the version is below 2.1, your site is vulnerable. You can also run `wp plugin list --field=name,version | grep favicon` via WP-CLI if available.

Does Defensia detect CVE-2024-7863?

Yes — Defensia's CVE advisory scanner compares installed WordPress plugin versions against the NVD database. If the Favicon Generator plugin is detected on a monitored server, CVE-2024-7863 will appear in your dashboard with remediation steps.

Related PHP CVEs

CVE-2026-28289CVSS 10FreeScout is a free help desk and shared inbox built with PHP's Laravel framework. A patch bypass vulnerability for CVE-2026-27636 in FreeScout 1.8.206 and earlier allows any authenticated user with file upload permissions to achieve Remote Code Execution (RCE) on the server by uploading a malicious .htaccess file using a zero-width space character prefix to bypass the security check. The vulnerability exists in the sanitizeUploadedFileName() function in app/Http/Helper.php. The function contains a Time-of-Check to Time-of-Use (TOCTOU) flaw where the dot-prefix check occurs before sanitization removes invisible characters. This vulnerability is fixed in 1.8.207.
CVE-2024-5932CVSS 10The GiveWP – Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 3.14.1 via deserialization of untrusted input from the 'give_title' parameter. This makes it possible for unauthenticated attackers to inject a PHP Object. The additional presence of a POP chain allows attackers to execute code remotely, and to delete arbitrary files.
CVE-2026-39337CVSS 10ChurchCRM is an open-source church management system. Prior to 7.1.0, critical pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The "$dbPassword" variable is not sanitized. This vulnerability exists due to an incomplete fix for CVE-2025-62521. This vulnerability is fixed in 7.1.0.
CVE-2025-47916CVSS 10Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php. The issue lies within the themeeditor controller (file: /applications/core/modules/front/system/themeeditor.php), where a protected method named customCss can be invoked by unauthenticated users. This method passes the value of the content parameter to the Theme::makeProcessFunction() method; hence it is evaluated by the template engine. Accordingly, this can be exploited by unauthenticated attackers to inject and execute arbitrary PHP code by providing crafted template strings.
CVE-2025-46348CVSS 10YesWiki is a wiki system written in PHP. Prior to version 4.5.4, the request to commence a site backup can be performed and downloaded without authentication. The archives are created with a predictable filename, so a malicious user could create and download an archive without being authenticated. This could result in a malicious attacker making numerous requests to create archives and fill up the file system, or by downloading the archive which contains sensitive site information. This issue has been patched in version 4.5.4.

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-7863. Free for 1 server.

Get started free