{"id":"GHSA-r969-8v3h-23v9","summary":"Apache NiFi Code Injection vulnerability","details":"Apache NiFi 0.0.2 through 1.22.0 include Processors and Controller Services that support HTTP URL references for retrieving drivers, which allows an authenticated and authorized user to configure a location that enables custom code execution. The resolution introduces a new Required Permission for referencing remote resources, restricting configuration of these components to privileged users. The permission prevents unprivileged users from configuring Processors and Controller Services annotated with the new Reference Remote Resources restriction. Upgrading to Apache NiFi 1.23.0 is the recommended mitigation.","aliases":["BIT-nifi-2023-36542","CVE-2023-36542"],"modified":"2025-09-15T07:43:35.934588Z","published":"2023-07-29T09:30:15Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2023-07-31T22:03:10Z","nvd_published_at":"2023-07-29T08:15:48Z","cwe_ids":["CWE-94"],"severity":"HIGH"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36542"},{"type":"WEB","url":"https://github.com/apache/nifi/commit/532578799c"},{"type":"PACKAGE","url":"https://github.com/apache/nifi"},{"type":"WEB","url":"https://issues.apache.org/jira/browse/NIFI-11744"},{"type":"WEB","url":"https://lists.apache.org/thread/swnly3dzhhq9zo3rofc8djq77stkhbof"},{"type":"WEB","url":"https://nifi.apache.org/security.html#CVE-2023-36542"},{"type":"WEB","url":"http://seclists.org/fulldisclosure/2023/Jul/43"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2023/07/29/1"}],"affected":[{"package":{"name":"org.apache.nifi:nifi-cdc-mysql-bundle","ecosystem":"Maven","purl":"pkg:maven/org.apache.nifi/nifi-cdc-mysql-bundle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.2"},{"fixed":"1.23.0"}]}],"versions":["1.10.0","1.11.0","1.11.1","1.11.2","1.11.3","1.11.4","1.12.0","1.12.1","1.13.0","1.13.1","1.13.2","1.14.0","1.15.0","1.15.1","1.15.2","1.15.3","1.16.0","1.16.1","1.16.2","1.16.3","1.17.0","1.18.0","1.19.0","1.19.1","1.2.0","1.20.0","1.21.0","1.22.0","1.3.0","1.4.0","1.5.0","1.6.0","1.7.0","1.7.1","1.8.0","1.9.0","1.9.1","1.9.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/07/GHSA-r969-8v3h-23v9/GHSA-r969-8v3h-23v9.json"}},{"package":{"name":"org.apache.nifi:nifi-jms-processors","ecosystem":"Maven","purl":"pkg:maven/org.apache.nifi/nifi-jms-processors"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.2"},{"fixed":"1.23.0"}]}],"versions":["0.6.0","0.6.1","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","1.0.0","1.0.0-BETA","1.0.1","1.1.0","1.1.1","1.1.2","1.10.0","1.11.0","1.11.1","1.11.2","1.11.3","1.11.4","1.12.0","1.12.1","1.13.0","1.13.1","1.13.2","1.14.0","1.15.0","1.15.1","1.15.2","1.15.3","1.16.0","1.16.1","1.16.2","1.16.3","1.17.0","1.18.0","1.19.0","1.19.1","1.2.0","1.20.0","1.21.0","1.22.0","1.3.0","1.4.0","1.5.0","1.6.0","1.7.0","1.7.1","1.8.0","1.9.0","1.9.1","1.9.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/07/GHSA-r969-8v3h-23v9/GHSA-r969-8v3h-23v9.json"}},{"package":{"name":"org.apache.nifi:nifi-standard-processors","ecosystem":"Maven","purl":"pkg:maven/org.apache.nifi/nifi-standard-processors"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.2"},{"fixed":"1.23.0"}]}],"versions":["0.0.2-incubating","0.1.0-incubating","0.2.0-incubating","0.2.1","0.3.0","0.4.0","0.4.1","0.5.0","0.5.1","0.6.0","0.6.1","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","1.0.0","1.0.0-BETA","1.0.1","1.1.0","1.1.1","1.1.2","1.10.0","1.11.0","1.11.1","1.11.2","1.11.3","1.11.4","1.12.0","1.12.1","1.13.0","1.13.1","1.13.2","1.14.0","1.15.0","1.15.1","1.15.2","1.15.3","1.16.0","1.16.1","1.16.2","1.16.3","1.17.0","1.18.0","1.19.0","1.19.1","1.2.0","1.20.0","1.21.0","1.22.0","1.3.0","1.4.0","1.5.0","1.6.0","1.7.0","1.7.1","1.8.0","1.9.0","1.9.1","1.9.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/07/GHSA-r969-8v3h-23v9/GHSA-r969-8v3h-23v9.json"}},{"package":{"name":"org.apache.nifi:nifi-dbcp-service","ecosystem":"Maven","purl":"pkg:maven/org.apache.nifi/nifi-dbcp-service"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.2"},{"fixed":"1.23.0"}]}],"versions":["0.2.0-incubating","0.2.1","0.3.0","0.4.0","0.4.1","0.5.0","0.5.1","0.6.0","0.6.1","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","1.0.0","1.0.0-BETA","1.0.1","1.1.0","1.1.1","1.1.2","1.10.0","1.11.0","1.11.1","1.11.2","1.11.3","1.11.4","1.12.0","1.12.1","1.13.0","1.13.1","1.13.2","1.14.0","1.15.0","1.15.1","1.15.2","1.15.3","1.16.0","1.16.1","1.16.2","1.16.3","1.17.0","1.18.0","1.19.0","1.19.1","1.2.0","1.20.0","1.21.0","1.22.0","1.3.0","1.4.0","1.5.0","1.6.0","1.7.0","1.7.1","1.8.0","1.9.0","1.9.1","1.9.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/07/GHSA-r969-8v3h-23v9/GHSA-r969-8v3h-23v9.json"}},{"package":{"name":"org.apache.nifi:nifi-hikari-dbcp-service","ecosystem":"Maven","purl":"pkg:maven/org.apache.nifi/nifi-hikari-dbcp-service"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.2"},{"fixed":"1.23.0"}]}],"versions":["1.16.0","1.16.1","1.16.2","1.16.3","1.17.0","1.18.0","1.19.0","1.19.1","1.20.0","1.21.0","1.22.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/07/GHSA-r969-8v3h-23v9/GHSA-r969-8v3h-23v9.json"}},{"package":{"name":"org.apache.nifi:nifi-hadoop-dbcp-service","ecosystem":"Maven","purl":"pkg:maven/org.apache.nifi/nifi-hadoop-dbcp-service"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.2"},{"fixed":"1.23.0"}]}],"versions":["1.12.0","1.12.1","1.13.0","1.13.1","1.13.2","1.14.0","1.15.0","1.15.1","1.15.2","1.15.3","1.16.0","1.16.1","1.16.2","1.16.3","1.17.0","1.18.0","1.19.0","1.19.1","1.20.0","1.21.0","1.22.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/07/GHSA-r969-8v3h-23v9/GHSA-r969-8v3h-23v9.json"}},{"package":{"name":"org.apache.nifi:nifi-hbase_2-client-service","ecosystem":"Maven","purl":"pkg:maven/org.apache.nifi/nifi-hbase_2-client-service"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.2"},{"fixed":"1.23.0"}]}],"versions":["1.10.0","1.11.0","1.11.1","1.11.2","1.11.3","1.11.4","1.12.0","1.12.1","1.13.0","1.13.1","1.13.2","1.14.0","1.15.0","1.15.1","1.15.2","1.15.3","1.16.0","1.16.1","1.16.2","1.16.3","1.17.0","1.18.0","1.19.0","1.19.1","1.20.0","1.21.0","1.22.0","1.9.0","1.9.1","1.9.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/07/GHSA-r969-8v3h-23v9/GHSA-r969-8v3h-23v9.json"}},{"package":{"name":"org.apache.nifi:nifi-record-serialization-services","ecosystem":"Maven","purl":"pkg:maven/org.apache.nifi/nifi-record-serialization-services"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.2"},{"fixed":"1.23.0"}]}],"versions":["1.10.0","1.11.0","1.11.1","1.11.2","1.11.3","1.11.4","1.12.0","1.12.1","1.13.0","1.13.1","1.13.2","1.14.0","1.15.0","1.15.1","1.15.2","1.15.3","1.16.0","1.16.1","1.16.2","1.16.3","1.17.0","1.18.0","1.19.0","1.19.1","1.2.0","1.20.0","1.21.0","1.22.0","1.3.0","1.4.0","1.5.0","1.6.0","1.7.0","1.7.1","1.8.0","1.9.0","1.9.1","1.9.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/07/GHSA-r969-8v3h-23v9/GHSA-r969-8v3h-23v9.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}