The vulnerability exists in the get_data function within litellm/proxy/utils.py. The security advisory and the provided patch clearly indicate a SQL injection vulnerability. The patch replaces a formatted string in the SQL query with a parameterized query, which is the standard mitigation for SQL injection. The vulnerable line WHERE v.token = '{token}' directly uses the user-controlled token variable in the SQL query. The fix changes this to WHERE v.token = $1 and passes the token as a parameter to the database driver, preventing the injection. The vulnerability is triggered when the proxy handles an error, and an unauthenticated attacker can exploit it by sending a specially crafted Authorization header.