CVE-2024-13895: CWE-94 Improper Control of Generation of Code ('Code Injection') in jtsternberg Code Snippets CPT
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.
AI Analysis
Technical Summary
CVE-2024-13895 is a code injection vulnerability in the jtsternberg Code Snippets CPT WordPress plugin. The flaw arises from insufficient validation of user-supplied input before executing it as a shortcode via do_shortcode. Authenticated attackers with Subscriber-level privileges or above can exploit this to execute arbitrary shortcodes, potentially impacting the integrity of the site. The vulnerability affects all versions up to 2.1.0.
Potential Impact
The vulnerability allows authenticated users with relatively low privileges (Subscriber-level and above) to execute arbitrary shortcodes. While this does not directly affect confidentiality or availability, it can lead to unauthorized code execution within the WordPress environment, potentially impacting site integrity or enabling further attacks. No known exploits are reported in the wild at this time.
Mitigation Recommendations
No official patch or fix is currently available for this vulnerability. Users should monitor the vendor's advisory for updates. Until a fix is released, restrict Subscriber-level access where possible and consider disabling or removing the Code Snippets CPT plugin if it is not essential. Avoid granting unnecessary privileges to users to reduce exploitation risk.
CVE-2024-13895: CWE-94 Improper Control of Generation of Code ('Code Injection') in jtsternberg Code Snippets CPT
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2024-13895 is a code injection vulnerability in the jtsternberg Code Snippets CPT WordPress plugin. The flaw arises from insufficient validation of user-supplied input before executing it as a shortcode via do_shortcode. Authenticated attackers with Subscriber-level privileges or above can exploit this to execute arbitrary shortcodes, potentially impacting the integrity of the site. The vulnerability affects all versions up to 2.1.0.
Potential Impact
The vulnerability allows authenticated users with relatively low privileges (Subscriber-level and above) to execute arbitrary shortcodes. While this does not directly affect confidentiality or availability, it can lead to unauthorized code execution within the WordPress environment, potentially impacting site integrity or enabling further attacks. No known exploits are reported in the wild at this time.
Mitigation Recommendations
No official patch or fix is currently available for this vulnerability. Users should monitor the vendor's advisory for updates. Until a fix is released, restrict Subscriber-level access where possible and consider disabling or removing the Code Snippets CPT plugin if it is not essential. Avoid granting unnecessary privileges to users to reduce exploitation risk.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- Wordfence
- Date Reserved
- 2025-02-20T16:13:21.401Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 699f6d19b7ef31ef0b56df1c
Added to database: 2/25/2026, 9:43:53 PM
Last enriched: 4/9/2026, 1:25:41 PM
Last updated: 4/12/2026, 2:59:41 AM
Views: 15
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.