CVE-2024-5348 HIGH

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

Vendor Nicdark
Product Elements For Elementor
Weakness CWE-98 · PHP file inclusion
Published June 1, 2024
Last update April 8, 2026

CVSS base score

8.8/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What the vulnerability does

01Description

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.

Explanation of Vulnerability in Simple Terms

02Summary

Elements For Elementor versions 2.1 and earlier contain a code injection vulnerability. An authenticated user with low privileges can inject and execute arbitrary code on the site. The vulnerability requires only network access and no user interaction. This affects the confidentiality, integrity, and availability of the entire site.

What an attacker can do

03Attacker Capabilities

Run arbitrary code on the site with the privileges of the web server.

Potential impact on your site

04Site Impact

Complete compromise of site data, functionality, and server resources possible from a low-privilege account.

Conditions required to exploit

05Prerequisites

Attacker must have a low-privilege user account (e.g., subscriber or contributor role).

Key dates

06Disclosure timeline

June 1, 2024 CVE published
April 8, 2026 Record updated

Related vulnerabilities

08Related CVE