CVE-2024-28850 WP Crontrol possible RCE when combined with a pre-condition
Administrators can execute arbitrary PHP code via WP Crontrol if combined with other vulnerabilities like SQL injection or database compromise.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-28850?
CVE-2024-28850 is a high-severity code injection vulnerability in johnbillion wp-crontrol, published on 25 Mar 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
WP Crontrol controls the cron events on WordPress websites. WP Crontrol includes a feature that allows administrative users to create events in the WP-Cron system that store and execute PHP code subject to the restrictive security permissions documented here. While there is no known vulnerability in this feature on its own, there exists potential for this feature to be vulnerable to RCE if it were specifically targeted via vulnerability chaining that exploited a separate SQLi (or similar) vulnerability. This is exploitable on a site if one of the below preconditions are met, the site is vulnerable to a writeable SQLi vulnerability in any plugin, theme, or WordPress core, the site's database is compromised at the hosting level, the site is vulnerable to a method of updating arbitrary options in the wp_options table, or the site is vulnerable to a method of triggering an arbitrary action, filter, or function with control of the parameters. As a hardening measure, WP Crontrol version 1.16.2 ships with a new feature that prevents tampering of the code stored in a PHP cron event.
Weakness: CWE-494
Which versions are affected by CVE-2024-28850?
2 open source packages ship an affected version, including johnbillion/wp-crontrol. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
johnbillion/wp-crontrol Packagist | All versions | 1.16.2 |
johnbillion/wp-crontrol Packagist | All versions | 1.16.2 |
Products include Johnbillion Wp Crontrol.
How do I fix CVE-2024-28850?
Upgrade johnbillion/wp-crontrol to 1.16.2 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-28850 being exploited?
There is no known exploitation of CVE-2024-28850 in the wild and no public exploit code.
Sources
Also known as GHSA-9xvf-cjvf-ff5q.