CVE-2024-31231
WordPress vulnerability analysis and mitigation

Overview

The Rehub theme for WordPress contains a critical Local File Inclusion vulnerability (CVE-2024-31231) affecting versions up to and including 19.6.1. This vulnerability allows unauthenticated attackers to include and execute arbitrary files on the server. The issue was discovered on March 17, 2024, and was patched in version 19.6.2 (Patchstack, WPScan).

Technical details

The vulnerability exists in the ajax_action_re_filterpost function, which is accessible by unauthenticated users through the wp_ajax_nopriv_re_filterpost hook. The $template variable is constructed from $_POST['template'] parameter with insufficient sanitization using sanitize_text_field function, which does not prevent path traversal payloads. The vulnerability allows attackers to include arbitrary .PHP files through path traversal (Patchstack). The vulnerability has been assigned a CVSS score of 9.8 (Critical) and is classified under CWE-98 (WPScan).

Impact

The vulnerability could allow attackers to execute arbitrary PHP code on the server, potentially leading to complete server compromise. Attackers could bypass access controls, obtain sensitive data, or achieve code execution in cases where images and other 'safe' file types can be uploaded and included (WPScan).

Exploitability

The vulnerability is highly exploitable as it requires no authentication and is known to be actively exploited in the wild. The attack can be performed by any unauthenticated user with access to the website (Patchstack).

Mitigation and workarounds

Users are strongly advised to update the Rehub theme to version 19.6.2 or later immediately. The patch implements the sanitize_file_name function to properly sanitize the $template variable and prevent path traversal attacks (Patchstack).

Community reactions

The vulnerability has received significant attention due to the theme's popularity, with over 35,000 sales. Security researchers and industry experts have emphasized the critical nature of this vulnerability and urged immediate patching (SecurityOnline).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-77115HIGH7.1
  • brave-popup-builder
NoYesAug 23, 2026
CVE-2026-77116MEDIUM4.3
  • brave-popup-builder
NoYesAug 23, 2026
CVE-2026-14853MEDIUM4.3
  • woocommerce-bookings
NoYesAug 23, 2026
CVE-2026-77003LOW2.7
  • content-mask
NoYesAug 23, 2026
CVE-2026-13598NONEN/A
  • restrictmate
NoYesAug 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management