high CVSS 7.2 EPSS 0.69%

CVE-2022-2439·PHP vulnerability

The Easy Digital Downloads – Simple eCommerce for Selling Digital Files plugin for WordPress is vulnerable to deserialization of untrusted input via the 'upload[file]' parameter in versions up to, and including 3.3.3. This makes it possible for authenticated administrative users to call files using a PHAR wrapper, that will deserialize and call arbitrary PHP Objects that can be used to perform a variety of malicious actions granted a POP chain is also present.

Severity
high
Software
PHP
Fixed in
3.3.4
Published

How likely is exploitation

FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.69% — higher than 49% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.

Read the two together. CVE-2022-2439 scores 7.2 on CVSS, so a successful attack would be serious — but at 0.69%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.

Affected versions

Until: 3.3.4

Fixed in: 3.3.4

How to fix this CVE

Update the Easy Digital Downloads plugin to version 3.3.4 or later, which removes unsafe deserialization of untrusted file upload parameters. Administrative users should immediately patch this plugin to prevent object injection attacks that could lead to remote code execution. Verify the update is applied and test file upload functionality to ensure normal operation.

sudo dnf update php php-common php-cli

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

POST request to wp-admin/edit.php?post_type=download&page=edd-import-file with Content-Disposition headers containing serialized PHP objects, PHAR stream wrappers (phar://), or file parameter values with base64-encoded serialized data containing __wakeup, __destruct, or __toString magic methods

WAF mitigation (if patching is not yet possible)

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

Block POST requests to the EDD import handler containing serialized PHP object patterns (strings starting with 'O:', 'C:', 'R:' followed by digit:class_name patterns) and PHAR protocol references (phar://) in the upload[file] parameter. Restrict administrative file upload functionality to trusted IP ranges.

How to check if you are affected

  1. Check installed PHP version: php -v
  2. Verify Easy Digital Downloads plugin version by running: grep -i 'version' /path/to/wordpress/wp-content/plugins/easy-digital-downloads/easy-digital-downloads.php | head -5
  3. Search WordPress logs and PHP error logs for deserialization warnings or PHAR wrapper attempts: grep -i 'phar\|unserialize\|__wakeup\|__destruct' /var/log/php*.log /var/www/html/wp-content/debug.log 2>/dev/null
  4. Confirm plugin update by verifying version string shows 3.3.4 or higher: php -r "include('/path/to/wordpress/wp-content/plugins/easy-digital-downloads/easy-digital-downloads.php'); echo 'Plugin loaded successfully';"

FAQ

What is CVE-2022-2439?

CVE-2022-2439 is a PHP object deserialization vulnerability in the Easy Digital Downloads WordPress plugin that allows authenticated administrators to instantiate arbitrary PHP objects through malicious file uploads, potentially leading to remote code execution if gadget chains are available on the system.

Is CVE-2022-2439 being actively exploited?

No, CVE-2022-2439 is not listed in the CISA Known Exploited Vulnerabilities catalog and has no publicly disclosed exploit code available.

What versions of PHP are affected by CVE-2022-2439?

The Easy Digital Downloads plugin versions up to and including 3.3.3 are affected. This impacts any WordPress installation using a vulnerable version of the plugin, regardless of the underlying PHP version.

How do I check if my server is vulnerable to CVE-2022-2439?

Run: grep -i 'Version:' /path/to/wordpress/wp-content/plugins/easy-digital-downloads/easy-digital-downloads.php to check the plugin version, or use wp-cli: wp plugin get easy-digital-downloads --field=version

Does Defensia detect CVE-2022-2439?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Easy Digital Downloads plugin is installed on a monitored WordPress server, CVE-2022-2439 will appear in your dashboard with remediation steps.

Related PHP CVEs

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.
CVE-2025-62521CVSS 10ChurchCRM is an open-source church management system. Prior to version 5.21.0, a 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 vulnerability exists in `setup/routes/setup.php` where user input from the setup form is directly concatenated into a PHP configuration template without any validation or sanitization. Any parameter in the setup form can be used to inject PHP code that gets written to `Include/Config.php`, which is then executed on every page load. This is more severe than typical authenticated RCE vulnerabilities because it requires no credentials and affects the installation process that administrators must complete. Version 5.21.0 patches the issue.
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-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-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.

References

Track CVEs across your fleet automatically

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

Get started free