MEDIUM 4.3

CVE-2026-5137: RTMKit WordPress Plugin Local File Inclusion Vulnerability

The RTMKit plugin for WordPress (used to manage themes for Elementor) has a vulnerability that allows certain WordPress users to load and run unauthorized PHP code on a website. Specifically, a user with Contributor access or higher can manipulate a request to the plugin's template rendering feature to include files they shouldn't be able to access, then execute whatever code is inside those files. This requires an attacker to already have a low-level account on the WordPress site.

Source data · NVD / CISA · public domain

CVSS
3.1 · 4.3 MEDIUM · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Weaknesses (CWE)
CWE-98
Affected products
0 configuration(s)
Published / Modified
2026-07-03 / 2026-07-06

NVD description (verbatim)

The RTMKit (rometheme-for-elementor) plugin for WordPress is vulnerable to Local File Inclusion in versions up to, and including, 2.0.7 This is due to insufficient path validation on the 'template' parameter in the render_templates AJAX endpoint, which is used directly in a require/include statement without sanitization. This makes it possible for authenticated attackers, with Contributor-level access and above, to include and execute files on the server ending in _templates.php, allowing the execution of any PHP code in those files.

5 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2026-5137 is a Local File Inclusion (LFI) vulnerability in RTMKit versions up to 2.0.7. The plugin's render_templates AJAX endpoint accepts a 'template' parameter that is passed directly to a require/include statement without path validation or sanitization. An authenticated attacker with Contributor-level privileges can exploit insufficient input filtering to include arbitrary files ending in _templates.php and execute embedded PHP code. The vulnerability is classified under CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Program).

Business impact

Compromise of a WordPress site running a vulnerable RTMKit version could expose sensitive data, allow malware injection, deface the site, or enable lateral movement to other systems. The impact is limited by the requirement for pre-existing authenticated access, but Contributor roles are often assigned to authors, editors, and service vendors—significantly expanding the internal threat surface. Organizations relying on RTMKit for Elementor theme management should assess how many user accounts have Contributor access and whether those accounts are actively monitored.

Affected systems

RTMKit (rometheme-for-elementor) plugin for WordPress, versions 2.0.7 and earlier. The vulnerability requires the plugin to be installed and activated, and an attacker to possess a valid WordPress user account with Contributor role or above (Contributor, Editor, Administrator).

Exploitability

Exploitation requires authentication and Contributor-level access—a material barrier that reduces attack surface compared to unauthenticated remote code execution. However, this does not eliminate risk. Compromised or disgruntled staff, leaked credentials, or account takeovers can provide the necessary foothold. Exploitation is trivial once access is obtained (a simple parameter manipulation in an AJAX call), and there is no known evidence of active mass exploitation in the wild as of the CVE publication date.

Remediation

Update RTMKit to a patched version beyond 2.0.7. Administrators should verify the availability of a patched release from the plugin developer and deploy it to all affected WordPress instances. Until patching is complete, restrict Contributor-level access to trusted users only, monitor AJAX requests to the render_templates endpoint, and consider disabling the plugin if it is not actively in use.

Patch guidance

Check the RTMKit plugin repository or vendor advisory for a version higher than 2.0.7. Apply the update through the WordPress dashboard (Plugins > Installed Plugins > RTMKit > Update) or via command line (wp plugin update rtmkit) if using WP-CLI. Verify the update was applied successfully by confirming the new version number in the plugin details. Test the Elementor theme functionality in a staging environment before deploying to production.

Detection guidance

Monitor WordPress audit logs for AJAX requests to the render_templates endpoint, especially those originating from Contributor-level accounts. Look for suspicious 'template' parameter values that contain path traversal sequences (../, ..\.\, etc.) or references to files outside the expected template directory. Enable WordPress security logging via plugins such as Wordfence or Sucuri to track unauthorized file inclusion attempts. Network-level detection should flag unusual include/require activity from the wp-content/plugins/rtmkit directory.

Why prioritize this

Although the CVSS score of 4.3 (Medium) reflects the authentication requirement, this vulnerability warrants prioritization because: (1) Contributor access is often widely delegated in organizations; (2) exploitation is trivial and non-interactive once credentials are obtained; (3) successful exploitation leads to arbitrary code execution, a critical outcome; and (4) the plugin is not listed in active public exploit databases, meaning patching now prevents future weaponization.

Risk score, explained

The CVSS v3.1 score of 4.3 reflects a Medium severity due to the requirement for valid authentication and Contributor privileges (PR:L), which restricts attack vector to network access but limits scope. The integrity and availability impacts are rated as None; only confidentiality is slightly compromised (C:L) because the attacker can read file contents. However, the practical risk is higher because arbitrary PHP execution can escalate to full integrity and availability impact—use this score as a floor, not a ceiling.

Frequently asked questions

Do I need to update RTMKit immediately if I don't allow Contributor access to untrusted users?

No, but it is still recommended. The vulnerability requires Contributor access, so if your site only grants this role to trusted employees or contractors, immediate risk is lower. However, credential compromise, insider threats, and account takeovers can still enable exploitation. Plan an update within your normal patching cycle, prioritize it over lower-severity issues, and test in staging first.

Can I disable the render_templates AJAX endpoint without breaking Elementor?

That depends on how RTMKit integrates with Elementor. Before attempting any custom fixes, check the plugin documentation and test in a non-production environment. A safer interim measure is to restrict Contributor access via role management while you await or prepare the patch.

What does 'files ending in _templates.php' mean for exploitation scope?

The vulnerability only allows inclusion of files with names ending in _templates.php. This limits which files can be exploited, but within that constraint, an attacker can include any such file on the server—including those in other plugins, themes, or custom locations. If such files exist and contain executable code, they will run.

Is RTMKit listed in WordPress's known vulnerable plugin list?

As of the CVE publication date, RTMKit is not listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, meaning no active exploitation in the wild has been confirmed. This should not be interpreted as low risk—it means the vulnerability is still relatively recent and defenders should patch before attackers develop widespread tooling.

This analysis is based on the CVE record and vendor information as of the publication date. Exploitation requires valid WordPress credentials and Contributor-level access. No active exploitation in the wild has been reported (KEV status: Not listed). Always test patches in a staging environment before production deployment. For the latest patched version number and detailed remediation steps, consult the official RTMKit plugin repository or vendor security advisory. SEC.co makes no warranty regarding the completeness or accuracy of this information and recommends independent verification of all recommendations. Source: NVD (public-domain), retrieved 2026-08-12. Analysis generated by SEC.co (claude-haiku-4-5).