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


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
83.47% (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-GITHUBCOMLAYER5IOMESHERYMODELS-1277183
  • published28 Apr 2021
  • disclosed28 Apr 2021
  • creditUnknown

Introduced: 28 Apr 2021

CVE-2021-31856  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

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

Overview

github.com/layer5io/meshery/models is a multi-mesh management plane with initial functionality as a playground to faciliate learning about functionality and performance of different service meshes.

Affected versions of this package are vulnerable to SQL Injection via the REST API. It allows an attacker to execute arbitrary SQL commands via the /experimental/patternfiles endpoint (order parameter in GetMesheryPatterns in models/meshery_pattern_persister.go).

CVSS Base Scores

version 3.1