{"id":"CVE-2021-31856","aliases":["EUVD-2021-18731","GHSA-8xr7-2xrh-vgwj"],"status":"published","title":"A SQL Injection vulnerability in the REST API in Layer5 Meshery 0.5.2 allows an attacker to...","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).","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.75384,"percentile":0.99522,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-89"],"published":"2021-04-28T05:14:14Z","modified":"2026-10-20T11:53:47Z","exploits":[{"source":"nuclei","id":"CVE-2021-31856","title":"Layer5 Meshery 0.5.2 - SQL Injection","type":"detection template","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-31856.yaml"},{"source":"pocgithub","id":"ssst0n3/CVE-2021-31856","title":"ssst0n3/CVE-2021-31856","date":"2021-05-05","url":"https://github.com/ssst0n3/CVE-2021-31856"}],"products":[{"vendor":"layer5","product":"meshery"}],"references":[{"url":"https://meshery.io","tags":["x_refsource_MISC","x_transferred","Product","Vendor Advisory","advisory"]},{"url":"https://github.com/layer5io/meshery/pull/2745","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31856"},{"url":"https://github.com/advisories/GHSA-8xr7-2xrh-vgwj"}],"sources":{"cve":[{"id":"CVE-2021-31856","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).","status":"published","published":"2021-04-28T05:14:14Z","modified":"2024-08-03T23:10:30.772Z","updated_at":"2026-11-02T14:33:05.665371Z"}],"euvd":[{"id":"EUVD-2021-18731","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).","status":"published","published":"2021-04-28T05:14:14Z","modified":"2024-08-03T23:10:30Z","updated_at":"2026-11-03T03:24:37.97373Z"}],"ghsa":[{"id":"GHSA-8xr7-2xrh-vgwj","title":"A SQL Injection vulnerability in the REST API in Layer5 Meshery 0.5.2 allows an attacker to...","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).","status":"published","published":"2022-05-24T17:49:00Z","modified":"2023-01-29T05:07:25Z","cwes":["CWE-89"],"updated_at":"2026-11-02T14:46:10.15423Z"}],"nvd":[{"id":"CVE-2021-31856","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).","status":"published","published":"2021-04-28T06:15:07.257Z","modified":"2026-06-17T03:52:21.44Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:06:52.81233Z"}],"osv":[{"id":"CVE-2021-31856","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).","status":"published","published":"2021-04-28T06:15:07.257Z","modified":"2026-10-20T11:53:47.568478726Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:19.483607Z"}]}}
