Skip to main content
Vulnerability Database/CVE-2026-104736

CVE-2026-104736: LearnPress WordPress Plugin RCE Vulnerability

CVE-2026-104736 is a PHP Object Injection flaw in the LearnPress WordPress plugin that enables unauthenticated attackers to execute arbitrary code. This article covers the technical details, affected versions, and mitigation steps.

Published:

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-2026-104736 Overview

CVE-2026-104736 is a PHP Object Injection vulnerability in the LearnPress plugin for WordPress, affecting all versions up to and including 4.4.10. The flaw resides in the checkout AJAX action, where the checkout-email request parameter is deserialized from untrusted input. LearnPress stores the attacker-controlled value in its session table and later passes it to LP_Helper::maybe_unserialize() → unserialize() without an allowed_classes restriction. Unauthenticated attackers can inject arbitrary PHP objects, enabling property-oriented programming (POP) chain exploitation when a suitable gadget is present in the WordPress installation.

Critical Impact

Unauthenticated attackers can trigger PHP Object Injection against any WordPress site running vulnerable LearnPress versions, potentially leading to remote code execution, file deletion, or data exfiltration when a POP gadget chain is available.

Affected Products

  • LearnPress plugin for WordPress — all versions up to and including 4.4.10
  • WordPress sites exposing the LearnPress checkout AJAX endpoint
  • Deployments where additional plugins or themes provide usable POP gadget chains

Discovery Timeline

  • 2026-10-17 - CVE-2026-104736 published to the National Vulnerability Database
  • 2026-10-19 - CVE-2026-104736 last updated in NVD

Technical Details for CVE-2026-104736

Vulnerability Analysis

The vulnerability is a classic insecure deserialization issue classified under [CWE-502]. During the LearnPress checkout flow, user input from the checkout-email POST parameter is routed through sanitize_text_field(). This function strips tags and control characters but preserves PHP serialized object syntax such as O:8:"stdClass":0:{}. The sanitized string is written to the LearnPress session table as part of the checkout data.

On subsequent requests, LP_Session_Handler::get() retrieves the session payload and hands it to LP_Helper::maybe_unserialize(). That helper calls PHP's native unserialize() without the ['allowed_classes' => false] option, allowing instantiation of arbitrary PHP classes. If any loaded plugin, theme, or WordPress core class defines magic methods such as __wakeup(), __destruct(), or __toString() with exploitable side effects, an attacker can chain them into file writes, file deletion, SQL injection, or remote code execution.

Root Cause

The root cause is the use of sanitize_text_field() as the only input filter before storing untrusted data that is later deserialized. Sanitization is not validation. The function does not reject or escape serialized object literals, and the downstream maybe_unserialize() call lacks an allowed_classes restriction that would prevent object instantiation.

Attack Vector

An unauthenticated attacker submits a crafted checkout-email value containing a serialized PHP object to the LearnPress checkout AJAX endpoint. LearnPress stores the payload in its session table keyed to the attacker's session cookie. On any follow-up request where LP_Session_Handler::get() loads that session, the payload is passed to unserialize(), instantiating the attacker's object graph and triggering any magic methods along the chain.

See the Wordfence Vulnerability Report and the vulnerable code paths in class-lp-checkout.php (line 377) and class-lp-session-handler.php (line 373) for the full sink path.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-104736

Indicators of Compromise

  • POST requests to WordPress admin-ajax.php or the LearnPress checkout endpoint containing checkout-email values that begin with O:, a:, or C: followed by a digit and a colon — characteristic markers of PHP serialized objects.
  • Entries in the wp_learnpress_sessions (or equivalent) table containing serialized object syntax within the session_value column.
  • Unexpected PHP errors referencing __wakeup, __destruct, or unserialize() in error_log or PHP-FPM logs correlated with checkout traffic.
  • New or modified PHP files in wp-content/uploads/ created shortly after suspicious checkout requests.

Detection Strategies

  • Inspect web server logs for unauthenticated POSTs to the LearnPress checkout AJAX action with URL-decoded body content matching the regex checkout-email=[^&]*O%3A\d+%3A or checkout-email=.*O:\d+:.
  • Audit the LearnPress session table for rows whose stored values deserialize into non-scalar types.
  • Correlate checkout AJAX requests with subsequent anomalous PHP execution, file writes, or outbound connections from the web server process.

Monitoring Recommendations

  • Enable WordPress plugin and database auditing to capture writes to the LearnPress session table.
  • Alert on new PHP files written under wp-content/ by the web server user following checkout traffic bursts.
  • Forward web server, PHP, and database logs to a central analytics platform to retain and query request bodies for serialized payload patterns.

How to Mitigate CVE-2026-104736

Immediate Actions Required

  • Update LearnPress to the patched release documented in the LearnPress Change Log Entry (any version after 4.4.10).
  • If immediate patching is not possible, disable the LearnPress plugin on internet-facing sites until the update is applied.
  • Purge all rows from the LearnPress session table to remove any pre-staged malicious payloads.
  • Review wp-content/uploads/ and plugin directories for unexpected PHP files or modified timestamps.

Patch Information

The vendor addressed the issue in the LearnPress release following 4.4.10. The fix adds safe deserialization handling in the session code path. Review the vendor changeset and the Wordfence Vulnerability Report for exact version guidance and backport status.

Workarounds

  • Deploy a Web Application Firewall (WAF) rule that blocks POST bodies to admin-ajax.php containing LearnPress checkout actions with values matching PHP serialized object patterns such as O:\d+:".
  • Restrict access to the WordPress checkout endpoints by IP allowlist where business requirements allow.
  • As a code-level workaround, override LP_Helper::maybe_unserialize() via a mu-plugin to call unserialize($data, ['allowed_classes' => false]).
bash
# Example ModSecurity rule to block serialized PHP objects in checkout-email
SecRule ARGS:checkout-email "@rx (?i)(^|&)(checkout-email=)?.*O:[0-9]+:\"" \
    "id:1026104736,phase:2,deny,status:403,log,\
    msg:'CVE-2026-104736 LearnPress PHP Object Injection attempt'"

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

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.