PT-2025-47445

CVE-2025-13035

·

Published

2025-11-18

·

Updated

2025-11-24

Description by

CVSS 3.1
8.0
High
MetricsAV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Code Snippets versions prior to 3.9.1
Description The Code Snippets plugin for WordPress is susceptible to PHP Code Injection in versions up to and including 3.9.1. This occurs because the plugin utilizes extract() on shortcode attributes controlled by attackers within the evaluate shortcode from flat file method. This can overwrite the filepath variable, which is then used with require once. Authenticated attackers with Contributor-level access or higher can execute arbitrary PHP code on the server through the [code snippet] shortcode. This requires an administrator to enable the "Enable file-based execution" setting and create at least one active Content snippet. The extract() function is used to import variables from an array into the current scope.
Recommendations Update Code Snippets to version 3.9.1 or later.
Exploitability
Fix
Impacts
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾