learnpress is vulnerable to PHP Object Injection
95
CVE Score
Critical
PHP Object Injection
The checkout AJAX handler in LP_Checkout reads the checkout-email request parameter through sanitize_text_field(), which leaves PHP serialized object syntax intact, and stores the raw value in the LearnPress session table. On subsequent requests LP_Session_Handler::get() passes that stored value to LP_Helper::maybe_unserialize(), which calls unserialize() without restricting allowed_classes. An unauthenticated attacker can submit a crafted serialized payload during checkout and have it deserialized into an arbitrary PHP object, enabling PHP Object Injection and, with a suitable gadget chain present on the site, remote code execution, file deletion, or data disclosure. The fix sanitizes checkout-email as an email address and unserializes session data with allowed_classes set to false.
Upgrade the learnpress and/or the LearnPress library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.0.1 - 4.4.9.1
Fixed in 4.4.10learnpress is vulnerable to PHP Object Injection in versions 0.0.1 - 4.4.9.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.