CVE-2021-24307 All in One SEO Pack < 4.1.0.2 - Admin RCE via unserialize

High 8.8 Published Updated

Authenticated administrators can execute arbitrary code via unsafe deserialization of uploaded backup files in the All in One SEO WordPress 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-24307?

CVE-2021-24307 is a high-severity unsafe deserialization vulnerability in All in One SEO – Best WordPress SEO Plugin – Easily Improve Your SEO Rankings, published on 24 May 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The All in One SEO – Best WordPress SEO Plugin – Easily Improve Your SEO Rankings before 4.1.0.2 enables authenticated users with "aioseo_tools_settings" privilege (most of the time admin) to execute arbitrary code on the underlying host. Users can restore plugin's configuration by uploading a backup .ini file in the section "Tool > Import/Export". However, the plugin attempts to unserialize values of the .ini file. Moreover, the plugin embeds Monolog library which can be used to craft a gadget chain and thus trigger system command execution.

Weakness: CWE-502

Which versions are affected by CVE-2021-24307?

It affects 1 product.

Products include Aioseo All in One Seo.

How do I fix CVE-2021-24307?

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

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2021-24307 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-fg47-8fhh-p6fc.

Is CVE-2021-24307 in your software?

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

Check your SBOMs for free