SiteGround Optimizer <= 5.0.12 - Missing Authorization

Missing Authorization
CVE CVE-2019-25217
CVSS Critical (9.8)
Publicly Published March 14, 2019
Last Updated October 16, 2024
Researcher Marc-Alexandre Montpas
Description

The SiteGround Optimizer plugin for WordPress is vulnerable to authorization bypass leading to Remote Code Execution and Local File Inclusion in versions up to, and including, 5.0.12 due to incorrect use of an access control attribute on the switch_php function called via the /switch-php REST API route. This allows attackers to include and execute arbitrary files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where images and other “safe” file types can be uploaded and included.

References

1 affected software package

Software Type Plugin
Software Slug sg-cachepress (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 5.0.13
Patched Version
  • 5.0.13
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.