SQL Injection Affecting github.com/layer5io/meshery/server/models package, versions <0.7.22


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (12th 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-GITHUBCOMLAYER5IOMESHERYSERVERMODELS-7148574
  • published28 May 2024
  • disclosed27 May 2024
  • credit@atorralba (Tony Torralba)

Introduced: 27 May 2024

CVE-2024-35181  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade github.com/layer5io/meshery/server/models to version 0.7.22 or higher.

Overview

github.com/layer5io/meshery/server/models is a collection of error codes for Meshery models

Affected versions of this package are vulnerable to SQL Injection via the GetMeshSyncResourcesKinds function that is exposed through /api/system/meshsync/resources/kinds. An attacker can modify or access sensitive data, including performance profiles and Kubernetes configurations, by injecting SQL commands through the order query parameter.

PoC

http://(server):9081/api/system/meshsync/resources/kinds?order=1%3bINSERT+INTO+performance_profiles+(metadata)+VALUES+("injected+data")--

CVSS Scores

version 3.1