Skip to main content

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

CVE-2024-35182

Severity High
Score 8.1/10

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 versions v0.6.135 through v0.7.21 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, such as 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".

  • LOW
  • NETWORK
  • HIGH
  • UNCHANGED
  • NONE
  • LOW
  • HIGH
  • NONE

CWE-89 - SQL Injection

Structured Query Language (SQL) injection attacks are one of the most common types of vulnerabilities. They exploit weaknesses in vulnerable applications to gain unauthorized access to backend databases. This often occurs when an attacker enters unexpected SQL syntax in an input field. The resulting SQL statement behaves in the background in an unintended manner, which allows the possibility of unauthorized data retrieval, data modification, execution of database administration operations, and execution of commands on the operating system.

Advisory Timeline

  • Published