CVE-2024-35181 json
GHSL-2024-013 Meshery SQL Injection vulnerability
published 2024-05-27 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-2546 , GHSA-9f24-jrv4-f8g5 , GO-2024-3050
- cvss
- 5.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 75%
- public exploits
- 0
- none known
Summary
Meshery is an open source, cloud native manager that enables the design and management of Kubernetes-based infrastructure and applications. A SQL injection vulnerability in Meshery prior to version 0.7.22 may lead to arbitrary file write by using a SQL injection stacked queries payload, and the ATTACH DATABASE command. Additionally, attackers may be able to access and modify any data stored in the database, like performance profiles (which may contain session cookies), Meshery application data, or any Kubernetes configuration added to the system. The Meshery project exposes the function `GetMeshSyncResourcesKinds` at the API URL `/api/system/meshsync/resources/kinds`. The order query parameter is directly used to build a SQL query in `meshync_handler.go`. Version 0.7.22 fixes this issue.
Patch / fix
- go github.com/layer5io/meshery 0.7.22
- layer5 meshery 0.7.22
- github.com/meshery/meshery@8e995ce commit
- github.com/meshery/meshery@b55f606 commit
- github.com/meshery/meshery#10207 pull request
- github.com/meshery/meshery#10280 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
1.60% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- securitylab.github.com https://securitylab.github.com/advisories/GHSL-2024-013_GHSL-2024-014_Meshery/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N |
| GitHub | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N |
| NVD | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/layer5io/meshery | <0.7.22 all versions |
0.7.22 |
Affected products
- meshery meshery
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
github.com
/meshery/meshery/pull/10207
web, issue-tracking, patch
-
github.com
/meshery/meshery/pull/10280
web, issue-tracking, patch
-
github.com
/meshery/meshery/commit/8e995ce21af02d32ef61689c1e1748a745917f13
web, patch
-
github.com
/meshery/meshery/commit/b55f6064d0c6a965aee38f30281f99da7dc4420c
web, patch
-
securitylab.github.com
/advisories/GHSL-2024-013_GHSL-2024-014_Meshery/
exploit, third-party-advisory
-
github.com
/meshery/meshery/blob/b331f45c9083d7abf6b90105072b04cd22473de7/server/handlers/meshsync_handler.go#L187
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2024-35181
advisory
-
github.com
/layer5io/meshery
package
-
securitylab.github.com
/advisories/GHSL-2024-013_GHSL-2024-014_Meshery
advisory
-
github.com
/advisories/GHSA-9f24-jrv4-f8g5
advisory
Sources
- CVE List CVE-2024-35181
- GitHub Advisory GHSA-9f24-jrv4-f8g5
- NVD CVE-2024-35181
- OSV GO-2024-3050
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.