CVE-2025-13035: Code Snippets <= 3.9.1 - Authenticated (Contributor+) PHP Code Injection via extract() and PHP Filter Chains

Published Nov 19, 2025
·
Updated

The Code Snippets plugin for WordPress is vulnerable to PHP Code Injection in all versions up to, and including, 3.9.1. This is due to the plugin's use of extract() on attacker-controlled shortcode attributes within the evaluateshortcodefromflatfile method, which can be used to overwrite the $filepath variable and subsequently passed to requireonce. This makes it possible for authenticated attackers, with Contributor-level access and above, to execute arbitrary PHP code on the server via the [codesnippet] shortcode using PHP filter chains granted they can trick an administrator into enabling the "Enable file-based execution" setting and creating at least one active Content snippet.

Affected Software

1 affected component
Code Snippets Code Snippets<=3.9.1

Event History

Nov 19, 2025
CVE Published
via MITRE·07:46 AM
Data Sourced
via MITRE·07:46 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2025-13035?

CVE-2025-13035 has a high severity rating due to its potential for PHP code injection, threatening the security of WordPress sites using affected versions.

2

How do I fix CVE-2025-13035?

To fix CVE-2025-13035, update the Code Snippets plugin to version 3.9.2 or later, which addresses the vulnerability.

3

Which versions of the Code Snippets plugin are affected by CVE-2025-13035?

All versions of the Code Snippets plugin up to and including 3.9.1 are affected by CVE-2025-13035.

4

What are the potential impacts of CVE-2025-13035?

The potential impacts of CVE-2025-13035 include unauthorized execution of arbitrary PHP code, leading to potential site compromise.

5

How can I determine if my site is vulnerable to CVE-2025-13035?

You can determine if your site is vulnerable to CVE-2025-13035 by checking if you have Code Snippets plugin version 3.9.1 or earlier installed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203