CVE-2021-47954 LayerBB 1.1.4 SQL Injection via search_query Parameter
Unauthenticated attackers can extract sensitive database information via SQL injection in the search_query parameter of LayerBB.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-47954?
CVE-2021-47954 is a high-severity SQL injection vulnerability in LayerBB, published on 16 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
LayerBB 1.1.4 contains an SQL injection vulnerability that allows unauthenticated attackers to manipulate database queries by injecting SQL code through the search_query parameter. Attackers can send POST requests to /search.php with malicious search_query values using CASE WHEN statements to extract sensitive database information.
Weakness: CWE-89
Which versions are affected by CVE-2021-47954?
How do I fix CVE-2021-47954?
No fix has been published for CVE-2021-47954 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-2021-47954 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-47954 exists.
Sources
Also known as GHSA-c38h-whgr-4j82.