# CVE-2024-35181: GHSL-2024-013 Meshery SQL Injection vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 2.45% (percentile 85, 2026-11-26)
- **CWE:** CWE-89
- **Aliases:** GHSA-9f24-jrv4-f8g5, GO-2024-3050
- **Published:** 2024-05-27T18:18:37.054Z
- **Modified:** 2026-06-17T07:34:29.823Z

## Who should check

- Projects that depend on Go package github.com/layer5io/meshery (\< 0.7.22)
- Anyone running meshery \< 0.7.22

## Description

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.

## Affected and fixed versions

- Go `github.com/layer5io/meshery`: affected \< 0.7.22; fixed 0.7.22 (osv)
- meshery: \< 0.7.22 (cvelist)

## Mitigation

- Upgrade github.com/layer5io/meshery to 0.7.22 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-35181. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35181.md
Affected: github.com/layer5io/meshery < 0.7.22
Fixed in: 0.7.22

Steps:
1. Search this machine and project for github.com/layer5io/meshery (Go), meshery: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-35181 being exploited?

There is no confirmed exploitation: CVE-2024-35181 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 2.45% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-35181?

Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-35181?

github.com/layer5io/meshery \< 0.7.22.

### Is there a fix for CVE-2024-35181?

Yes. Fixed in 0.7.22. Upgrade github.com/layer5io/meshery to 0.7.22 or later.

### How do I check if I'm affected by CVE-2024-35181?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-35181>
- vendor: <https://securitylab.github.com/advisories/GHSL-2024-013_GHSL-2024-014_Meshery>
- vendor: <https://github.com/advisories/GHSA-9f24-jrv4-f8g5>
- patch: <https://github.com/meshery/meshery/pull/10207>
- patch: <https://github.com/meshery/meshery/pull/10280>
- patch: <https://github.com/meshery/meshery/commit/8e995ce21af02d32ef61689c1e1748a745917f13>
- patch: <https://github.com/meshery/meshery/commit/b55f6064d0c6a965aee38f30281f99da7dc4420c>
- exploit: <https://securitylab.github.com/advisories/GHSL-2024-013_GHSL-2024-014_Meshery/>
- other: <https://github.com/meshery/meshery/blob/b331f45c9083d7abf6b90105072b04cd22473de7/server/handlers/meshsync_handler.go#L187>
- other: <https://github.com/layer5io/meshery>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-35181>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-9f24-jrv4-f8g5> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-3050> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-35181> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-35181>
