CVE-2024-8522: LearnPress (WordPress plugin) · SQL Injection
Affects LearnPress (WordPress plugin)Source CVE Database V5
Not known to be exploited · public exploit available (Metasploit, Exploit-DB) · 62% EPSS · CVSS 10.0 Critical.
Data as of 26 Oct 2026, 09:15 UTC
- EPSS
- 62.8% chance of exploitation in 30 days – higher than 99% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HExploitation evidence
t = 0 is the CVE’s publication on cve.org
Disclosed: evidence found.
CVE published 12 Sep 2024
Detectable: evidence found.
Weaponised: evidence found.
1 Metasploit module · 1 Exploit-DB entry, 211 days after disclosure
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
Timeline
CVE ID reserved
by Wordfence
, 6 days before disclosure
CVE published
on cve.org
, t = 0
First Exploit-DB entry (opens in a new tab)
LearnPress WordPress LMS Plugin 4.2.7 - SQL Injection
, 211 days after disclosure
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| thimpress LearnPress – WordPress LMS Plugin for Create and Sell Online Courses | Affected
| Fixed in– |
AI-suggested
Until an official fix is available, it is recommended to restrict access to the vulnerable REST API endpoint if possible, and monitor for unusual database activity. Avoid using affected versions of the LearnPress plugin in production environments.
Description
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.
References
- wordfence.com/threat-intel/vulnerabilities/id/e495507d-7eac-4f38-ab6f-b8f0809b2be4?source=cve (opens in a new tab)
- plugins.trac.wordpress.org/browser/learnpress/trunk/inc/jwt/rest-api/version1/class-lp-rest-courses-v1-controller.php (opens in a new tab)
- plugins.trac.wordpress.org/changeset/3148560/learnpress/tags/4.2.7.1/inc/jwt/rest-api/version1/class-lp-rest-courses-v1-controller.php?old=3138586&old_path=learnpress%2Ftags%2F4.2.7%2Finc%2Fjwt%2Frest-api%2Fversion1%2Fclass-lp-rest-courses-v1-controller.php (opens in a new tab)
- abrahack.com/posts/learnpress-sqli/ (opens in a new tab)