Description
Contributor Remote Code Execution (RCE) in Post Snippets <= 4.0.19 versions.
Published: 2026-06-25
Score: 8.5 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

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 yet.

History

Thu, 25 Jun 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Postsnippets
Postsnippets post Snippets
Wordpress
Wordpress wordpress
Vendors & Products Postsnippets
Postsnippets post Snippets
Wordpress
Wordpress wordpress

Thu, 25 Jun 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 25 Jun 2026 14:00:00 +0000

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'}


Subscriptions

Postsnippets Post Snippets
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Patchstack

Published:

Updated: 2026-06-25T14:16:50.487Z

Reserved: 2026-06-18T14:37:51.351Z

Link: CVE-2026-56049

cve-icon Vulnrichment

Updated: 2026-06-25T14:16:46.580Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-25T23:00:13Z

Weaknesses
  • CWE-94

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