What the vulnerability does
01Description
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.
Explanation of Vulnerability in Simple Terms
02Summary
LearnPress versions up to 4.2.7 contain a SQL injection vulnerability in the WordPress plugin that allows unauthenticated attackers to execute arbitrary SQL queries against the site database. No user interaction or special privileges are required. An attacker can read, modify, or delete sensitive data including user credentials, course information, and site configuration.
What an attacker can do
03Attacker Capabilities
Execute arbitrary SQL commands to read, modify, or delete data in the site database without authentication.
Potential impact on your site
04Site Impact
Attackers can steal user data, course content, payment information, and take control of the site by modifying admin accounts.
Conditions required to exploit
05Prerequisites
Network access to the WordPress site; no authentication or user interaction required.
Key dates
06Disclosure timeline
September 12, 2024
CVE published
April 8, 2026
Record updated