CVE-2025-49386 HIGH

CVE-2025-49386: WordPress Preserve Code Formatting Plugin <= 4.0.1 - PHP Object Injection Vulnerability

Vendor Scott Reilly
Product Preserve Code Formatting
Weakness CWE-502 · Unsafe deserialization
Published November 6, 2025
Last update April 28, 2026

CVSS base score

8.8/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What the vulnerability does

01Description

Deserialization of Untrusted Data vulnerability in Scott Reilly Preserve Code Formatting preserve-code-formatting allows Object Injection.This issue affects Preserve Code Formatting: from n/a through <= 4.0.1.

Explanation of Vulnerability in Simple Terms

02Summary

Preserve Code Formatting versions 4.0.1 and earlier contain a deserialization vulnerability that allows authenticated users to execute arbitrary code on the site. An attacker with low-level access can craft malicious serialized data to trigger code execution. This affects all installations running the vulnerable versions.

What an attacker can do

03Attacker Capabilities

Run arbitrary code on the site with the privileges of the web server.

Potential impact on your site

04Site Impact

Any authenticated user can compromise the entire site, including database access and file system control.

Conditions required to exploit

05Prerequisites

Attacker must have a low-privilege user account on the site.

Key dates

06Disclosure timeline

November 6, 2025 CVE published
April 28, 2026 Record updated

Related vulnerabilities

08Related CVE