CVE-2025-7504 Friends 3.5.1 - Authenticated (Subscriber+) PHP Object Injection

High 7.5 Published Updated

Authenticated attackers can exploit PHP object injection in the Friends plugin if a POP chain exists in other installed components, potentially leading to code execution or data exposure.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-7504?

CVE-2025-7504 is a high-severity unsafe deserialization vulnerability in akirk Friends, published on 12 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The Friends plugin for WordPress is vulnerable to PHP Object Injection in version 3.5.1 via deserialization of untrusted input of the query_vars parameter This makes it possible for authenticated attackers, with subscriber-level access and above, to inject a PHP Object. No known POP chain is present in the vulnerable software, which means this vulnerability has no impact unless another plugin or theme containing a POP chain is installed on the site. If a POP chain is present via an additional plugin or theme installed on the target system, it may allow the attacker to perform actions like delete arbitrary files, retrieve sensitive data, or execute code depending on the POP chain present. This requires access to the sites SALT_NONCE and and SALT_KEY to exploit.

Weakness: CWE-502

Which versions are affected by CVE-2025-7504?

It affects 1 product.

Products include Alex.kirk Friends.

How do I fix CVE-2025-7504?

No fix has been published for CVE-2025-7504 yet. Limit exposure of the affected software until one is available.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2025-7504 being exploited?

There is no known exploitation of CVE-2025-7504 in the wild and no public exploit code.

Sources

Also known as GHSA-4fh8-fjgg-4q2v.

Is CVE-2025-7504 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free