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-2025-2128 Overview
CVE-2025-2128 is a time-based SQL injection vulnerability in the Cost Calculator Builder plugin for WordPress. The flaw affects all versions up to and including 3.2.67. It stems from insufficient escaping of the order_ids parameter and inadequate preparation of the underlying SQL query in Payments.php. Authenticated attackers with Subscriber-level access or higher can append arbitrary SQL to existing queries. Successful exploitation enables extraction of sensitive information from the WordPress database, including user credentials and private site data. The vulnerability is tracked under CWE-89 (Improper Neutralization of Special Elements used in an SQL Command).
Critical Impact
Authenticated subscribers can exfiltrate arbitrary database contents, including password hashes and session tokens, from WordPress sites running vulnerable Cost Calculator Builder versions.
Affected Products
- Cost Calculator Builder plugin for WordPress — all versions through 3.2.67
- WordPress sites allowing Subscriber-level registration with the plugin installed
- Sites where the plugin's payment handler is reachable by authenticated users
Discovery Timeline
- 2025-04-11 - CVE-2025-2128 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-2128
Vulnerability Analysis
The vulnerability resides in the plugin's payment processing model at includes/classes/models/Payments.php. The order_ids parameter flows from user input into a SQL query without being properly escaped or parameterized through $wpdb->prepare(). An attacker submits crafted input containing SQL syntax, which is concatenated directly into the query.
Because the exploitation path is time-based, the attacker uses functions like SLEEP() or conditional delays to infer query results one bit at a time. Blind SQL injection techniques allow enumeration of table names, column structures, and row contents without direct output. Automated tools such as sqlmap can extract entire databases through this channel.
The required privilege level is Subscriber, which is the lowest authenticated WordPress role. Many WordPress sites allow open registration, effectively lowering the barrier to exploitation. The attack does not require user interaction and is executed entirely over HTTP against the WordPress REST or AJAX endpoint invoking the vulnerable handler.
Root Cause
The root cause is the direct concatenation of the order_ids request parameter into a SQL statement without using parameterized queries. WordPress provides $wpdb->prepare() for safe query construction, but the vulnerable code bypasses this safeguard. The absence of input validation on the array of order identifiers compounds the issue.
Attack Vector
Exploitation requires an authenticated session at Subscriber role or higher. The attacker sends a POST or GET request to the plugin's payment endpoint with a malicious order_ids payload. The injected SQL executes within the database context of the WordPress site, which typically holds full read and write access to all WordPress tables including wp_users and wp_usermeta.
For technical details, see the WordPress Plugin Code Reference and the Wordfence Vulnerability Report.
Detection Methods for CVE-2025-2128
Indicators of Compromise
- Web server access logs showing requests to Cost Calculator Builder payment endpoints containing SQL keywords such as SLEEP, BENCHMARK, UNION SELECT, or IF( in the order_ids parameter
- Unusually long response times from the plugin's payment handler, indicative of time-based blind SQL injection probes
- Database query logs showing malformed or unexpectedly long queries referencing the plugin's payments table
- New or suspicious Subscriber-level accounts registered immediately before anomalous request activity
Detection Strategies
- Deploy web application firewall (WAF) rules that inspect the order_ids parameter for SQL metacharacters and time-delay functions
- Enable MySQL slow query logging and alert on queries exceeding expected baseline durations for plugin endpoints
- Correlate authentication events with subsequent high-volume requests to plugin endpoints from the same session
- Review WordPress audit logs for Subscriber accounts accessing payment-related functionality they should not interact with
Monitoring Recommendations
- Monitor HTTP response time distributions for requests to /wp-admin/admin-ajax.php and plugin REST routes
- Alert on repeated requests from a single authenticated user targeting the same endpoint with varying parameter payloads
- Track outbound database connections and query volumes per PHP worker to identify data exfiltration patterns
- Collect and centralize WordPress, PHP, and web server logs into a SIEM for cross-source correlation
How to Mitigate CVE-2025-2128
Immediate Actions Required
- Update the Cost Calculator Builder plugin to a version later than 3.2.67 as released in WordPress Changeset #3263770
- Audit WordPress user accounts and remove unknown or dormant Subscriber-level accounts
- Rotate WordPress administrator passwords and secret keys defined in wp-config.php if exploitation is suspected
- Review database contents for signs of unauthorized access, particularly to wp_users and wp_options
Patch Information
The plugin maintainers addressed the vulnerability in a release following version 3.2.67. See the Cost Calculator Builder Developer Info page for current release information and the WordPress Changeset #3263770 for the specific code fix applied to Payments.php.
Workarounds
- Disable the Cost Calculator Builder plugin until the patched version can be installed
- Restrict WordPress user registration to prevent anonymous Subscriber account creation
- Deploy a WAF rule blocking SQL injection patterns in requests to the plugin's AJAX and REST endpoints
- Remove Subscriber-level access to plugin payment functionality through role management plugins where feasible
# Example WAF rule (ModSecurity) blocking SQL metacharacters in order_ids
SecRule ARGS:order_ids "@rx (?i)(sleep\s*\(|benchmark\s*\(|union\s+select|--|;)" \
"id:1002128,phase:2,deny,status:403,msg:'CVE-2025-2128 SQLi attempt in order_ids'"
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

