CVE-2021-24307: All in One SEO Pack < 4.1.0.2 - Admin RCE via unserialize
Vulnerability summary
CVE-2021-24307 is a high (CVSS 9.0) Deserialization of Untrusted Data vulnerability in aioseo all_in_one_seo. EPSS estimates a 53.27% chance of exploitation in the next 30 days, higher than 98.9% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 24-05-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 2 sources · 2 versions- wordfenceSource8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
53.27%
Chance of exploitation in the next 30 days
Percentile
99%
Versus all other CVEs
30-day change
No change 0.00 pp
From 53.27% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (wpscan.com)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-502Deserialization of Untrusted DataThe product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.
- CWE-94Improper Control of Generation of Code ('Code Injection')The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Affected systems
Aioseo1 product
- all_in_one_seo< 4.1.0.2
All in one seo team1 product
- all in one seo – best wordpress seo plugin – easily improve your seo rankings≥ 4.1.0.2, < 4.1.0.2
Wordpress1 product
- all-in-one-seo-pack< 4.1.0.2
3 vendors · 3 products
References
3 links- wpscan.com/vulnerability/ab2c94d2-f6c4-418b-bd14-711ed164bcf1X Refsource CONFIRMExploitThird Party Advisory