CVE-2024-5348 Elements For Elementor <= 2.1 - Authenticated (Contributor+) Local File Inclusion via Multiple Widget Attributes

High 8.8 Published Updated

Authenticated contributors can exploit local file inclusion in Elements For Elementor to execute arbitrary PHP code or read sensitive data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-5348?

CVE-2024-5348 is a high-severity path traversal vulnerability in nicdark Elements For Elementor, published on 1 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The Elements For Elementor plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 2.1 via the 'beforeafter_layout' attribute of the beforeafter widget, the 'eventsgrid_layout' attribute of the eventsgrid and list widgets, the 'marquee_layout' attribute of the marquee widget, the 'postgrid_layout' attribute of the postgrid widget, the 'woocart_layout' attribute of the woocart widget, and the 'woogrid_layout' attribute of the woogrid widget. This makes it possible for authenticated attackers, with Contributor-level access and above, to include and execute arbitrary files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where images and other “safe” file types can be uploaded and included.

Weakness: CWE-98

Which versions are affected by CVE-2024-5348?

How do I fix CVE-2024-5348?

No fix has been published for CVE-2024-5348 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-5348 being exploited?

There is no known exploitation of CVE-2024-5348 in the wild and no public exploit code.

Sources

Also known as GHSA-6p3w-6fgj-99jg.

Is CVE-2024-5348 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free