CVE-2026-40330: Masa CMS SQL injection via sortDirection parameter in beanFeed
Masa CMS is an open source content management system. In versions 7.2.0 through 7.2.9, 7.3.0 through 7.3.14, 7.4.0 through 7.4.9, and 7.5.0 through 7.5.2, a SQL injection vulnerability exists in the beanFeed.cfc component within the getQuery function's handling of the sortDirection parameter. The parameter value is concatenated directly into SQL queries without sanitization or parameterization. An unauthenticated remote attacker can exploit this to extract sensitive information, modify or delete database records, or potentially achieve remote code execution on the underlying database server.
This issue has been fixed in versions 7.2.10, 7.3.15, 7.4.10, and 7.5.3. As a workaround, use a WAF to block or restrict access to the beanFeed.cfc component, or deploy rules to detect SQL injection patterns targeting the sortDirection parameter.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Masa CMSto a version that resolves this vulnerability.Fixed in 7.2.10 - Upgrade
Upgrade
Masa CMSto a version that resolves this vulnerability.Fixed in 7.3.15 - Upgrade
Upgrade
Masa CMSto a version that resolves this vulnerability.Fixed in 7.4.10 - Upgrade
Upgrade
Masa CMSto a version that resolves this vulnerability.Fixed in 7.5.3 - Compensating control
Use a WAF to block or restrict access to the beanFeed.cfc component to mitigate exploitation of the SQL injection in getQuery's handling of the sortDirection parameter.
- Compensating control
Deploy WAF rules to detect SQL injection patterns targeting the sortDirection parameter.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-40330?
CVE-2026-40330 is classified as a high severity vulnerability due to its potential impact on data confidentiality and integrity.
How do I fix CVE-2026-40330?
To fix CVE-2026-40330, upgrade Masa CMS to versions 7.5.3 or later to avoid SQL injection through the sortDirection parameter.
Which versions of Masa CMS are affected by CVE-2026-40330?
Versions 7.2.0 to 7.2.9, 7.3.0 to 7.3.14, 7.4.0 to 7.4.9, and 7.5.0 to 7.5.2 of Masa CMS are affected by CVE-2026-40330.
What type of vulnerability is CVE-2026-40330?
CVE-2026-40330 is an SQL injection vulnerability that allows attackers to manipulate database queries.
Can CVE-2026-40330 lead to unauthorized access?
Yes, CVE-2026-40330 can lead to unauthorized access to sensitive data if successfully exploited.