{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "0.5.2"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "0f9a8e948abaf323cff4e57863be8d19ad10ff3c"
            }
          ],
          "repo": "https://github.com/layer5io/meshery",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "A SQL Injection vulnerability in the REST API in Layer5 Meshery 0.5.2 allows an attacker to execute arbitrary SQL commands via the /experimental/patternfiles endpoint (order parameter in GetMesheryPatterns in models/meshery_pattern_persister.go).",
  "id": "CVE-2021-31856",
  "modified": "2026-03-13T21:50:01.840605016Z",
  "published": "2021-04-28T06:15:07.257Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://meshery.io"
    },
    {
      "type": "FIX",
      "url": "https://github.com/layer5io/meshery/pull/2745"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}