Custom Content Shortcode <= 4.0.1 — Authenticated Arbitrary File Access / Local File Inclusion
CVE-2021-24825Published · Updated Action summary
Affected: ≤4.0.1Update to 4.0.2 or newer
All remediation steps- Severity
- Medium4.3
- CVSS
- 4.3CVSS 3.1 · CNA (Wordfence)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:NWhat does this vector mean?
AV:NAttack vector- Network
AC:LAttack complexity- Low
PR:LPrivileges required- Low
UI:NUser interaction- None
S:UScope- Unchanged
C:LConfidentiality- Low
I:NIntegrity- None
A:NAvailability- None
- Weakness
- CWE-284 Improper Access Control
- Required access
- Unknown
- Exploit prediction (EPSS)
- No score
- CISA KEV
- Not listed
On this page8
Am I affected?
Custom Content Shortcode custom-content-shortcode
- Affected≤ 4.0.1
- Patched in4.0.2
Update to 4.0.2 or newer.
You are affected if you run ≤ 4.0.1. Version 4.0.2 and later are not affected by this issue.
- Check your version: in wp-admin go to Plugins → Installed Plugins and read the version under Custom Content Shortcode.
- No admin access? Run a passive check of your site. It reads public files only.
What to do
- Update to version 4.0.2, or a newer patched version
- Rotate administrator passwords and application secrets if the site ran a vulnerable version while publicly reachable.
- Watch Custom Content Shortcode to get an email when the next vulnerability is published.
Advisory
Source description from Wordfence Intelligence, credited to 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)
Exploits & references
Proof-of-concept & detection
No public proof-of-concept or detection template is known for this vulnerability.
Advisories & patches
- Advisorywordfence.com
Related CVEs
More in Custom Content Shortcode
All 5| Severity | Vulnerability | CVE | Published |
|---|---|---|---|
| Medium6.4 | Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode ≤4.0.2No patch available | CVE-2023-0273 | |
| High8.8 | Authenticated (Contributor+) Local File Inclusion via Shortcode ≤4.0.2No patch available | CVE-2023-0340 | |
| Medium5.4 | Authenticated Stored Cross-Site Scripting ≤4.0.1Update to 4.0.2 | CVE-2021-24826 | |
| Medium4.3 | Unauthorised Arbitrary Post Metadata Access ≤3.8.8Update to 4.0.1 | CVE-2021-24824 |
- Medium6.4Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode
≤4.0.2No patch available
- High8.8Authenticated (Contributor+) Local File Inclusion via Shortcode
≤4.0.2No patch available
- Medium5.4Authenticated Stored Cross-Site Scripting
≤4.0.1Update to 4.0.2
- Medium4.3Unauthorised Arbitrary Post Metadata Access
≤3.8.8Update to 4.0.1
Timeline
CVE published
Severity medium, CVSS 4.3
Record last updated
Sources & licenses
Wordfence record- Vulnerability data
- Wordfence Intelligence. Copyright 2012-2026 Defiant Inc. Licensed under the CC BY-SA 4.0.
- CVE® identifiers
- Copyright 1999-2026 The MITRE Corporation. Used under the CVE Program. CVE® is a registered trademark of The MITRE Corporation.
- CVSS / CWE
- National Vulnerability Database (NVD), shown unmodified. This product uses the NVD API but is not endorsed or certified by the NVD.
- VulnCrest content
- Summary, remediation guidance and page layout © VulnCrest. Not sourced from NVD.
