CVE-2023-0340
WordPress vulnerability analysis and mitigation

Overview

CVE-2023-0340 affects the Custom Content Shortcode WordPress plugin through version 4.0.2. The vulnerability was discovered and disclosed in February 2023, impacting WordPress installations using the affected plugin versions. The issue stems from improper validation of shortcode attributes, which affects users with contributor-level permissions and above (WPScan).

Technical details

The vulnerability is a Local File Inclusion (LFI) flaw that occurs due to insufficient validation of shortcode attributes. This security issue allows users with contributor privileges or higher to perform file traversal attacks to include arbitrary files. The vulnerability can be exploited through specially crafted shortcode inputs, such as using the template parameter in comment shortcodes to access files outside the intended directory structure (WPScan).

Impact

The vulnerability enables attackers to read non-PHP files and retrieve their content through directory traversal. More critically, if an attacker can upload a malicious image containing PHP code (which is possible for users with author privileges by default), they can achieve Remote Code Execution (RCE) by including the malicious file through the affected attribute (WPScan).

Mitigation and workarounds

No direct fix was mentioned in the available sources. However, given the severity of the vulnerability, users should either remove the Custom Content Shortcode plugin or upgrade to a version newer than 4.0.2 if a patch is available (WPScan).

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-2025-13126HIGH7.5
  • wpforo
NoYesDec 14, 2025
CVE-2025-12537MEDIUM6.4
  • addon-elements-for-elementor-page-builder
NoYesDec 14, 2025
CVE-2025-9873MEDIUM6.4
  • a3-lazy-load
NoYesDec 13, 2025
CVE-2025-9856MEDIUM6.4
  • popup-builder
NoYesDec 13, 2025
CVE-2025-12696N/AN/A
  • hls-crm-form-shortcode
NoNoDec 14, 2025

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