BlogSafe.org

WordPress CVEs

Search and review WordPress-related vulnerability records.

← Back to CVE list

CVE-2024-8522

HIGH 7.5 CVSS 3.1
Published
September 12, 2024
Last modified
June 17, 2026
NVD status
Modified
Reported by
security@wordfence.com
Weakness
CWE-89
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

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.

Affected WordPress components

  • LearnPress – WordPress LMS Plugin for Create and Sell Online Courses Plugin · learnpress
    Confirmed match Active
    Up to and including 4.2.7; Before 4.2.7; Before 4.2.7.1
    View on WordPress.org

A confirmed match is backed by the plugin or theme slug. A possible match is based on the product name only and should be verified.

Affected products and versions

  • thimpress LearnPress – WordPress LMS Plugin for Create and Sell Online Courses — Up to and including 4.2.7
  • thimpress learnpress — Before 4.2.7
  • thimpress learnpress — Before 4.2.7.1

References

  • abrahack.com https://abrahack.com/posts/learnpress-sqli/
  • plugins.trac.wordpress.org https://plugins.trac.wordpress.org/browser/learnpress/trunk/inc/jwt/rest-api/version1/class-lp-rest-courses-v1-controller.php#L441 Product
  • plugins.trac.wordpress.org https://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 Patch
  • www.wordfence.com https://www.wordfence.com/threat-intel/vulnerabilities/id/e495507d-7eac-4f38-ab6f-b8f0809b2be4?source=cve Third Party Advisory
  • nvd.nist.gov Official NVD record