CVE-2026-40329
SQL Injection in Masa CMS
Publication date: 2026-05-05
Last updated on: 2026-05-05
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| masa_cms | masa_cms | to 7.5.3 (exc) |
| masa_cms | masa_cms | 7.2.10 |
| masa_cms | masa_cms | 7.3.15 |
| masa_cms | masa_cms | 7.4.10 |
| masa_cms | masa_cms | 7.5.3 |
| masa_cms | masa_cms | to 7.5.2 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-89 | The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data. |
Attack-Flow Graph
AI Powered Q&A
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include upgrading Masa CMS to one of the fixed versions: 7.2.10, 7.3.15, 7.4.10, or 7.5.3.
If upgrading immediately is not possible, configure your Web Application Firewall (WAF) to block malicious SQL patterns in the sortBy parameter sent to beanFeed.cfc.
Restrict administrative access to the application and ensure the database user has the least privileges necessary to limit potential damage.
Can you explain this vulnerability to me?
CVE-2026-40329 is a critical SQL injection vulnerability in Masa CMS versions 7.5.2 and earlier. It exists in the beanFeed.cfc component, specifically in the getQuery function's handling of the sortBy parameter. The application does not properly sanitize or parameterize this input before using it in dynamic SQL queries.
This flaw allows an unauthenticated remote attacker to execute arbitrary SQL commands against the database.
The vulnerability is classified under CWE-89 (Improper Neutralization of SQL Injection).
How can this vulnerability impact me? :
An attacker exploiting this vulnerability can gain unauthorized access to sensitive data stored in the database.
They can also modify or delete records, potentially disrupting the integrity and availability of the system.
Additionally, the attacker may escalate privileges to administrative control, leading to full system compromise.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability involves SQL injection through the sortBy parameter in the beanFeed.cfc component. Detection can focus on monitoring and analyzing HTTP requests targeting beanFeed.cfc for suspicious or malicious SQL patterns in the sortBy parameter.
You can use network traffic inspection tools or web server logs to identify attempts to exploit this vulnerability by searching for SQL keywords or injection patterns in requests to beanFeed.cfc.
- Use grep or similar tools on web server logs to find suspicious requests: grep -i 'beanFeed.cfc' /var/log/apache2/access.log | grep -i 'sortBy=.*(union|select|insert|update|delete|drop)'
- Use a web application firewall (WAF) with logging enabled to detect and alert on SQL injection attempts targeting the sortBy parameter.
- Employ tools like sqlmap to test the vulnerability by sending crafted requests to the beanFeed.cfc endpoint with malicious sortBy values.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
This SQL injection vulnerability allows unauthenticated attackers to execute arbitrary SQL commands, potentially leading to unauthorized access, modification, or deletion of sensitive data, as well as privilege escalation.
Such unauthorized access and potential data breaches can negatively impact compliance with data protection regulations and standards like GDPR and HIPAA, which require safeguarding sensitive personal and health information against unauthorized access and ensuring data integrity.
Failure to address this vulnerability could result in violations of these regulations due to exposure or compromise of protected data.