# CVE-2024-13895: Code Snippets CPT <= 2.1.0 - Authenticated (Subscriber+) Arbitrary Shortcode Execution

- Severity: Medium 4.3 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 22% of CVEs (2026-12-01)
- Published: 2025-03-08T02:24:04.601Z
- Modified: 2026-06-17T07:02:56.550Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Wordfence

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

(As written by CVE List.)

## Affected

- jtsternberg Code Snippets CPT: up to 2.1.0
- jtsternberg code_snippets_cpt: up to 2.1.0

## Every score

- Wordfence: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/65f521f4-1968-4c43-a3f0-b0f81632d7aa?source=cve> (third-party-advisory)
- <https://plugins.trac.wordpress.org/browser/code-snippets-cpt/trunk/lib/CodeSnippitButton.php#L201> (product)

## Sources

- CVE List: [CVE-2024-13895](https://www.cve.org/CVERecord?id=CVE-2024-13895), CVE Terms of Use, modified 2026-04-08
- NVD: [CVE-2024-13895](https://nvd.nist.gov/vuln/detail/CVE-2024-13895), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-13895 · Whole record: https://cve.day/CVE-2024-13895.json · Rebuilt by cve.day 2026-11-25T22:58:52.241Z
