# CVE-2024-7857: Media Library Folders <= 8.2.2 - Authenticated (Subscriber+) Second-Order SQL Injection

- Severity: Medium 6.5 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Published: 2024-08-29T02:31:30.608Z
- Modified: 2026-06-17T08:21:03.543Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Wordfence

## 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.

(As written by CVE List.)

## Affected

- maxfoundry Media Library Folders: up to 8.2.2
- maxfoundry media_library_folders: up to 8.2.2; before 8.2.3

## Every score

- Wordfence: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/d2266254-9281-4859-8630-f7bb5c0ead19?source=cve> (third-party-advisory)
- <https://plugins.trac.wordpress.org/changeset/3139954/media-library-plus/trunk/media-library-plus.php> (patch)
- <https://plugins.trac.wordpress.org/browser/media-library-plus/tags/8.2.2/media-library-plus.php#L1766> (product)
- <https://plugins.trac.wordpress.org/browser/media-library-plus/tags/8.2.2/media-library-plus.php#L3339> (product)

## Sources

- CVE List: [CVE-2024-7857](https://www.cve.org/CVERecord?id=CVE-2024-7857), CVE Terms of Use, modified 2026-04-08
- NVD: [CVE-2024-7857](https://nvd.nist.gov/vuln/detail/CVE-2024-7857), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-7857 · Whole record: https://cve.day/CVE-2024-7857.json · Rebuilt by cve.day 2026-11-25T22:58:44.846Z
