CVE-2024-8522: CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in thimpress LearnPress – WordPress LMS Plugin for Create and Sell Online Courses
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.
AI Analysis
Technical Summary
CVE-2024-8522 is a critical SQL Injection vulnerability in the LearnPress WordPress LMS plugin affecting all versions up to 4.2.7. The issue arises from improper neutralization of special elements in the 'c_only_fields' parameter of the REST API endpoint /wp-json/learnpress/v1/courses. Due to insufficient escaping and lack of prepared statements, unauthenticated attackers can append arbitrary SQL queries to the existing database query, potentially extracting sensitive data or manipulating the database.
Potential Impact
Successful exploitation allows unauthenticated attackers to execute arbitrary SQL commands on the backend database, leading to full compromise of data confidentiality, integrity, and availability. This can result in unauthorized data disclosure, data modification, or denial of service conditions affecting the LearnPress plugin and potentially the entire WordPress site.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. 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.
CVE-2024-8522: CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in thimpress LearnPress – WordPress LMS Plugin for Create and Sell Online Courses
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-8522 is a critical SQL Injection vulnerability in the LearnPress WordPress LMS plugin affecting all versions up to 4.2.7. The issue arises from improper neutralization of special elements in the 'c_only_fields' parameter of the REST API endpoint /wp-json/learnpress/v1/courses. Due to insufficient escaping and lack of prepared statements, unauthenticated attackers can append arbitrary SQL queries to the existing database query, potentially extracting sensitive data or manipulating the database.
Potential Impact
Successful exploitation allows unauthenticated attackers to execute arbitrary SQL commands on the backend database, leading to full compromise of data confidentiality, integrity, and availability. This can result in unauthorized data disclosure, data modification, or denial of service conditions affecting the LearnPress plugin and potentially the entire WordPress site.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. 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.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- Wordfence
- Date Reserved
- 2024-09-06T15:23:41.132Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 699f6c2cb7ef31ef0b560be1
Added to database: 2/25/2026, 9:39:56 PM
Last enriched: 4/9/2026, 8:27:44 AM
Last updated: 4/12/2026, 7:45:05 AM
Views: 25
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.