SQL Injection and RCE in rudder-server (RudderStack)
CVE-2023-30625 is a critical SQL injection vulnerability in rudder-server, a component of the open source RudderStack Customer Data Platform (CDP). All versions prior to 1.3.0-rc.1 are affected. The vulnerability arises from improper neutralization of user-supplied input in SQL queries, allowing attackers to inject arbitrary SQL. Due to the default superuser privileges of the 'rudder' PostgreSQL role, successful exploitation can escalate to remote code execution (RCE).
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Exploitation of this vulnerability allows unauthenticated attackers to execute arbitrary SQL commands on the backend PostgreSQL database. Given the default superuser privileges of the 'rudder' role, this can lead to full compromise of the database, including arbitrary code execution on the underlying system, data exfiltration, modification, or destruction, and lateral movement within the environment.
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, restrict network access to the rudder-server and the PostgreSQL instance, and remove superuser privileges from the 'rudder' role. Employ web application firewalls (WAFs) to detect and block SQL injection attempts. Monitor logs for suspicious activity indicative of exploitation attempts.
Patch, then assume compromise.
Upgrade rudder-server to version 1.3.0-rc.1 or later, which contains patches addressing the SQL injection vulnerability. Review and restrict database role privileges, ensuring the 'rudder' role does not have unnecessary superuser permissions.
1 exploit validated by Mallory's analysis.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.