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

Improper Access Control
CVE CVE-2021-24825
CVSS Medium (4.3)
Publicly Published February 2, 2022
Last Updated January 22, 2024
Researcher Francesco Carlucci
Description

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)

References

1 affected software package

Software Type Plugin
Software Slug custom-content-shortcode (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 4.0.1
Patched Version
  • 4.0.2
This record contains material that is subject to copyright

Copyright 2012-2026 Defiant Inc.
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. License Detail.