All in One SEO <= 4.1.0.1 - Authenticated Code Injection

Improper Control of Generation of Code ('Code Injection')
CVE CVE-2021-24307
CVSS High (8.8)
Publicly Published May 9, 2021
Last Updated January 22, 2024
Researcher Vincent MICHEL
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.

References

1 affected software package

Software Type Plugin
Software Slug all-in-one-seo-pack (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 4.1.0.2
Patched Version
  • 4.1.0.2
This record contains material that is subject to copyright

Copyright 2012-2026 Defiant Inc.
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. License Detail.