Rapid7

vulnerability

WordPress Plugin: woocommerce-currency-switcher: CVE-2021-24566: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')

Severity
9
CVSS
(AV:N/AC:L/Au:S/C:C/I:C/A:C)
Published
Jul 22, 2021
Added
May 15, 2025
Modified
Apr 30, 2026

Description

The WooCommerce Currency Switcher plugin for WordPress is vulnerable to Local File Inclusion in versions up to, and including, 1.3.7 via the "woocs.php" file. This allows low-level authenticated attackers to include and execute arbitrary files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where images and other “safe” file types can be uploaded and included.

Solution

woocommerce-currency-switcher-plugin-cve-2021-24566
Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.