CVE-2024-3105 Code injection in Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts

Critical 9.9 Published Updated

Authenticated contributors can execute arbitrary code on the server via the insert_php shortcode in the Woody code snippets WordPress plugin.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-3105?

CVE-2024-3105 is a critical code injection vulnerability in themeisle Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts, published on 15 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-94

Which versions are affected by CVE-2024-3105?

How do I fix CVE-2024-3105?

No fix has been published for CVE-2024-3105 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-3105 being exploited?

There is no known exploitation of CVE-2024-3105 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-vmq4-67rj-g3jw.

Is CVE-2024-3105 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free