Critical
Security advisory
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).
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-31856
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:08 UTC · Revision 1
Source evidence
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).
osv:CVE-2021-31856
Complete source record
{
"id": "2d1e52a7f7aa6e5f383bfb620a05cfcabb766a6f826f6569c3e67b2424460fd7",
"url": "https://osv.dev/vulnerability/CVE-2021-31856",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-31856",
"summary": "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).",
"evidence": "osv:CVE-2021-31856",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2021-31856",
"aliases": [
"CVE-2021-31856"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/meshery/meshery",
"type": "GIT",
"events": [
{
"introduced": "0f9a8e948abaf323cff4e57863be8d19ad10ff3c"
},
{
"last_affected": "0f9a8e948abaf323cff4e57863be8d19ad10ff3c"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:layer5:meshery:0.5.2:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.5.2"
},
{
"last_affected": "0.5.2"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"0.5.2",
"v0.5.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-31856.json"
}
}
],
"modified": "2026-10-20T11:53:47.568478726Z",
"provider": "osv",
"references": [
"https://meshery.io",
"https://github.com/layer5io/meshery/pull/2745"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-31856",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387239,
"published_at": "2021-04-28T06:15:07.257+00:00"
}