CVE-2024-35182 json
GHSL-2024-014 Meshery SQL Injection vulnerability
published 2024-05-27 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-2591 , GHSA-h7cm-jvpp-69xf , GO-2024-3051
- 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 `GetAllEvents` at the API URL `/api/v2/events`. The sort query parameter read in `events_streamer.go` is directly used to build a SQL query in `events_persister.go`. Version 0.7.22 fixes this issue by using the `SanitizeOrderInput` function.
Patch / fix
- go github.com/layer5io/meshery 0.7.22
- layer5 meshery 0.7.22
- github.com/meshery/meshery@b55f606 commit
- github.com/meshery/meshery#10280 pull request
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
1.57% 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
- layer5 meshery
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
github.com
/meshery/meshery/pull/10280
web, issue-tracking, 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/events_streamer.go#L52
web, product
-
github.com
/meshery/meshery/blob/b331f45c9083d7abf6b90105072b04cd22473de7/server/models/events_persister.go#L47
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2024-35182
advisory
-
github.com
/layer5io/meshery
package
-
securitylab.github.com
/advisories/GHSL-2024-013_GHSL-2024-014_Meshery
advisory
-
github.com
/advisories/GHSA-h7cm-jvpp-69xf
advisory
Sources
- CVE List CVE-2024-35182
- GitHub Advisory GHSA-h7cm-jvpp-69xf
- NVD CVE-2024-35182
- OSV GO-2024-3051
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.