CVE-2021-24307 All in One SEO Pack < 4.1.0.2 - Admin RCE via unserialize
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.
Other vulnerabilities in All in One SEO – Best WordPress SEO Plugin – Easily Improve Your SEO Rankings
- CVE-2021-25036 All In One SEO < 4.1.5.3 - Authenticated Privilege Escalation
- CVE-2021-25037 All In One SEO < 4.1.5.3 - Authenticated SQL Injection
- CVE-2025-2892 Cross-site scripting in All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic
- CVE-2024-3554 Cross-site scripting in All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic
- CVE-2023-0586 All in One SEO Pack <= 4.2.9 - Authenticated (Contributor+) Stored Cross-Site Scripting
Sources
Also known as GHSA-fg47-8fhh-p6fc.