Skip to content
Vulnerability Intelligence

CVE-2021-31856

Critical

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).

Published Apr 28, 2021 · Updated Aug 5, 2026

Key Facts

Patch immediately
  • CVE-2021-31856 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Meshery (Layer5).
  • It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
  • EPSS estimates a 75% probability of exploitation in the next 30 days.
  • No fixed version is listed yet; check the vendor advisory for mitigations.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

CVSS v3.1

9.8

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS (30-day exploit likelihood)

75%

Higher than 99.5% of all scored CVEs

Exploited in the wild

No known

Not in a known-exploited catalog

Public exploit code

None known

Get the full CVE-2021-31856 brief as a PDF

Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.

Description

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).

Affected Products

1 affected entries in total
ProductAffected versionsFixed in
MesheryLayer50.5.2n/a

Timeline

  1. Publicly disclosed

    Apr 28, 2021

  2. Last updated

    Aug 5, 2026

Weakness Type

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

References

FAQ

Common Questions.

Is CVE-2021-31856 Running On Your Attack Surface?

Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.

Request A Demo