CVE-2024-7857: The Media Library Folders plugin for WordPress is vulnerable to second order SQL Injection via the 'sort_type'
CVE-2024-7857 is a medium-severity flaw (CVSS 6.5) affecting media library folders. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 que
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 6.5 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.5% (top 61%) |
| CISA exploited list | No |
| Weakness | CWE-89 |
| Published | 2024-08-29 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-7857?
media library folders: upgrade to 8.2.3. Exact commands for each OS are on this page.
Is CVE-2024-7857 being exploited?
CVE-2024-7857 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-7857 affect?
CVE-2024-7857 affects media library folders. Severity is medium (CVSS 6.5). 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 t
How urgent is CVE-2024-7857?
Priority 33/100. No elevated risk signals yet.
Software pages
Related CVEs
- CVE-2025-0935 MEDIUM 4.3 UPGRADE The Media Library Folders plugin for WordPress is vulnerable to unauthorized plugin settings change due to a m
- CVE-2024-7858 MEDIUM 6.3 UPGRADE The Media Library Folders plugin for WordPress is vulnerable to unauthorized access due to missing capability
- CVE-2024-3615 MEDIUM 6.1 UPGRADE The Media Library Folders plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 's' par
- CVE-2024-31287 MEDIUM 6.5 UPGRADE Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in Max Foundry Me
- CVE-2024-30486 HIGH 8.5 UPGRADE Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in Max Foun