What’s Vulnerable › Vulnerabilities
CVE-2024-7857: Media Library Folders <= 8.2.2 - Authenticated (Subscriber+) Second-Order SQL Injection
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-08-29 · updated 2026-06-17
- Weakness: CWE-89
Description
The Media Library Folders plugin for WordPress is vulnerable to second order SQL Injection via the 'sort_type' parameter of the 'mlf_change_sort_type' AJAX action in all versions up to, and including, 8.2.2 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with subscriber-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
Affected products
- maxfoundry Media Library Folders: before 8.2.3 — fixed in 8.2.3
How to fix
Upgrade to a fixed version: maxfoundry Media Library Folders 8.2.3. Check the vendor advisory for mitigations.
References
- https://plugins.trac.wordpress.org/browser/media-library-plus/tags/8.2.2/media-library-plus.php#L1766
- https://plugins.trac.wordpress.org/browser/media-library-plus/tags/8.2.2/media-library-plus.php#L3339
- https://plugins.trac.wordpress.org/changeset/3139954/media-library-plus/trunk/media-library-plus.php
- https://www.wordfence.com/threat-intel/vulnerabilities/id/d2266254-9281-4859-8630-f7bb5c0ead19?source=cve
Get alerted when CVE-2024-7857 or the next vulnerability affects your stack