VDB
Sign up
HIGH7.2

GHSA-chxj-gxww-q98w

Apache NiFi: Improper Escaping of Table Names in CaptureChangeMySQL

Quick fix

GHSA-chxj-gxww-q98w — org.apache.nifi:nifi-cdc-mysql-processors: upgrade to the fixed version with the command below.

# pom.xml: bump <version>2.10.0</version> for org.apache.nifi:nifi-cdc-mysql-processors

Details

Improper escaping of database table names in the CaptureChangeMySQL Processor included with Apache NiFi 1.2.0 through 2.9.0 allows for injecting SQL commands using crafted naming. Manual quoted boundaries added in Apache NiFi 1.8.0 narrowed the scope of potential injection options, but did not cover additional strategies. Apache NiFi installations that do not use the CaptureChangeMySQL Processor are not subject to this vulnerability. Upgrading to Apache NiFi 2.10.0 is the recommended mitigation, which incorporates more robust identifier escaping.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.nifi:nifi-cdc-mysql-processors
Introduced in: 1.2.0Fixed in: 2.10.0
Fix# pom.xml: bump <version>2.10.0</version> for org.apache.nifi:nifi-cdc-mysql-processors

References