---
title: Security Bulletin NR18-07
source: https://docs.newrelic.com/docs/security/new-relic-security/security-bulletins/security-bulletin-nr18-07
---

## Summary

A security update for the Java, Python, and .NET agents corrects an issue where the agent may report DB query results to New Relic or re-issue an SQL statement.

**Release date:** Mar 7, 2018

**Vulnerability identifier:** NR18-07

**Priority:** High

## Affected software [#affected]

The following New Relic agent versions are affected:

| **Name**     | **Affected version**                                                                                                                                                                                                                                                                                                                                                                                                                                              | **Notes**            | **Remediated version**                                                                                                        |
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| Java agent   | [3.26.1](https://docs.newrelic.com/docs/release-notes/agent-release-notes/java-release-notes/java-agent-3261) to [3.47.0](https://docs.newrelic.com/docs/release-notes/agent-release-notes/java-release-notes/java-agent-3470)                                                                                                                                                                                                                                    | SQL query            | [3.47.1](https://docs.newrelic.com/docs/release-notes/agent-release-notes/java-release-notes)                                 |
| Python agent | [1.1.0.192](https://docs.newrelic.com/docs/release-notes/agent-release-notes/python-release-notes/python-agent-110192) to [2.106.0.87](https://docs.newrelic.com/docs/release-notes/agent-release-notes/python-release-notes/python-agent-2106087)                                                                                                                                                                                                                | SQL query            | [2.106.1.88](https://docs.newrelic.com/docs/release-notes/agent-release-notes/python-release-notes/python-agent-2106188)      |
| .NET agent   | [2.5.112.0](https://docs.newrelic.com/docs/release-notes/agent-release-notes/net-release-notes/net-agent-251120) to [6.21.0.0](https://docs.newrelic.com/docs/release-notes/agent-release-notes/net-release-notes/net-agent-62100) [7.0.2.0](https://docs.newrelic.com/docs/release-notes/agent-release-notes/net-release-notes/net-agent-7020) to [7.1.229](https://docs.newrelic.com/docs/release-notes/agent-release-notes/net-release-notes/net-agent-712290) | SQL query with MySQL | [8.0 or 6.22 (For .NET Framework 3.5)](https://docs.newrelic.com/docs/release-notes/agent-release-notes/python-release-notes) |

## Vulnerability information [#vuln-info]

New Relic agents run explain plans for [Slow Transaction Traces](https://docs.newrelic.com/docs/apm/applications-menu/monitoring/viewing-slow-query-details) and Slow SQL Queries. Previous versions of the agents would run an explain plan on the SQL query by prepending the query with `explain`. This may cause an issue when there are multiple statements separated by semicolons in a single query. The first statement in the string returns its explain plan, but any subsequent statement after that may execute as a general SQL statement. Depending on the language, library, and database, the agent may return the results of the additional statements to New Relic. It is also possible that the additional statements could execute an additional `INSERT` or `UPDATE` command. With this security update, New Relic agents will no longer run explain plans on any query that contains a semicolon as a statement separator.

### Mitigating factors [#factors]

-   Many SQL libraries and language frameworks prevent various forms of executing multiple statements with `explain`.
-   Explain plans are off for newer versions of the .NET agent.

## Workarounds

Disable `explain` plans with transaction tracer in the agent configuration:

-   [`transaction_tracer`](https://docs.newrelic.com/docs/agents/java-agent/configuration/java-agent-configuration-config-file#h2-Transaction-tracer) for Java
-   [`transactiontracer`](https://docs.newrelic.com/docs/agents/net-agent/configuration/net-agent-configuration#transaction_tracer) for .NET
-   [`transaction_tracer`](https://docs.newrelic.com/docs/agents/python-agent/configuration/python-agent-configuration#txn-tracer-settings) for Python

## Report security vulnerabilities to New Relic [#report]

New Relic is committed to the security of our customers and their data. If you believe you have found a security vulnerability in one of our products or websites, we welcome and greatly appreciate you reporting it to New Relic's coordinated disclosure program. For more information, see [Reporting security vulnerabilities](https://docs.newrelic.com/docs/security/new-relic-security/data-privacy/reporting-security-vulnerabilities).

## For more help [#more_help]

Additional documentation resources include:.

-   [Upgrade the .NET agent](https://docs.newrelic.com/docs/agents/net-agent/installation/update-net-agent)
-   [Upgrade the Java agent](https://docs.newrelic.com/docs/agents/java-agent/installation/upgrade-java-agent)
-   [Upgrade the Python agent](https://docs.newrelic.com/docs/agents/python-agent/installation-configuration/upgrade-python-agent)
-   [NR Security](https://newrelic.com/security)
