
8/3/2025

12/3/2025
CVE-2024-13895: Code Snippets CPT <= 2.1.0 - Authenticated (Subscriber+) Arbitrary Shortcode Execution
First published: Sat Mar 08 2025(Updated: )
The The Code Snippets CPT plugin for WordPress is vulnerable to arbitrary shortcode execution in all versions up to, and including, 2.1.0. This is due to the software allowing users to execute an action that does not properly validate a value before running do_shortcode. This makes it possible for authenticated attackers, with Subscriber-level access and above, to execute arbitrary shortcodes.
Credit: security@wordfence.com
Affected Software | Affected Version | How to fix |
---|
Code Snippets CPT | <=2.1.0 | |
Code Snippets | <=2.1.0 | |
Never miss a vulnerability like this again
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
Frequently Asked Questions
What is the severity of CVE-2024-13895?
CVE-2024-13895 is considered a high severity vulnerability due to its potential for arbitrary shortcode execution.
How do I fix CVE-2024-13895?
To mitigate CVE-2024-13895, update the Code Snippets CPT plugin to version 2.1.1 or later.
Who is affected by CVE-2024-13895?
All users of the Code Snippets CPT plugin for WordPress with versions up to and including 2.1.0 are affected by CVE-2024-13895.
What type of vulnerability is CVE-2024-13895?
CVE-2024-13895 is a vulnerability that allows for arbitrary shortcode execution due to inadequate input validation.
Can I continue using Code Snippets CPT version 2.1.0 after CVE-2024-13895?
It is not recommended to use Code Snippets CPT version 2.1.0 or earlier after the discovery of CVE-2024-13895 due to security risks.
- agent/references
- agent/title
- agent/type
- agent/description
- agent/first-publish-date
- agent/weakness
- agent/guess-ai
- agent/software-canonical-lookup
- agent/software-canonical-lookup-request
- agent/author
- agent/source
- agent/event
- collector/mitre-cve
- source/MITRE
- agent/severity
- agent/last-modified-date
- agent/softwarecombine
- agent/tags
- collector/nvd-api
- source/NVD
- vendor/code snippets
- canonical/code snippets cpt
- vendor/jtsternberg
- canonical/code snippets
- version/code snippets/2.1.0
Contact
SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.coBy 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203