CVE-2026-40329 SQL Injection vulnerability via sortBy in beanFeed
Unauthenticated attackers can execute arbitrary SQL commands via the sortBy parameter in Masa CMS, leading to data theft, modification, or privilege escalation.
- 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-2026-40329?
CVE-2026-40329 is a critical SQL injection vulnerability in MasaCMS, published on 5 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Masa CMS is an open source content management system. In versions 7.5.2 and earlier, a SQL injection vulnerability exists in the beanFeed.cfc component within the getQuery function's processing of the sortBy parameter. The application fails to properly sanitize or parameterize this input before incorporating it into dynamic SQL statements. An unauthenticated remote attacker can execute arbitrary SQL commands against the database, potentially gaining access to sensitive data, modifying or deleting records, or escalating privileges to administrative control.
This issue has been fixed in versions 7.2.10, 7.3.15, 7.4.10, and 7.5.3. As a workaround, configure WAF rules to block malicious SQL patterns in the sortBy parameter sent to beanFeed.cfc.
Weakness: CWE-89
Which versions are affected by CVE-2026-40329?
How do I fix CVE-2026-40329?
No fix has been published for CVE-2026-40329 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-40329 being exploited?
There is no known exploitation of CVE-2026-40329 in the wild and no public exploit code.
Sources
Also known as GHSA-3xpq-q494-8qq4.