New Relic .NET Agent before 6.3.123.0 adds SQL injection flaws to safe applications via vectors involving failure to escape quotes during use of the Slow Queries feature, as demonstrated by a mishandled quote in a VALUES clause of an INSERT statement, after bypassing a SET SHOWPLAN_ALL ON protection mechanism.
https://github.com/advisories/GHSA-2rvx-cvfc-mcp2
https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-2049
https://blog.seanmcelroy.com/2017/05/26/sql-injection-with-new-relic-patched/