Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-103367 Overview
CVE-2026-103367 is a Local File Inclusion (LFI) vulnerability in the ShopMagic – email automation for WordPress plugin, affecting all versions up to and including 4.9.0. Unauthenticated attackers can include and execute arbitrary .php files on the server by injecting a payload into the billing_address.first_name parameter during guest checkout. The plugin's built-in "New Order email with social media profile links" recipe processes the {{ customer.first_name }} placeholder by default, making stock installations exploitable without an account, cookie, or nonce. Successful exploitation enables access control bypass, sensitive data disclosure, and arbitrary PHP code execution when attacker-controlled .php files are reachable on the filesystem [CWE-98].
Critical Impact
Unauthenticated remote attackers can trigger PHP file inclusion and execution on default ShopMagic installations by submitting a crafted guest checkout, enabling full server compromise under common conditions.
Affected Products
- ShopMagic – email automation for WordPress (plugin slug: shopmagic-for-woocommerce)
- All versions through 4.9.0
- Fixed in version 4.9.1
Discovery Timeline
- 2026-10-14 - CVE-2026-103367 published to NVD
- 2026-10-14 - Last updated in NVD database
Technical Details for CVE-2026-103367
Vulnerability Analysis
The vulnerability is a Local File Inclusion flaw in the ShopMagic workflow placeholder subsystem. When a WooCommerce guest checkout is submitted, the GuestFactory component creates a customer object populated with the raw billing_address.first_name value from the request. Any published recipe referencing the {{ customer.first_name }} placeholder then feeds that value into the PlaceholderProcessor, which delegates rendering to the SimplePhpRenderer. The renderer treats the resolved value as a filesystem path for PHP template inclusion, causing attacker-controlled input to be interpreted as a .php file reference. The default "New Order email with social media profile links" recipe ships enabled and uses the vulnerable placeholder, so no administrator action is required for exploitability.
Root Cause
The root cause is an improper control of filename for include/require statement in PHP program [CWE-98]. The SimplePhpRenderer includes files based on unsanitized placeholder content derived from HTTP request fields. User input flows from the checkout form through GuestFactory and CustomerFirstName into PlaceholderProcessor without validation, type-checking, or path confinement before reaching the PHP include logic. See the ShopMagic SimplePhpRenderer Source Code and ShopMagic PlaceholderProcessor Source Code for the vulnerable code paths.
Attack Vector
The attack is network-based and unauthenticated. An attacker submits a WooCommerce guest checkout and sets the billing first name to a payload that resolves to a .php file path on the server. When the triggered workflow renders the order confirmation email, the server-side renderer includes and executes the referenced PHP file. In environments where an attacker can plant a .php file (for example through a separate upload functionality or log-poisoning vector), this yields remote code execution. The attack complexity is rated high because exploitation depends on a reachable .php file on disk.
// No verified public exploit code is available. See the
// Wordfence Vulnerability Report and the referenced source
// code links for the vulnerable call chain:
// GuestFactory -> CustomerFirstName -> PlaceholderProcessor -> SimplePhpRenderer
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-103367
Indicators of Compromise
- Guest checkout orders where the billing first name field contains path traversal sequences such as ../, absolute paths, or references ending in .php.
- Unexpected PHP include/require warnings or open_basedir violations in web server and PHP error logs correlated with WooCommerce checkout requests.
- Outbound network connections, new WordPress users, or modified theme/plugin files immediately after order confirmation email dispatch.
- ShopMagic workflow logs showing placeholder resolution to filesystem paths rather than normal name strings.
Detection Strategies
- Inspect WooCommerce order metadata for anomalous billing_first_name values and alert on non-alphabetic characters, slashes, or .php substrings.
- Deploy web application firewall rules that block requests to /?wc-ajax=checkout or /checkout/ containing path traversal patterns in billing fields.
- Monitor the WordPress uploads directory and plugin directories for newly created .php files, especially those with short names or random strings.
Monitoring Recommendations
- Enable PHP log_errors with error_reporting = E_ALL and ship logs to a centralized SIEM for correlation with HTTP checkout events.
- Track ShopMagic version strings across managed WordPress instances and alert on any host still running 4.9.0 or earlier.
- Baseline normal workflow email volume and alert on failed email renders, which may indicate exploitation attempts referencing missing files.
How to Mitigate CVE-2026-103367
Immediate Actions Required
- Update the ShopMagic – email automation for WordPress plugin to version 4.9.1 or later on all affected sites.
- Audit active ShopMagic recipes and temporarily disable any workflow referencing the {{ customer.first_name }} placeholder until patched.
- Review recent guest checkout orders for suspicious billing first name values and investigate associated web shells or new files on disk.
- Restrict file write permissions in the WordPress document root and wp-content/uploads to prevent attackers from staging .php payloads.
Patch Information
The vendor addressed the issue in ShopMagic Plugin Version 4.9.1. Administrators should upgrade immediately through the WordPress plugin manager or by deploying the updated plugin package. Additional analysis is documented in the Wordfence Vulnerability Report.
Workarounds
- Deactivate the ShopMagic plugin entirely until the 4.9.1 update can be applied.
- Configure open_basedir and disable_functions in PHP to limit the filesystem scope of includes and reduce exploitation impact.
- Apply WAF signatures that reject checkout submissions containing path separators or the string .php in name fields.
# Example WP-CLI commands to inventory and update ShopMagic
wp plugin get shopmagic-for-woocommerce --field=version
wp plugin update shopmagic-for-woocommerce --version=4.9.1
wp plugin deactivate shopmagic-for-woocommerce # if patch cannot be applied immediately
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

