The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-8522

CVE-2024-8522: LearnPress WordPress Plugin SQLi Flaw

CVE-2024-8522 is a SQL injection vulnerability in Thimpress LearnPress WordPress LMS Plugin affecting versions up to 4.2.7. Unauthenticated attackers can extract sensitive database information. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Updated: January 22, 2026

CVE-2024-8522 Overview

CVE-2024-8522 is a critical SQL Injection vulnerability affecting the LearnPress WordPress LMS Plugin. The vulnerability exists in 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, unauthenticated attackers can append additional SQL queries into already existing queries to extract sensitive information from the database.

LearnPress is a popular WordPress plugin used for creating and managing Learning Management System (LMS) functionality, making this vulnerability particularly concerning for educational institutions and online course providers.

Critical Impact

Unauthenticated attackers can exploit this SQL Injection vulnerability to extract sensitive data from WordPress databases, including user credentials, course information, and potentially administrative access details without any authentication requirements.

Affected Products

  • ThimPress LearnPress versions up to and including 4.2.7
  • WordPress installations running vulnerable LearnPress plugin versions
  • Any WordPress LMS site utilizing the LearnPress REST API endpoint

Discovery Timeline

  • 2024-09-12 - CVE-2024-8522 published to NVD
  • 2024-09-13 - Last updated in NVD database

Technical Details for CVE-2024-8522

Vulnerability Analysis

This SQL Injection vulnerability resides in the LearnPress REST API controller, specifically in the class-lp-rest-courses-v1-controller.php file. The vulnerable endpoint at /wp-json/learnpress/v1/courses accepts user input through the c_only_fields parameter without proper sanitization or parameterized query preparation.

The vulnerability allows unauthenticated remote attackers to manipulate SQL queries executed by the WordPress database. Since no authentication is required to access the REST API endpoint, the attack surface is significantly expanded. The flaw enables data extraction from the database but does not appear to allow data modification or deletion based on the confidentiality-only impact assessment.

With an extremely high EPSS probability of 86.508% (99th percentile), this vulnerability is highly likely to be exploited in the wild, making immediate patching essential.

Root Cause

The root cause of CVE-2024-8522 is improper input validation and the lack of prepared statements in the SQL query construction. The c_only_fields parameter is directly incorporated into database queries without proper escaping or parameterization, violating secure coding practices for database interactions in WordPress development.

The vulnerable code path can be found in the REST API version 1 controller for courses. WordPress provides the $wpdb->prepare() method specifically to prevent SQL Injection attacks, but this was not properly implemented for the affected parameter.

Attack Vector

The attack vector is network-based, requiring no authentication, no user interaction, and presenting low attack complexity. An attacker can exploit this vulnerability by sending crafted HTTP requests to the REST API endpoint with malicious SQL payloads in the c_only_fields parameter.

The vulnerability is exploited through the /wp-json/learnpress/v1/courses REST API endpoint. Attackers can craft malicious requests containing SQL injection payloads within the c_only_fields parameter to manipulate database queries and extract sensitive information. For detailed technical analysis, refer to the WordPress Plugin Code Review and the Wordfence Vulnerability Report.

Detection Methods for CVE-2024-8522

Indicators of Compromise

  • Unusual or malformed requests to /wp-json/learnpress/v1/courses endpoint containing SQL syntax in the c_only_fields parameter
  • Database query logs showing unexpected UNION, SELECT, or other SQL injection patterns originating from REST API calls
  • Abnormal data access patterns or bulk data extraction from WordPress database tables
  • Web server access logs showing repeated requests with encoded SQL payloads targeting the LearnPress API

Detection Strategies

  • Deploy Web Application Firewall (WAF) rules to detect and block SQL injection patterns in REST API parameters
  • Implement logging and monitoring for all requests to LearnPress REST API endpoints
  • Use database activity monitoring to detect anomalous query patterns or unauthorized data access
  • Scan WordPress installations using vulnerability scanners that check for outdated LearnPress versions

Monitoring Recommendations

  • Monitor web server access logs for requests containing SQL injection signatures targeting /wp-json/learnpress/v1/courses
  • Enable WordPress debug logging to capture suspicious database query activity
  • Set up alerts for any requests with special characters or SQL keywords in the c_only_fields parameter
  • Regularly audit database access logs for unusual SELECT queries against user and course tables

How to Mitigate CVE-2024-8522

Immediate Actions Required

  • Update LearnPress plugin to version 4.2.7.1 or later immediately
  • Review web server access logs for signs of exploitation attempts
  • Temporarily disable the LearnPress REST API if immediate patching is not possible
  • Implement WAF rules to block SQL injection attempts targeting the vulnerable endpoint

Patch Information

ThimPress has released version 4.2.7.1 of the LearnPress plugin which addresses this SQL Injection vulnerability. The patch implements proper input sanitization and prepared statements for the c_only_fields parameter.

The security fix can be reviewed in the WordPress Plugin Changeset History.

To update the plugin, navigate to your WordPress admin dashboard, go to Plugins > Installed Plugins, find LearnPress, and click "Update Now" if an update is available. Alternatively, download the latest version from the WordPress plugin repository and perform a manual update.

Workarounds

  • Restrict access to the REST API endpoint /wp-json/learnpress/v1/courses using server-level configuration until patching is possible
  • Implement a WAF rule to block requests containing SQL keywords in the c_only_fields parameter
  • Disable the LearnPress REST API functionality if not required for site operations
  • Use .htaccess or nginx configuration to limit REST API access to trusted IP addresses
bash
# Nginx configuration to restrict LearnPress REST API access
location ~ ^/wp-json/learnpress/v1/courses {
    # Block requests with suspicious c_only_fields parameter values
    if ($arg_c_only_fields ~* "(union|select|insert|update|delete|drop|--|')") {
        return 403;
    }
    # Alternatively, restrict to trusted IPs only
    # allow 192.168.1.0/24;
    # deny all;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechThimpress Learnpress

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability86.51%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-89
  • Technical References
  • WordPress Plugin Code Review

  • Wordfence Vulnerability Report
  • Vendor Resources
  • WordPress Plugin Changeset History
  • Related CVEs
  • CVE-2023-6567: Thimpress LearnPress SQL Injection Flaw

  • CVE-2024-8529: Thimpress LearnPress SQL Injection Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English