{"id":"CVE-2024-8522","published":"2024-09-12T08:30:46Z","modified":"2026-04-08T17:29:38Z","title":"LearnPress – WordPress LMS Plugin <= 4.2.7 - Unauthenticated SQL Injection via 'c_only_fields'","vendor":"thimpress","product":"LearnPress – WordPress LMS Plugin for Create and Sell Online Courses","tier":"core","eol":null,"affectedVersions":[{"vendor":"thimpress","product":"LearnPress – WordPress LMS Plugin for Create and Sell Online Courses","versions":["<= 4.2.7"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2024-09-12T13:06:52.313488Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The LearnPress WordPress LMS plugin (LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, by thimpress) contains an SQL injection flaw in the 'c_only_fields' parameter of its /wp-json/learnpress/v1/courses REST API endpoint, where user input is insufficiently escaped and the underlying SQL query is not properly prepared. An unauthenticated remote attacker, with no user interaction or special configuration required, can append additional SQL queries to existing ones to extract sensitive information from the site's database.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:18:36Z"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.62882,"percentile":0.99217,"date":"2026-11-20","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2024-09-12","exploitedFirstSeen":"2024-09-12","ransomware":false,"evidence":[{"url":"https://patchstack.com/database/vulnerability/learnpress/wordpress-learnpress-wordpress-lms-plugin-plugin-4-2-7-unauthenticated-sql-injection-via-c-only-fields-vulnerability","date":"2024-09-12"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-06-08&host_type=src&vulnerability=cve-2024-8522","date":"2026-06-08"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-06-09&host_type=src&vulnerability=cve-2024-8522","date":"2026-06-09"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-06-10&host_type=src&vulnerability=cve-2024-8522","date":"2026-06-10"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-06-11&host_type=src&vulnerability=cve-2024-8522","date":"2026-06-11"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-06-12&host_type=src&vulnerability=cve-2024-8522","date":"2026-06-12"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-06-13&host_type=src&vulnerability=cve-2024-8522","date":"2026-06-13"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-06-14&host_type=src&vulnerability=cve-2024-8522","date":"2026-06-14"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-06-15&host_type=src&vulnerability=cve-2024-8522","date":"2026-06-15"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2026-06-16&host_type=src&vulnerability=cve-2024-8522","date":"2026-06-16"}],"evidenceTotal":68,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/e495507d-7eac-4f38-ab6f-b8f0809b2be4?source=cve","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/learnpress/trunk/inc/jwt/rest-api/version1/class-lp-rest-courses-v1-controller.php#L441","tags":[]},{"url":"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","tags":[]},{"url":"https://abrahack.com/posts/learnpress-sqli/","tags":[]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2024-49240","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-49240","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":52171,"url":"https://www.exploit-db.com/exploits/52171","title":"LearnPress WordPress LMS Plugin 4.2.7 - SQL Injection","type":"webapps","platform":"php","date":"2025-04-11","verified":false,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2025-04-11"},"pocGithub":{"count":1,"skipped":0,"earliest":"2024-09-19","earliestUrl":"https://github.com/Avento/CVE-2024-8522","repos":[{"name":"Avento/CVE-2024-8522","url":"https://github.com/Avento/CVE-2024-8522","stars":2,"created":"2024-09-19"}]},"metasploit":[{"name":"WordPress LearnPress Unauthenticated SQLi (CVE-2024-8522, CVE-2024-8529)","module":"auxiliary/scanner/http/wp_learnpress_c_fields_sqli","type":"auxiliary","disclosureDate":"2024-09-11","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/wp_learnpress_c_fields_sqli.rb"}],"nuclei":[{"id":"CVE-2024-8522","name":"LearnPress < 4.2.7.1 - SQL Injection","severity":"critical","path":"http/cves/2024/CVE-2024-8522.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-8522.yaml"}],"first":{"date":"2024-09-11","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/wp_learnpress_c_fields_sqli.rb"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2024-09-11","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2024-09-19, Exploit-DB 2025-04-11","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/wp_learnpress_c_fields_sqli.rb","provenance":"source"},{"date":"2024-09-12","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-8522","provenance":"source"},{"date":"2024-09-12","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://patchstack.com/database/vulnerability/learnpress/wordpress-learnpress-wordpress-lms-plugin-plugin-4-2-7-unauthenticated-sql-injection-via-c-only-fields-vulnerability","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":66.8,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 800 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.84,"detail":"percentile 0.9922"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 Exploit-DB entry; 1 PoC-in-GitHub repo; 1 Metasploit module; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":7.0,"detail":"base score 10"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}