patchminder
Weaponized · Metasploit CVE-2024-8522

SQL injectionin ThimPress LearnPress · WordPress LMS Plugin for Create and Sell Online Courses.

Published 12 Sep 2024 · Updated 8 Apr 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Metasploit exploit is public.

Attack code is public
Severity
Critical 10.0
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 62.9% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 4.2.7 or later
In plain words

The LearnPress · WordPress LMS Plugin plugin for WordPress is vulnerable to SQL Injection via the 'c_only_fields' parameter of the /wp-json/learnpress/v1/courses REST API endpoint in all versions up to, and including, 4.2.7 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

What to do now
  • No source names a fix yet. Watch this page or the product for updates; we never guess a fixed version.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
LearnPress · WordPress LMS Plugin for Create and Sell Online Courses
4.2.7 and earlier
Not confirmed
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 6 Sep 2024
    CVE ID reserved by Wordfence.
  2. 11 Sep 2024
    Metasploit module: WordPress LearnPress Unauthenticated SQLi (CVE-2024-8522, CVE-2024-8529).
  3. 12 Sep 2024
    Published in the CVE List.
  4. 19 Sep 2024
    First public proof of concept on GitHub.
  5. 8 Apr 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Metasploit). CISA assessment (SSVC): exploitation none.

Metasploit module
1 module
Nuclei scan template
Available
Exploit-DB
1 entry
GitHub proof of concepts
1 repository
Exploit-DBEDB-ID 52171web application exploit for php, published 11 Apr 2025
GitHubno warning signs foundAvento/CVE-2024-85222 stars · created 19 Sep 2024LearnPress · WordPress LMS Plugin <= 4.2.7 · Unauthenticated SQL Injection via 'c_only_fields'

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other LearnPress · WordPress LMS Plugin for Create and Sell Online Courses vulnerabilities

Same weakness: SQL injection

All CWE-89 vulnerabilities

References
Cite this page

Patchminder. CVE-2024-8522: SQL injection in ThimPress LearnPress · WordPress LMS Plugin for Create and Sell Online Courses. https://patchminder.com/cve/cve-2024-8522/ (accessed 5 December 2026).