Custom Content Shortcode <= 4.0.1 - Authenticated Arbitrary File Access / Local File Inclusion

Improper Access Control
CVE CVE-2021-24825
CVSS 4.3 (Medium)
Publicly Published February 2, 2022
Last Updated August 29, 2022
Researcher Francesco Carlucci


The Custom Content Shortcode WordPress plugin before 4.0.2 does not validate the data passed to its load shortcode, which could allow Contributor+ (v < 4.0.1) or Admin+ (v < 4.0.2) users to display arbitrary files from the filesystem (such as logs, .htaccess etc), as well as perform Local File Inclusion attacks as PHP files will be executed. Please note that such attack is still possible by admin+ in single site blogs by default (but won't be when either the unfiltered_html or file_edit is disallowed)



1 affected software package

Software Type Plugin
Software Slug custom-content-shortcode (view on
Patched? Yes
Remediation Update to version 4.0.2, or a newer patched version
Affected Version
  • <= 4.0.1
Patched Version
  • 4.0.2

All the threat data shared in this database is powered by Wordfence Intelligence Enterprise.
Interested in integrating this data into your platform or network?
Contact us now to discuss API access to our Wordfence Intelligence Enterprise Data Feeds.

Inquire Now

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.