Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2025-49315

CVE-2025-49315: Persian Woocommerce SMS SQLi Vulnerability

CVE-2025-49315 is a SQL injection vulnerability in the Persian Woocommerce SMS plugin that enables attackers to execute malicious SQL queries. This article covers technical details, affected versions up to 7.0.10, and mitigation.

Published:

CVE-2025-49315 Overview

CVE-2025-49315 is a SQL Injection vulnerability affecting the PersianScript Persian Woocommerce SMS plugin for WordPress. The flaw stems from improper neutralization of special elements used in an SQL command [CWE-89]. It affects all versions of the persian-woocommerce-sms plugin from unspecified initial releases through version 7.0.10. Authenticated attackers with high privileges can inject malicious SQL statements into database queries. Successful exploitation crosses a security boundary, exposing confidential database contents and enabling limited availability impact on the WordPress site.

Critical Impact

Authenticated attackers can extract sensitive database contents, including customer order data and WordPress credentials, from affected e-commerce sites running versions up to 7.0.10.

Affected Products

  • PersianScript Persian Woocommerce SMS plugin versions up to and including 7.0.10
  • WordPress installations running the persian-woocommerce-sms plugin
  • WooCommerce stores using Persian Woocommerce SMS for order notifications

Discovery Timeline

  • 2025-06-06 - CVE-2025-49315 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-49315

Vulnerability Analysis

The vulnerability resides in the Persian Woocommerce SMS plugin, which integrates SMS notification functionality with WooCommerce order workflows. The plugin fails to properly sanitize user-supplied input before incorporating it into SQL queries. This classification falls under [CWE-89] Improper Neutralization of Special Elements used in an SQL Command.

Exploitation requires authenticated access with high privileges. The attack vector is network-based with low complexity and no user interaction. Successful exploitation results in a scope change, meaning the vulnerability impacts resources beyond the immediate security boundary. Impact includes high confidentiality loss and low availability impact, while integrity remains unaffected.

The EPSS probability for this vulnerability is 0.355% with a percentile of 27.4, indicating relatively low observed exploitation activity in the wild.

Root Cause

The root cause is missing input sanitization in database query construction. The plugin concatenates request parameters directly into SQL statements without using prepared statements or the WordPress $wpdb->prepare() API. This permits attackers to break out of query context and append arbitrary SQL syntax.

Attack Vector

An authenticated attacker with elevated privileges submits crafted input to a vulnerable plugin endpoint. The malicious payload contains SQL metacharacters that alter query semantics. The database server executes the injected statements under the WordPress database user's permissions. Attackers can extract table contents, enumerate schema information, and stage further attacks against the WooCommerce data store. Full technical details are described in the Patchstack SQL Injection Advisory.

Detection Methods for CVE-2025-49315

Indicators of Compromise

  • Unusual SQL syntax such as UNION SELECT, SLEEP(), or INFORMATION_SCHEMA references in WordPress access logs targeting plugin endpoints
  • Unexpected outbound database queries or error messages referencing wp_users, wp_options, or wp_woocommerce_order_items tables
  • Requests to persian-woocommerce-sms endpoints containing URL-encoded quotes, semicolons, or SQL comment sequences (--, #, /*)

Detection Strategies

  • Deploy a web application firewall (WAF) with signatures for SQL injection patterns targeting WordPress plugin paths
  • Enable MySQL general query logging temporarily and review queries originating from the WordPress database user for anomalous constructs
  • Monitor WordPress administrative sessions for privilege abuse combined with abnormal request volumes to plugin URLs

Monitoring Recommendations

  • Alert on HTTP requests containing SQL injection payloads directed at /wp-admin/ or /wp-content/plugins/persian-woocommerce-sms/ paths
  • Track authenticated user activity from privileged accounts and correlate with database error responses
  • Ingest WordPress and web server logs into a centralized analytics platform for retrospective hunting against known SQLi indicators

How to Mitigate CVE-2025-49315

Immediate Actions Required

  • Identify all WordPress installations running the persian-woocommerce-sms plugin at version 7.0.10 or earlier
  • Restrict administrative and high-privilege account access until a patched version is deployed
  • Enable WAF rules to block SQL injection payloads targeting the vulnerable plugin endpoints
  • Rotate WordPress administrator credentials and database passwords if compromise is suspected

Patch Information

At the time of publication, the vendor advisory referenced by Patchstack lists all versions through 7.0.10 as affected. Administrators should consult the Patchstack advisory and the plugin repository for the latest fixed release and upgrade immediately.

Workarounds

  • Deactivate and remove the persian-woocommerce-sms plugin until a patched version is available
  • Apply virtual patching through a WAF that blocks SQL metacharacters in requests to the affected plugin paths
  • Restrict high-privilege WordPress accounts using multi-factor authentication and IP allowlisting to reduce exploitation risk

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.