S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
medium·Product Based Web Vulnerabilities·Updated Dec 17, 2024

CVE-2024-39887 Scanner

CVE-2024-39887 Scanner - SQL Injection vulnerability in Apache Superset

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, ipv4, subdomain
CostFree
3.4k
Times Used
continuous scan runs
5.8k
Continuously Checked
assets under CS
1
Vulnerabilities Found
confirmed findings
References
CVECVE-2024-39887
9.8
CVSSmedium
Exploitable remotely over the internet · low-privilege account sufficient.

An SQL Injection vulnerability in Apache Superset exists due to improper neutralization of special elements used in SQL commands. Specifically, certain engine-specific functions are not checked, which allows attackers to bypass Apache Superset's SQL authorization. To mitigate this, a new configuration key named DISALLOWED_SQL_FUNCTIONS has been introduced. This key disallows the use of the following PostgreSQL functions: version, query_to_xml, inet_server_addr, and inet_client_addr. Additional functions can be added to this list for increased protection. This issue affects Apache Superset: before 4.0.2. Users are recommended to upgrade to version 4.0.2, which fixes the issue.

Attack Vector
Network
Privileges Req.
Low
User Interaction
None
Affected
Apache Supersetby Apache Software Foundation
AFFECTED< 4.0.2SAFE ✓≥ 4.0.2
Updated Aug 22, 2026View on NVD →
Detail

Apache Superset is an open-source data visualization and exploration platform, primarily used for creating dashboards and data reports. It supports a variety of data sources and offers advanced analytics features. Users often deploy Superset in business intelligence (BI) environments to analyze and visualize data interactively. It is widely adopted by organizations for its flexibility and ease of integration with modern data warehouses. Apache Superset provides role-based access control to restrict access to dashboards and data sources. However, a vulnerability exists in earlier versions that could expose users to SQL injection attacks.

The vulnerability in Apache Superset is an SQL Injection, which arises due to improper neutralization of special elements used in SQL commands. The issue is caused by insufficient validation of engine-specific functions. This allows attackers to potentially bypass authorization mechanisms and execute arbitrary SQL queries. The vulnerability primarily affects versions prior to 4.0.2. This can lead to unauthorized access or data manipulation, depending on the attacker's privileges. The issue is mitigated in version 4.0.2, where certain functions are disallowed by a new configuration key.

The SQL injection vulnerability is triggered through certain SQL functions that are improperly handled by Apache Superset's SQL engine. Attackers can exploit this flaw by injecting malicious SQL queries into endpoints that interact with the database. The functions 'version', 'query_to_xml', 'inet_server_addr', and 'inet_client_addr' are specifically vulnerable and can be bypassed to execute arbitrary commands. To mitigate this issue, the new configuration key 'DISALLOWED_SQL_FUNCTIONS' can block these dangerous functions. The injection point exists primarily in the login and chart data API endpoints. Attackers can exploit the vulnerability by sending specially crafted POST requests with SQL injection payloads.

Exploiting this vulnerability can allow attackers to bypass SQL authorization checks and execute arbitrary queries. This could result in unauthorized data access or modification, including potentially sensitive data within the database. In some cases, it could lead to privilege escalation, allowing attackers to gain administrative access. The attacker may also retrieve version information and network details via the vulnerable SQL functions. If fully exploited, the vulnerability could compromise the entire data management system used by Apache Superset. In the worst case, attackers could execute remote code or cause a denial of service.

REFERENCES

Solution Advice
  • Upgrade Apache Superset to version 4.0.2 or later to fix the SQL Injection vulnerability.
  • Enable the DISALLOWED_SQL_FUNCTIONS configuration key to block vulnerable functions such as 'version', 'query_to_xml', 'inet_server_addr', and 'inet_client_addr'.
  • Regularly audit and validate all SQL queries to prevent injection attacks.
  • Consider implementing Web Application Firewalls (WAFs) to detect and block SQL injection attempts.
  • Monitor logs for unusual or unexpected database queries that may indicate attempted exploitation.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.

CVE-2024-39887 Scanner - SQL Injection vulnerability in Apache Superset | S4E