WordPress Core maybe_unserialize Deserialization of Untrusted Data Remote Code Execution Vulnerability
The maybe_unserialize function in WordPress Core fails to properly validate user-supplied data, leading to deserialization of untrusted data. An attacker could exploit this to execute arbitrary code, though authentication may be required depending on configuration.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of WordPress Core. Authentication may be required to exploit this vulnerability, depending on the product configuration.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the maybe_unserialize function does not validate user-supplied data before deserializing it, allowing untrusted input to be processed as serialized objects.
Impact
An attacker could execute arbitrary code with the privileges of the service account, but authentication may be required depending on the product configuration.
What the attacker needed
Authentication may be required
The fix
WordPress has issued an update to correct this vulnerability.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This is a flaw in WordPress that lets an attacker run their own code on the server. It happens because a function that converts stored data back into objects does not check if the data is safe, so a malicious input can trigger harmful actions. The attacker might need to be logged in first, depending on how the site is set up.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.