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-5396: CWE-94 Improper Control of Generation of Code ('Code Injection') in Bearsthemes Bears Backup

0
Critical
VulnerabilityCVE-2025-5396cvecve-2025-5396cwe-94
Published: Thu Jul 17 2025 (07/17/2025, 01:44:54 UTC)
Source: CVE Database V5
Vendor/Project: Bearsthemes
Product: Bears Backup

Description

The Bears Backup plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 2.0.0. This is due to the bbackup_ajax_handle() function not having a capability check, nor validating user supplied input passed directly to call_user_func(). This makes it possible for unauthenticated attackers to execute code on the server which can be leverage to inject backdoors or create new administrative user accounts to name a few things. On WordPress sites running the Alone theme versions 7.8.4 and older, this can be chained with CVE-2025-5394 to install the Bears Backup plugin and achieve the same impact.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/27/2026, 15:17:23 UTC

Technical Analysis

CVE-2025-5396 is a critical remote code execution vulnerability classified under CWE-94 (Improper Control of Generation of Code) found in the Bears Backup plugin for WordPress. The root cause is the bbackup_ajax_handle() function, which does not perform capability checks nor validate user-supplied input before passing it directly to PHP's call_user_func() function. This flaw allows unauthenticated attackers to invoke arbitrary PHP functions remotely, leading to arbitrary code execution on the hosting server. The vulnerability affects all versions of Bears Backup up to and including 2.0.0. Exploitation can enable attackers to inject backdoors, create new administrative users, or perform other malicious actions with full server privileges. Additionally, on WordPress sites using the Alone theme versions 7.8.4 and older, this vulnerability can be chained with CVE-2025-5394 to first install the Bears Backup plugin and then exploit it, broadening the attack surface. The vulnerability was publicly disclosed on July 17, 2025, with a CVSS v3.1 score of 9.8, indicating critical severity. No patches or official fixes have been linked yet, and no active exploitation has been reported, but the ease of exploitation and impact make it a high-risk threat for WordPress sites using the affected plugin.

Potential Impact

The impact of CVE-2025-5396 is severe for organizations running WordPress sites with the Bears Backup plugin. Successful exploitation results in full remote code execution without requiring authentication or user interaction, allowing attackers to gain complete control over the affected web server. This can lead to unauthorized data access, data modification, defacement, installation of persistent backdoors, lateral movement within internal networks, and creation of new administrative accounts to maintain long-term access. For organizations relying on WordPress for critical business operations, this could result in significant data breaches, service disruptions, reputational damage, and regulatory penalties. The ability to chain this vulnerability with CVE-2025-5394 on sites using the Alone theme further expands the potential attack surface, increasing risk for a broader set of targets. Given the widespread use of WordPress globally, the threat could affect a large number of websites, especially those that do not regularly update plugins or monitor for vulnerabilities.

Mitigation Recommendations

To mitigate CVE-2025-5396, organizations should immediately audit their WordPress installations for the presence of the Bears Backup plugin and verify the version in use. Since no official patch links are currently available, temporary mitigations include disabling or uninstalling the Bears Backup plugin until a secure version is released. Restricting access to the WordPress admin AJAX endpoint (admin-ajax.php) via web application firewalls (WAFs) or IP whitelisting can reduce exposure to unauthenticated requests exploiting this vulnerability. Implementing strict input validation and capability checks in custom plugin code is recommended for developers to prevent similar issues. Monitoring web server logs for suspicious calls to bbackup_ajax_handle() or unexpected use of call_user_func() can help detect exploitation attempts. Additionally, organizations using the Alone theme version 7.8.4 or older should update or patch it to prevent chaining attacks. Regular backups and incident response plans should be in place to recover quickly if compromise occurs. Finally, maintain vigilance for official patches or updates from Bearsthemes and apply them promptly once available.

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-05-30T16:17:17.008Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 68785ceca83201eaace0cbd8

Added to database: 7/17/2025, 2:16:12 AM

Last enriched: 2/27/2026, 3:17:23 PM

Last updated: 3/23/2026, 5:28:45 PM

Views: 175

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