Skip to main content

Friends CVE-2025-7504

| EUVDEUVD-2025-21210 HIGH
Deserialization of Untrusted Data (CWE-502)
2025-07-12 security@wordfence.com
7.5
CVSS 3.1 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

The CVSS 7.5 score reflects High severity with favorable attack conditions: Network-accessible (AV:N), High complexity due to salt requirement (AC:H), Low privileges needed (PR:L), complete confidentiality/integrity/availability impact (C:H/I:H/A:H). However, real-world risk is heavily context-dependent and likely lower than the score suggests. The vulnerability has a dependency chain: (1) Friends plugin must be installed and unpatched, (2) another plugin/theme with a usable POP chain must be present, (3) attacker must be authenticated with subscriber access, (4) attacker must obtain SALT_NONCE and SALT_KEY (non-trivial if salts are properly randomized per WordPress security guidelines). The AC:H rating appropriately reflects the salt requirement. Without KEV status confirmation or public POC availability, this appears to be a theoretical vulnerability with limited immediate exploitation probability in typical WordPress environments. Organizations running isolated WordPress instances with curated plugins and proper secret management face minimal risk; those running popular plugin stacks with numerous third-party dependencies face elevated risk. The lack of any known POC or KEV designation suggests this has not achieved active exploitation status in the wild.

Exploit ScenarioDerived

An authenticated WordPress subscriber (or attacker who has obtained subscriber credentials) crafts a malicious HTTP GET/POST request to the Friends plugin endpoint with a specially-crafted query_vars parameter containing a serialized PHP object. The object instantiation triggers __wakeup() or __construct() magic methods in a gadget chain from an installed third-party plugin (e.g., a plugin vulnerability published in a recent security advisory). Without knowledge of SALT_NONCE/SALT_KEY, the attacker would need to: (1) extract these values via information disclosure (wp-config.php exposure, debug logs, or another vulnerability), or (2) brute-force them if weak. Once salts are obtained, the attacker constructs a valid serialized payload, sends it to the vulnerable plugin, and the POP chain executes—potentially deleting wp-admin files to escalate privileges, exfiltrating database credentials from memory, or executing arbitrary shell commands for full server compromise. No public POC is known to exist (as of this analysis date); exploitation remains theoretical unless a specific POP chain vulnerability is disclosed in conjunction with this CVE.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 16, 2026

The Friends plugin for WordPress versions up to 3.5.1 contains a PHP Object Injection vulnerability in the query_vars parameter that allows authenticated subscribers and above to inject malicious serialized objects through unsafe deserialization. While the plugin itself lacks a known gadget chain (POP chain), successful exploitation depends on the presence of vulnerable code in other installed plugins or themes; if such a chain exists, attackers can achieve arbitrary file deletion, data exfiltration, or remote code execution, but exploitation requires knowledge of the site's SALT_NONCE and SALT_KEY values.

RemediationAI

Immediate: Update Friends plugin to version 3.5.2 or later when released (check WordPress plugin repository for patched version availability). If patch is unavailable, implement these mitigations: (1) Disable the Friends plugin entirely if not actively used, (2) Restrict subscriber access to trusted users only, (3) implement Web Application Firewall (WAF) rules to block serialized object patterns in query_vars parameters (detect 'O:\d+:' regex), (4) enforce strong, unique SALT_NONCE and SALT_KEY values in wp-config.php and ensure they are not exposed via source code leaks or misconfiguration, (5) audit and remove unused plugins, especially those known to contain gadget chains (check security advisories for popular plugins like DMS, All In One SEO, and others that have historically contained POP chains), (6) implement application-level input validation to reject any query_vars values that contain PHP serialization markers. Vendor advisory: consult the official WordPress plugin repository security notice for Friends plugin v3.5.2+ release details.

Affected VersionsENISA

Friends 3.5.1

Affected Packages

euvd friends no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability stems from CWE-502 (Deserialization of Untrusted Data), a critical class of PHP vulnerabilities where user-supplied input is passed directly to PHP's unserialize() function without proper validation. The Friends plugin improperly deserializes the query_vars parameter, allowing attackers to instantiate arbitrary PHP objects. The attack surface is limited by the requirement for authenticated access (subscriber-level minimum) and knowledge of cryptographic salts (SALT_NONCE and SALT_KEY). The real danger manifests only when a Property-Oriented Programming (POP) chain exists in the WordPress ecosystem—typically in other plugins with magic methods (__wakeup, __destruct, __toString) that execute dangerous operations during object instantiation or destruction. This is a common pattern in plugin ecosystems where widely-installed packages like Composer libraries may contain exploitable gadget chains (e.g., in older versions of libraries like Monolog or Guzzle).

Know when Friends gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.5 HIGH
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Patch released
Mar 16, 2026 - 08:56 nvd
Patch available
PoC Detected
Aug 02, 2025 - 01:25 vuln.today
Public exploit code
CVE Published
Jul 12, 2025 - 09:15 nvd
HIGH 7.5

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

The Friends WordPress plugin contains a PHP Object Injection vulnerability affecting version 3.5.1 that could allow subscriber-level users to inject malicious code, but only if additional vulnerable plugins or themes are present on the site. This is a conditional risk requiring both plugin presence and access to site cryptographic keys, making it a contained but important security issue to address promptly.

Business Impact: Medium
Compensating Controls

Apply vendor patch. If patching cannot be immediately deployed: (1) Restrict subscriber-level user access to only trusted internal users; (2) Monitor and audit subscriber account activities; (3) Disable the Friends plugin until patching is complete if it is not critical to operations; (4) Implement Web Application Firewall rules to inspect query_vars parameter for serialized PHP objects; (5) Rotate and strengthen SALT_KEY and SALT_NONCE configuration values.

Threat Intelligence Overview

EPSS Score
0.5%
Top 34% exploitable
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Medium

Priority Score

59
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy