CVE-2021-24825 Custom Content Shortcode < 4.0.2 - Authenticated Arbitrary File Access / LFI

Medium 4.3 Published Updated

Authenticated users can access arbitrary files and execute PHP code via Local File Inclusion in the Custom Content Shortcode plugin.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-24825?

CVE-2021-24825 is a medium-severity path traversal vulnerability in Unknown Custom Content Shortcode, published on 7 Mar 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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)

Weakness: CWE-345

Which versions are affected by CVE-2021-24825?

It affects 1 product.

Products include Custom Content Shortcode Project Custom Content Shortcode.

How do I fix CVE-2021-24825?

No fix has been published for CVE-2021-24825 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2021-24825 being exploited?

There is no known exploitation of CVE-2021-24825 in the wild and no public exploit code.

Sources

Also known as GHSA-x889-v4rv-3355.

Is CVE-2021-24825 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free