CVE-2024-12563 s2Member Pro <= 250214 - Authenticated (Contributor+) Local File Inclusion to Remote Code Execution via Shortcode

High 8.8 Published Updated

Authenticated contributors can exploit a local file inclusion vulnerability in s2Member Pro to execute arbitrary PHP code on the server.

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-12563?

CVE-2024-12563 is a high-severity path traversal vulnerability in WP Sharks s2Member Pro, published on 18 Mar 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The s2Member Pro plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 250214 via the 'template' attribute. This makes it possible for authenticated attackers, with contributor-level and above permissions, to include and execute arbitrary files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution.

Weakness: CWE-98

Which versions are affected by CVE-2024-12563?

How do I fix CVE-2024-12563?

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

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-12563 being exploited?

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

Sources

Also known as GHSA-wf99-6gw6-9hpv.

Is CVE-2024-12563 in your software?

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

Check your SBOMs for free