CVE-2026-2503 ElementCamp <= 2.3.6 - Authenticated (Author+) SQL Injection via 'meta_query[compare]' Parameter

Medium 6.5 Published Updated

Authenticated attackers with Author-level access can exploit SQL injection in the ElementCamp WordPress plugin to extract sensitive database information.

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-2026-2503?

CVE-2026-2503 is a medium-severity SQL injection vulnerability in wpdive ElementCamp, published on 21 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The ElementCamp plugin for WordPress is vulnerable to time-based SQL Injection via the 'meta_query[compare]' parameter in the 'tcg_select2_search_post' AJAX action in all versions up to, and including, 2.3.6. This is due to the user-supplied compare value being placed as an SQL operator in the query without validation against an allowlist of comparison operators. The value is passed through esc_sql(), but since the payload operates as an operator (not inside quotes), esc_sql() has no effect on payloads that don't contain quote characters. This makes it possible for authenticated attackers, with Author-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

Weakness: CWE-89

Which versions are affected by CVE-2026-2503?

How do I fix CVE-2026-2503?

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

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-2503 being exploited?

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

Sources

Also known as GHSA-r7mg-x5pg-j8pc.

Is CVE-2026-2503 in your software?

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

Check your SBOMs for free