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 Software
Related
{"id": "CVE-2021-31856", "vendorId": null, "type": "cve", "bulletinFamily": "NVD", "title": "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).", "published": "2021-04-28T06:15:00", "modified": "2021-05-06T21:56:00", "cvss": {"score": 7.5, "vector": "AV:N/AC:L/Au:N/C:P/I:P/A:P"}, "cvss2": {"cvssV2": {"version": "2.0", "vectorString": "AV:N/AC:L/Au:N/C:P/I:P/A:P", "accessVector": "NETWORK", "accessComplexity": "LOW", "authentication": "NONE", "confidentialityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "baseScore": 7.5}, "severity": "HIGH", "exploitabilityScore": 10.0, "impactScore": 6.4, "acInsufInfo": false, "obtainAllPrivilege": false, "obtainUserPrivilege": false, "obtainOtherPrivilege": false, "userInteractionRequired": false}, "cvss3": {"cvssV3": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH", "baseScore": 9.8, "baseSeverity": "CRITICAL"}, "exploitabilityScore": 3.9, "impactScore": 5.9}, "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-31856", "reporter": "cve@mitre.org", "references": ["https://meshery.io", "https://github.com/layer5io/meshery/pull/2745"], "cvelist": ["CVE-2021-31856"], "immutableFields": [], "lastseen": "2022-03-23T18:10:17", "viewCount": 51, "enchantments": {"dependencies": {"references": [{"type": "githubexploit", "idList": ["981F1421-1453-5208-9CF8-3521C87DB40D"]}], "rev": 4}, "score": {"value": 5.5, "vector": "NONE"}, "twitter": {"counter": 4, "modified": "2021-04-29T09:46:37", "tweets": [{"link": "https://twitter.com/WolfgangSesin/status/1390438801420570624", "text": "New post from https://t.co/uXvPWJy6tj?amp=1 (CVE-2021-31856 (meshery)) has been published on https://t.co/076kdudoCr?amp=1"}, {"link": "https://twitter.com/WolfgangSesin/status/1390438801420570624", "text": "New post from https://t.co/uXvPWJy6tj?amp=1 (CVE-2021-31856 (meshery)) has been published on https://t.co/076kdudoCr?amp=1"}, {"link": "https://twitter.com/www_sesin_at/status/1390438790385311744", "text": "New post from https://t.co/9KYxtdZjkl?amp=1 (CVE-2021-31856 (meshery)) has been published on https://t.co/IT7EFsKbLZ?amp=1"}, {"link": "https://twitter.com/www_sesin_at/status/1390438790385311744", "text": "New post from https://t.co/9KYxtdZjkl?amp=1 (CVE-2021-31856 (meshery)) has been published on https://t.co/IT7EFsKbLZ?amp=1"}]}, "backreferences": {"references": [{"type": "githubexploit", "idList": ["981F1421-1453-5208-9CF8-3521C87DB40D"]}]}, "exploitation": null, "vulnersScore": 5.5}, "_state": {"dependencies": 0}, "_internal": {}, "cna_cvss": {"cna": null, "cvss": {}}, "cpe": ["cpe:/a:layer5:meshery:0.5.2"], "cpe23": ["cpe:2.3:a:layer5:meshery:0.5.2:*:*:*:*:*:*:*"], "cwe": ["CWE-89"], "affectedSoftware": [{"cpeName": "layer5:meshery", "version": "0.5.2", "operator": "eq", "name": "layer5 meshery"}], "affectedConfiguration": [], "cpeConfiguration": {"CVE_data_version": "4.0", "nodes": [{"operator": "OR", "children": [], "cpe_match": [{"vulnerable": true, "cpe23Uri": "cpe:2.3:a:layer5:meshery:0.5.2:*:*:*:*:*:*:*", "cpe_name": []}]}]}, "extraReferences": [{"url": "https://meshery.io", "name": "https://meshery.io", "refsource": "MISC", "tags": ["Product", "Vendor Advisory"]}, {"url": "https://github.com/layer5io/meshery/pull/2745", "name": "https://github.com/layer5io/meshery/pull/2745", "refsource": "MISC", "tags": ["Patch", "Third Party Advisory"]}]}
{"githubexploit": [{"lastseen": "2021-12-10T15:21:01", "description": "# [Vulnerability Report] CVE-2021-31856: a sql injection in Mesh...", "cvss3": {"exploitabilityScore": 3.9, "cvssV3": {"baseSeverity": "CRITICAL", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "baseScore": 9.8, "privilegesRequired": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "userInteraction": "NONE", "version": "3.1"}, "impactScore": 5.9}, "published": "2021-05-05T07:18:26", "type": "githubexploit", "title": "Exploit for SQL Injection in Layer5 Meshery", "bulletinFamily": "exploit", "cvss2": {"severity": "HIGH", "exploitabilityScore": 10.0, "obtainAllPrivilege": false, "userInteractionRequired": false, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "LOW", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 7.5, "vectorString": "AV:N/AC:L/Au:N/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "acInsufInfo": false, "impactScore": 6.4, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-31856"], "modified": "2021-05-05T08:55:20", "id": "981F1421-1453-5208-9CF8-3521C87DB40D", "href": "", "cvss": {"score": 7.5, "vector": "AV:N/AC:L/Au:N/C:P/I:P/A:P"}, "privateArea": 1}]}