Strategic Overview
- Status
- Patched in 3.6.8
- Affected Version
<= 3.6.7- CVSS
- 4.8Medium
- Weakness type
- CWE-94 · Improper Control of Generation of Code ('Code Injection')
- CVE
CVE-2022-2268
At a glance
CVE-2022-2268 is a medium-severity Improper Control of Generation of Code ('Code Injection') vulnerability in the WP All Import WordPress plugin, affecting versions <= 3.6.7. It carries a CVSS score of 4.8 (reachable over the network; low attack complexity). The issue is fixed in version 3.6.8; sites on affected versions should update now. Disclosed July 2022, reported by moresec.
Vulnerability Overview
The Import any XML or CSV File to WordPress plugin before 3.6.8 accepts all zip files and automatically extracts the zip file without validating the extracted file type. Allowing high privilege users such as admin to upload an arbitrary file like PHP, leading to RCE
Technical Analysis
The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed.
CWE-94: Improper Control of Generation of Code ('Code Injection')
Reaching this weakness in WP All Import <= 3.6.7 takes a caller who can reach the endpoint. Code injection means input from a request reaches a language construct that evaluates code, so the attacker's text is executed rather than treated as data.
The injected code runs with the web server's privileges, giving the attacker the same access to the database and filesystem as WordPress itself. For WP All Import the fix is 3.6.8: builds <= 3.6.7 are affected, anything from 3.6.8 onward is not.
Remediation
Update to version 3.6.8, or a newer patched version
How does WordSec protect against this?
The attempt arrives as an ordinary request to WP All Import: WordSec's web application firewall inspects request payloads before WordPress loads them. Classes like this one can leave something behind, so the staged malware scanner is the second half: it looks for dropped files and modified code rather than for the request that created them. None of that substitutes for the fix: WP All Import 3.6.8 closes this, and updating the plugin is the step that ends it.
- Firewall
- Scanner
- Alerts
External References
Related records
Same weakness class
Other vulnerabilities in WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets
- 9.8CVE-2015-9330: Import any XML or CSV File to WordPress SQL Injection
CVE-2015-9330 - 7.5CVE-2015-9331: Import any XML or CSV File… & PRO < 4.1.1 - Missing
CVE-2015-9331 - 7.2CVE-2025-10001: Import any XML Limited Unsafe File Upload
CVE-2025-10001 - 7.2CVE-2023-7082: Import any XML or CSV File Arbitrary File Upload
CVE-2023-7082 - 7.2CVE-2022-1565: Import any XML or CSV… Admin+ Malicious File Upload
CVE-2022-1565 - 7.2Import any XML or CSV File to WordPress <= 3.2.4 SQL Injection
- 6.5CVE-2022-2711: Import any XML or CSV File… Arbitrary File Upload
CVE-2022-2711 - 6.5CVE-2022-3418: Import any XML or CSV File… Arbitrary File Upload
CVE-2022-3418
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C