CVE-2024-12313
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe Compare Products for WooCommerce plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 3.2.1 via deserialization of untrusted input from the 'woo_compare_list' cookie. This makes it possible for unauthenticated attackers to inject a PHP Object. No known POP chain is present in the vulnerable software. If a POP chain is present via an additional plugin or theme installed on the target system, it could allow the attacker to delete arbitrary files, retrieve sensitive data, or execute code.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe Compare Products for WooCommerce plugin for WordPress is vulnerable to PHP Object Injection via unsafe deserialization of the 'woo_compare_list' cookie. Unauthenticated attackers can inject arbitrary PHP objects. While no POP chain exists in the plugin itself, additional plugins or themes on the target system could provide one, potentially allowing arbitrary file deletion, data exfiltration, or code execution.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Verify plugin installationCheck if Compare Products for WooCommerce plugin is installed in WordPress: navigate to Plugins > Installed Plugins, or inspect /wp-content/plugins/ directory for a folder containing 'compare-products-for-woocommerce' or similar naming. Query database: SELECT option_value FROM wp_options WHERE option_name = 'active_plugins';Affected if Plugin appears in the active plugins list or filesystem
-
Identify installed plugin versionIn WordPress admin, go to Plugins > Installed Plugins and find the Compare Products for WooCommerce entry; the version number is displayed below the plugin name. Alternatively, check the plugin's main PHP file header for 'Version:' comment, or read /wp-content/plugins/[plugin-folder]/readme.txt for the stable tag.Affected if Version is at or below any unpatched release (compare to vendor advisory once patched version is published)
-
Confirm cookie processing is activeMonitor HTTP requests to the site and inspect cookies. Check if a cookie named 'woo_compare_list' is present and contains serialized PHP data (look for patterns like 'O:number' or 'a:number' indicating PHP serialization). Alternatively, inspect the plugin code for unserialize() calls on $_COOKIE['woo_compare_list'].Affected if The woo_compare_list cookie is present and the plugin deserializes its value without validation
-
Check for POP chain sourcesAudit installed plugins and themes for known POP chain gadgets: look for __destruct or __wakeup methods in any active plugin/theme code under /wp-content/plugins/ and /wp-content/themes/. Cross-reference with known vulnerable plugins (e.g., WooCommerce, popular page builders, or any plugin with file operations or SQL queries in magic methods).Affected if Additional plugins with exploitable unserialize gadgets are present on the system
The environment is affected if the Compare Products for WooCommerce plugin is installed, processes the woo_compare_list cookie via unserialize, and a POP chain gadget exists elsewhere on the WordPress installation.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpdate the plugin to a patched version once available. If no patch is imminent, disable the plugin or implement input validation to prevent deserialization of untrusted cookie data. Consider using JSON encoding instead of PHP serialization for the compare list functionality.
Latest version newer than 3.2.1 from WordPress plugin repository
- Check the current version of the Compare Products for WooCommerce plugin installed on your WordPress site
- Navigate to Plugins > Installed Plugins in the WordPress admin dashboard
- Locate the Compare Products for WooCommerce plugin and note the current version number
- Visit the WordPress plugin repository page for Compare Products for WooCommerce to check if a newer version is available
- If a version newer than 3.2.1 is available, update the plugin to the latest version
- After updating, verify the plugin is functioning correctly on your WooCommerce store
- If no update is available, consider temporarily disabling the plugin until a security patch is released
- Review other installed plugins and themes for any known POP chain vulnerabilities that could be chained with this deserialization issue
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,224.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2024-12313 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2024-12313 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data