{"id":"CVE-2024-35182","aliases":["CVE-2024-35182","GHSA-h7cm-jvpp-69xf","GO-2024-3051"],"related":[],"kind":"vulnerability","state":"published","title":"GHSL-2024-014 Meshery SQL Injection vulnerability","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Meshery SQL Injection vulnerability in github.com/layer5io/meshery.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/layer5io/meshery before v0.7.22.","format":"markdown","source":"go"},{"lang":"es","text":"Meshery es un administrador nativo de la nube de código abierto que permite el diseño y la administración de infraestructura y aplicaciones basadas en Kubernetes. Una vulnerabilidad de inyección SQL en Meshery anterior a la versión 0.7.22 puede provocar la escritura arbitraria de archivos mediante un payload de consultas apiladas de inyección SQL y el comando ATTACH DATABASE. Además, los atacantes pueden acceder y modificar cualquier dato almacenado en la base de datos, como perfiles de rendimiento (que pueden contener cookies de sesión), datos de la aplicación Meshery o cualquier configuración de Kubernetes agregada al sistema. El proyecto Meshery expone la función `GetAllEvents` en la URL de API `/api/v2/events`. El parámetro de consulta de clasificación leído en `events_streamer.go` se usa directamente para crear una consulta SQL en `events_persister.go`. La versión 0.7.22 soluciona este problema mediante el uso de la función `SanitizeOrderInput`.","source":"nvd"}],"published":"2024-05-27T18:18:40.373Z","modified":"2026-06-17T07:34:29.950Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:H/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"< 0.7.22","status":"affected"}],"vendor":"meshery","product":"meshery","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"0.7.22","status":"affected"}],"vendor":"layer5","product":"meshery","cpe":"cpe:2.3:a:layer5:meshery:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.7.22"}],"ecosystem":"Go","package":"github.com/layer5io/meshery","purl":"pkg:golang/github.com/layer5io/meshery","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/layer5io/meshery","purl":"pkg:golang/github.com/layer5io/meshery","source":"go"},{"ranges":[{"status":"affected","fixed":"0.7.22"}],"vendor":"layer5","product":"meshery","cpe":"cpe:2.3:a:layer5:meshery:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2024-013_GHSL-2024-014_Meshery/","tags":["exploit","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/meshery/meshery/pull/10280","tags":["issue-tracking","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/meshery/meshery/commit/b55f6064d0c6a965aee38f30281f99da7dc4420c","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/meshery/meshery/blob/b331f45c9083d7abf6b90105072b04cd22473de7/server/handlers/events_streamer.go#L52","tags":["product","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/meshery/meshery/blob/b331f45c9083d7abf6b90105072b04cd22473de7/server/models/events_persister.go#L47","tags":["product","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35182","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/layer5io/meshery","tags":["package"],"sources":["ghsa"]},{"url":"https://securitylab.github.com/advisories/GHSL-2024-013_GHSL-2024-014_Meshery","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/advisories/GHSA-h7cm-jvpp-69xf","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-05-28T14:50:31.141Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-35182","url":"https://www.cve.org/CVERecord?id=CVE-2024-35182","licence":"CVE Terms of Use","modified":"2024-08-13T16:50:48.639Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h7cm-jvpp-69xf","url":"https://github.com/advisories/GHSA-h7cm-jvpp-69xf","licence":"CC-BY-4.0","modified":"2024-08-06T23:12:05.170Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3051","url":"https://pkg.go.dev/vuln/GO-2024-3051","licence":"CC-BY-4.0","modified":"2024-08-06T23:12:05.170Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-35182","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35182","licence":"Public domain","modified":"2026-06-17T07:34:29.950Z"}],"updatedAt":"2026-11-25T22:58:40.954Z","epss":{"score":0.01565,"percentile":0.76027,"date":"2026-12-01T12:00:22.000Z"}}