CVE-2024-2840 Enhanced Media Library <= 2.8.9 - Authenticated (Author+) Stored Cross-Site Scripting
Authenticated attackers can inject arbitrary scripts via media uploads, leading to code execution when pages are viewed.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2024-2840?
CVE-2024-2840 is a medium-severity cross-site scripting vulnerability in webbistro Enhanced Media Library, published on 2 May 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
The Enhanced Media Library plugin for WordPress is vulnerable to Stored Cross-Site Scripting via media upload functionality in all versions up to, and including, 2.8.9 due to the plugin allowing 'dfxp' files to be uploaded. This makes it possible for authenticated attackers, with author-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Weakness: CWE-79
Which versions are affected by CVE-2024-2840?
How do I fix CVE-2024-2840?
No fix has been published for CVE-2024-2840 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-2840 being exploited?
There is no known exploitation of CVE-2024-2840 in the wild and no public exploit code.
Sources
Also known as GHSA-8g24-44j2-9cv2.