CVE-2026-56049

WordPress Post Snippets plugin <= 4.0.19 - Remote Code Execution (RCE) vulnerability

Published Jun 25, 2026 CVSS 3.1 · 8.5 High EPSS < 1% KEV · Not listed
Description
Contributor Remote Code Execution (RCE) in Post Snippets <= 4.0.19 versions.

Analysis

AI-generated

Technical impact

The vulnerability in the WordPress Post Snippets plugin allows a contributor to execute arbitrary PHP code on the server running WordPress because the plugin fails to properly validate or sanitize code submitted through the snippet editor. This flaw is identified as CWE-94 and can result in full compromise of the web application and underlying operating system if an attacker can place malicious snippets. The impact is therefore a high‑severity remote code execution capable of performing any action the web server is allowed to do.

Affected Systems

The affected product is the Post Snippets plugin for WordPress, version 4.0.19 and earlier. Sites that have installed or are using these legacy versions are vulnerable regardless of user role, as the plugin accepts code submission from any authenticated contributor. The nominal vendor is Post Snippets and the product is named Post Snippets.

Risk and Exploitability

The CVSS score is 8.5, indicating a high severity and large exploitation scope. No EPSS data is available, so an estimate of exploitation probability cannot be stated. The vulnerability is not listed in the CISA KEV catalog. Based on the description, the likely attack vector is through the plugin’s snippet submission interface; since the code is executed during normal WordPress operation, an attacker with contributor permissions can inject malicious code that will run as part of the site’s PHP runtime. If the attacker can obtain authenticated contributor access, the exploit can be carried out without additional preconditions. The lack of defensive checks makes it straightforward for a determined attacker to achieve remote code execution.

Remediation

Vendor Solution

Update the WordPress Post Snippets Plugin to the latest available version (at least 4.1.0).


OpenCVE Recommended Actions

  • Update the Post Snippets plugin to version 4.1.0 or later, which removes the code execution flaw.
  • If an immediate update is not possible, disable the Post Snippets plugin or remove it from the WordPress installation to stop all snippet processing.
  • Review all existing snippets for embedded code, and delete or sanitize any that contain potentially malicious content.

Generated by OpenCVE AI on June 25, 2026 at 15:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Postsnippets
Postsnippets post Snippets
Wordpress
Wordpress wordpress
Vendors & Products Postsnippets
Postsnippets post Snippets
Wordpress
Wordpress wordpress
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Contributor Remote Code Execution (RCE) in Post Snippets <= 4.0.19 versions.
Title WordPress Post Snippets plugin <= 4.0.19 - Remote Code Execution (RCE) vulnerability
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 8.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
Patchstack
Published
Updated
Jun 25, 2026, 2:16 PM
Reserved
Jun 18, 2026, 2:37 PM
Status
Deferred
Published
Jun 25, 2026, 2:16 PM
Modified
Jun 25, 2026, 3:16 PM