{"answers":{"affected":"17 open source packages ship an affected version, including org.apache.nifi:nifi-cdc-mysql-bundle, nifi and org.apache.nifi:nifi-dbcp-service. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-36542 in the wild and no public exploit code.","fix":"Upgrade org.apache.nifi:nifi-cdc-mysql-bundle to 1.23.0 or later.","what":"CVE-2023-36542 is a high-severity vulnerability in Apache Nifi, published on 29 Jul 2023."},"fix_prompt":"Check this codebase for CVE-2023-36542 and fix it if it is affected.\n\nWhat it is: CVE-2023-36542 is a high-severity vulnerability in Apache Nifi, published on 29 Jul 2023. \nExploitation: There is no known exploitation of CVE-2023-36542 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.nifi:nifi-cdc-mysql-bundle (Maven): affected from 0.0.2; fixed in 1.23.0\n- org.apache.nifi:nifi-cdc-mysql-bundle (Maven): affected from 0.0.2; fixed in 1.23.0\n- nifi (Bitnami): affected from 0.0.2 up to 1.22.0; no fix listed\n- org.apache.nifi:nifi-dbcp-service (Maven): affected from 0.0.2; fixed in 1.23.0\n- org.apache.nifi:nifi-dbcp-service (Maven): affected from 0.0.2; fixed in 1.23.0\n- org.apache.nifi:nifi-hadoop-dbcp-service (Maven): affected from 0.0.2; fixed in 1.23.0\n- org.apache.nifi:nifi-hadoop-dbcp-service (Maven): affected from 0.0.2; fixed in 1.23.0\n- org.apache.nifi:nifi-hbase_2-client-service (Maven): affected from 0.0.2; fixed in 1.23.0\n- org.apache.nifi:nifi-hbase_2-client-service (Maven): affected from 0.0.2; fixed in 1.23.0\n- org.apache.nifi:nifi-hikari-dbcp-service (Maven): affected from 0.0.2; fixed in 1.23.0\n- org.apache.nifi:nifi-hikari-dbcp-service (Maven): affected from 0.0.2; fixed in 1.23.0\n- org.apache.nifi:nifi-jms-processors (Maven): affected from 0.0.2; fixed in 1.23.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-36542/ (Markdown: https://insights.sbomify.com/CVE-2023-36542/index.md)","id":"CVE-2023-36542","markdown":"https://insights.sbomify.com/CVE-2023-36542/index.md","name":"CVE-2023-36542","record":{"aliases":["BIT-nifi-2023-36542","GHSA-r969-8v3h-23v9"],"analysis":null,"analysis_generated_by":null,"assigner":"apache","cpe":[{"product":"nifi","vendor":"apache"}],"cvss":{"score":8.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"description":"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.","ecosystems":["Bitnami","Maven"],"exploits":{"exploitdb":0,"first_seen":"2025-08-20","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-08-20T15:43:06Z","kind":"github_poc","ref":"https://github.com/shoucheng3/asf__nifi_CVE-2023-36542_1-22-0","stars":0,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"Apache NiFi: Potential Code Injection with Properties Referencing Remote Resources","id":"CVE-2023-36542","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"apache:nifi","products":["apache:nifi"],"type":null,"year":"2023"},"n_packages":17,"n_references":4,"next":{"headline":"Apache Airflow: ReDoS via dags function","id":"CVE-2023-36543"},"packages":[{"ecosystem":"Bitnami","fixed":[],"introduced":["0.0.2"],"last_affected":["1.22.0"],"package":"nifi","purl":"pkg:bitnami/nifi","source":"BIT-nifi-2023-36542"},{"ecosystem":"Maven","fixed":["1.23.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-cdc-mysql-bundle","purl":null,"source":"GHSA-r969-8v3h-23v9"},{"ecosystem":"Maven","fixed":["1.23.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-cdc-mysql-bundle","purl":"pkg:maven/org.apache.nifi/nifi-cdc-mysql-bundle","source":"GHSA-r969-8v3h-23v9"},{"ecosystem":"Maven","fixed":["1.23.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-dbcp-service","purl":null,"source":"GHSA-r969-8v3h-23v9"},{"ecosystem":"Maven","fixed":["1.23.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-dbcp-service","purl":"pkg:maven/org.apache.nifi/nifi-dbcp-service","source":"GHSA-r969-8v3h-23v9"},{"ecosystem":"Maven","fixed":["1.23.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-hadoop-dbcp-service","purl":null,"source":"GHSA-r969-8v3h-23v9"},{"ecosystem":"Maven","fixed":["1.23.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-hadoop-dbcp-service","purl":"pkg:maven/org.apache.nifi/nifi-hadoop-dbcp-service","source":"GHSA-r969-8v3h-23v9"},{"ecosystem":"Maven","fixed":["1.23.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-hbase_2-client-service","purl":null,"source":"GHSA-r969-8v3h-23v9"},{"ecosystem":"Maven","fixed":["1.23.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-hbase_2-client-service","purl":"pkg:maven/org.apache.nifi/nifi-hbase_2-client-service","source":"GHSA-r969-8v3h-23v9"},{"ecosystem":"Maven","fixed":["1.23.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-hikari-dbcp-service","purl":null,"source":"GHSA-r969-8v3h-23v9"},{"ecosystem":"Maven","fixed":["1.23.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-hikari-dbcp-service","purl":"pkg:maven/org.apache.nifi/nifi-hikari-dbcp-service","source":"GHSA-r969-8v3h-23v9"},{"ecosystem":"Maven","fixed":["1.23.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-jms-processors","purl":null,"source":"GHSA-r969-8v3h-23v9"},{"ecosystem":"Maven","fixed":["1.23.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-jms-processors","purl":"pkg:maven/org.apache.nifi/nifi-jms-processors","source":"GHSA-r969-8v3h-23v9"},{"ecosystem":"Maven","fixed":["1.23.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-record-serialization-services","purl":null,"source":"GHSA-r969-8v3h-23v9"},{"ecosystem":"Maven","fixed":["1.23.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-record-serialization-services","purl":"pkg:maven/org.apache.nifi/nifi-record-serialization-services","source":"GHSA-r969-8v3h-23v9"},{"ecosystem":"Maven","fixed":["1.23.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-standard-processors","purl":null,"source":"GHSA-r969-8v3h-23v9"},{"ecosystem":"Maven","fixed":["1.23.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-standard-processors","purl":"pkg:maven/org.apache.nifi/nifi-standard-processors","source":"GHSA-r969-8v3h-23v9"}],"prev":{"headline":"Privilege escalation in Zoom Desktop Client for Windows","id":"CVE-2023-36541"},"products":["Apache NiFi"],"published":"2023-07-29","related":[{"cvss_score":9.8,"headline":"Improper Restriction of XML External Entity Reference in Apache NiFi","id":"CVE-2018-1309","kev_date_added":null,"published":"2018-05-23"},{"cvss_score":9.8,"headline":"Apache NiFi XSS issue in context path handling","id":"CVE-2017-15697","kev_date_added":null,"published":"2018-01-23"},{"cvss_score":9.8,"headline":"Injection in Apache NiFi","id":"CVE-2017-5636","kev_date_added":null,"published":"2017-10-19"},{"cvss_score":8.8,"headline":"Apache NiFi: Uncontrolled Resource Consumption through Decompression of HTTP Requests","id":"CVE-2026-68981","kev_date_added":null,"published":"2026-08-03"},{"cvss_score":8.8,"headline":"Apache NiFi: Potential Code Injection with Database Services using H2","id":"CVE-2023-34468","kev_date_added":null,"published":"2023-06-12"},{"cvss_score":8.8,"headline":"Improper Neutralization of Command Elements in Shell User Group Provider","id":"CVE-2022-33140","kev_date_added":null,"published":"2022-06-15"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["Apache Software Foundation"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2023-36542/"}