ZeroHour

CVE-2024-8522

large

Unauthenticated SQL Injection in LearnPress WordPress LMS Plugin

CVSS 3.1
7.5 high
EPSS
63%p99
Published
()
Modified
AI analysis

LearnPress, a learning-management-system plugin for WordPress by ThimPress, contains a SQL injection flaw in the 'c_only_fields' parameter of the /wp-json/learnpress/v1/courses REST API endpoint. The parameter is insufficiently escaped and the underlying SQL query is not properly prepared, so an attacker can append additional SQL queries to the existing one. Because the endpoint requires no authentication, any remote attacker who can reach the site's REST API can send a crafted request and read sensitive information from the WordPress database, such as user and site data. All sites running any version of LearnPress up to and including 4.2.7 are affected, and the REST API is exposed by default on standard WordPress installations. No public proof-of-concept or confirmed in-the-wild exploitation is known yet, but the high EPSS score (62.9%, 99th percentile) indicates a substantial likelihood of exploitation in the next 30 days.

What to do: Update LearnPress to the latest release (any version after 4.2.7). Sites that cannot update immediately should protect or restrict access to the /wp-json/learnpress/v1/courses route, e.g., via WAF rules that block SQL metacharacters in the c_only_fields parameter, and review logs for suspicious unauthenticated requests to that endpoint.

Affected
ThimPress LearnPress – WordPress LMS PluginAll versions up to and including 4.2.7
Estimated exposure
large≈50,000+ WordPress sites (LearnPress is listed with roughly 50k+ active installs) — The estimate is based on the plugin's publicly listed WordPress.org active-install count, and the vulnerable REST endpoint is unauthenticated and exposed by default, so most active installs are plausibly reachable.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Vendors
thimpress
Products
learnpress
Ecosystems
WordPress
Weakness
CWE-89
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

In the news

No ingested article mentions this CVE yet.