Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-3472: CWE-94 Improper Control of Generation of Code ('Code Injection') in oceanwp Ocean Extra

0
Medium
VulnerabilityCVE-2025-3472cvecve-2025-3472cwe-94
Published: Tue Apr 22 2025 (04/22/2025, 11:12:21 UTC)
Source: CVE
Vendor/Project: oceanwp
Product: Ocean Extra

Description

The Ocean Extra plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 2.4.6. This is due to the software allowing users to execute an action that does not properly validate a value before running do_shortcode. This makes it possible for unauthenticated attackers to execute arbitrary shortcodes when WooCommerce is also installed and activated.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/27/2026, 13:34:47 UTC

Technical Analysis

The vulnerability identified as CVE-2025-3472 affects the Ocean Extra plugin for WordPress, specifically all versions up to and including 2.4.6. The core issue is an improper control of code generation (CWE-94), where the plugin allows execution of arbitrary shortcodes without proper validation before invoking the WordPress function do_shortcode. This flaw enables unauthenticated attackers to inject and execute arbitrary shortcode content, which can lead to unauthorized code execution within the context of the WordPress site. The vulnerability is contingent on WooCommerce being installed and activated, as the attack vector leverages interactions between Ocean Extra and WooCommerce components. The CVSS 3.1 base score is 6.5 (medium), reflecting network attack vector (AV:N), low attack complexity (AC:L), no privileges required (PR:N), no user interaction (UI:N), unchanged scope (S:U), and limited confidentiality and integrity impacts (C:L/I:L), with no availability impact (A:N). Although no known exploits have been observed in the wild, the vulnerability poses a significant risk due to the widespread use of Ocean Extra and WooCommerce in WordPress environments. The flaw could be exploited to execute malicious shortcodes that may lead to data exposure or unauthorized modification of site content and behavior.

Potential Impact

The vulnerability allows unauthenticated attackers to execute arbitrary shortcodes, potentially leading to unauthorized disclosure of sensitive information (confidentiality impact) and unauthorized modification of site content or behavior (integrity impact). While it does not directly affect availability, the injected code could be used to facilitate further attacks such as privilege escalation or persistent backdoors. Organizations running WordPress sites with Ocean Extra and WooCommerce are at risk of compromise, especially if they do not promptly apply patches or mitigations. The impact is particularly concerning for e-commerce sites relying on WooCommerce, as attackers could manipulate product data, orders, or customer information. The ease of exploitation (no authentication or user interaction required) increases the likelihood of automated attacks targeting vulnerable sites. However, the absence of known exploits in the wild suggests that active exploitation is not yet widespread.

Mitigation Recommendations

To mitigate this vulnerability, organizations should immediately update the Ocean Extra plugin to a patched version once available. Until a patch is released, administrators should consider disabling the Ocean Extra plugin or WooCommerce if not essential. Implementing a Web Application Firewall (WAF) with rules to detect and block suspicious shortcode execution attempts can provide temporary protection. Restricting access to the WordPress admin and plugin directories via IP whitelisting or other access controls can reduce exposure. Regularly auditing installed plugins and their versions, and monitoring logs for unusual shortcode activity, will help detect exploitation attempts. Additionally, site owners should ensure that principle of least privilege is applied to WordPress user roles to limit potential damage from compromised accounts. Finally, backing up site data frequently and verifying backup integrity will aid recovery if exploitation occurs.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2025-04-09T15:08:09.560Z
Cisa Enriched
true

Threat ID: 682d984ac4522896dcbf76db

Added to database: 5/21/2025, 9:09:30 AM

Last enriched: 2/27/2026, 1:34:47 PM

Last updated: 3/22/2026, 5:19:22 PM

Views: 131

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses