CVE-2024-8522
HighExploitedPublic exploitLearnPress – WordPress LMS Plugin <= 4.2.7 - Unauthenticated SQL Injection via 'c_only_fields'
Published Sep 13, 2024 · Updated Apr 8, 2026 · Also known as e495507d-7eac-4f38-ab6f-b8f0809b2be4
Key Facts
Patch immediately- CVE-2024-8522 is a high-severity vulnerability (CVSS 7.5 v3.1) affecting Learnpress (Thimpress), LearnPress – WordPress LMS Plugin for Create and Sell Online Courses.
- It is exploited in the wild, listed in Industry KEV feed, CIRCL KEV since Sep 12, 2024. Public exploit code is available.
- EPSS estimates a 63% probability of exploitation in the next 30 days.
- Fixed versions are available, including Learnpress 4.2.7.1.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
CVSS v3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS (30-day exploit likelihood)
63%
Higher than 99.1% of all scored CVEs
Exploited in the wild
Yes
2 catalog listings
Public exploit code
Available
Proof-of-concept or weaponized module
Get the full CVE-2024-8522 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| Industry KEV feed | Sep 12, 2024 | n/a | Not reported |
| CIRCL KEV | Sep 12, 2024 | n/a | Not reported |
Required action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are unavailable.
Affected Products
3 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| LearnpressThimpress | See advisory | 4.2.7.1 |
| LearnPress – WordPress LMS Plugin for Create and Sell Online Courses | See advisory | n/a |
Patched Releases
Learnpress
4.2.7.1
Timeline
Added to Industry KEV feed
Sep 12, 2024
Added to CIRCL KEV
Sep 12, 2024
Publicly disclosed
Sep 13, 2024
Last updated
Apr 8, 2026
Weakness Type
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
- advisoryhttps://plugins.trac.wordpress.org/browser/amcharts-charts-and-maps/tags/1.4.4/includes/preview.php
- advisoryhttps://plugins.trac.wordpress.org/browser/learnpress/trunk/inc/jwt/rest-api/version1/class-lp-rest-courses-v1-controller.php#L441
- advisoryhttps://plugins.trac.wordpress.org/browser/wpcodefactory-helper/tags/1.7.0/includes/class-alg-wpcodefactory-helper-site-key-manager.php#L350
- advisoryhttps://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
- advisoryhttps://plugins.trac.wordpress.org/changeset/3150715/wpcodefactory-helper/tags/1.7.1/includes/class-alg-wpcodefactory-helper-site-key-manager.php
FAQ
Common Questions.
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…
Affected: Learnpress (Thimpress); LearnPress – WordPress LMS Plugin for Create and Sell Online Courses. The full list is in the CVE brief.
It is exploited in the wild, listed in Industry KEV feed, CIRCL KEV since Sep 12, 2024.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
Public exploit code is available.
Fixed versions are available, including Learnpress 4.2.7.1.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2024-8522 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo