{"answers":{"affected":"7 open source packages ship an affected version, including org.apache.nifi:nifi-dbcp-base, nifi and org.apache.nifi:nifi-dbcp-service-nar. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-34468 exists.","fix":"Upgrade org.apache.nifi:nifi-dbcp-base to 1.22.0 or later.","what":"CVE-2023-34468 is a high-severity code injection vulnerability in Apache Nifi, published on 12 Jun 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-34468 and fix it if it is affected.\n\nWhat it is: CVE-2023-34468 is a high-severity code injection vulnerability in Apache Nifi, published on 12 Jun 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-34468 exists.\n\nAffected packages and fixed versions:\n- org.apache.nifi:nifi-dbcp-base (Maven): affected from 0.0.2; fixed in 1.22.0\n- org.apache.nifi:nifi-dbcp-base (Maven): affected from 0.0.2; fixed in 1.22.0\n- nifi (Bitnami): affected from 0.0.2; fixed in 1.22.0\n- org.apache.nifi:nifi-dbcp-service-nar (Maven): affected from 0.0.2; fixed in 1.22.0\n- org.apache.nifi:nifi-dbcp-service-nar (Maven): affected from 0.0.2; fixed in 1.22.0\n- org.apache.nifi:nifi-hikari-dbcp-service (Maven): affected from 0.0.2; fixed in 1.22.0\n- org.apache.nifi:nifi-hikari-dbcp-service (Maven): affected from 0.0.2; fixed in 1.22.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-34468/ (Markdown: https://insights.sbomify.com/CVE-2023-34468/index.md)","id":"CVE-2023-34468","markdown":"https://insights.sbomify.com/CVE-2023-34468/index.md","name":"CVE-2023-34468","record":{"aliases":["BIT-nifi-2023-34468","GHSA-xm2m-2q6h-22jw"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache NiFi","requires_auth":"low_privilege","summary":"Authenticated users can execute arbitrary code by configuring malicious H2 database URLs in Apache NiFi connection pools.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","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":"The DBCPConnectionPool and HikariCPConnectionPool Controller Services in Apache NiFi 0.0.2 through 1.21.0 allow an authenticated and authorized user to configure a Database URL with the H2 driver that enables custom code execution.\n\nThe resolution validates the Database URL and rejects H2 JDBC locations.\n\nYou are recommended to upgrade to version 1.22.0 or later which fixes this issue.","ecosystems":["Bitnami","Maven"],"exploits":{"exploitdb":0,"first_seen":"2023-06-12","github_poc":7,"max_poc_stars":8,"metasploit":1,"nuclei":0,"refs":[{"date":"2023-11-25T12:21:48Z","kind":"github_poc","ref":"https://github.com/mbadanoiu/CVE-2023-34468","stars":8,"title":"CVE-2023-34468: Remote Code Execution via DB Components in Apache NiFi"},{"date":"2026-05-10T15:43:28Z","kind":"github_poc","ref":"https://github.com/sbouabid-sec/CVE-2023-34468-POC","stars":4,"title":"PoC exploit for CVE-2023-34468 — RCE via H2 RUNSCRIPT in Apache NiFi \u003c= 1.21.0"},{"date":"2026-05-10T19:31:57Z","kind":"github_poc","ref":"https://github.com/Jeanpt/CVE-2023-34468","stars":1,"title":"CVE-2023-34468 - Apache NiFi H2 RCE PoC"},{"date":"2023-06-12","kind":"metasploit","ref":"exploit/linux/http/apache_nifi_h2_rce","stars":null,"title":"Apache NiFi H2 Connection String Remote Code Execution"},{"date":"2025-08-18T06:25:16Z","kind":"github_poc","ref":"https://github.com/shoucheng3/asf__nifi_CVE-2023-34468_1-21-00","stars":0,"title":null},{"date":"2026-06-16T14:32:34Z","kind":"github_poc","ref":"https://github.com/spikeyjr/CVE-2023-34468-PoC","stars":0,"title":"Educational proof-of-concept for CVE-2023-34468 affecting Apache NiFi. Demonstrates H2 JDBC URL abuse leading to authenticated RCE in vulnerable NiFi versions."},{"date":"2026-07-12T17:21:46Z","kind":"github_poc","ref":"https://github.com/ozcanpng/CVE-2023-34468","stars":0,"title":"CVE-2023-34468 Apache NiFi ExecuteSQL H2 RUNSCRIPT RCE PoC"},{"date":"2026-09-09T16:38:24Z","kind":"github_poc","ref":"https://github.com/luiskrnr/HTB_Helix_CVE-2023-34468","stars":0,"title":"Writeup of the Hackthebox Helix machine"}],"tier":"weaponised"},"has_fix":true,"headline":"Apache NiFi: Potential Code Injection with Database Services using H2","id":"CVE-2023-34468","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"apache:nifi","products":["apache:nifi"],"type":"code_injection","year":"2023"},"n_packages":7,"n_references":5,"next":{"headline":"Cold Rest Vulnerabiltiy","id":"CVE-2023-34469"},"packages":[{"ecosystem":"Bitnami","fixed":["1.22.0"],"introduced":["0.0.2"],"last_affected":[],"package":"nifi","purl":"pkg:bitnami/nifi","source":"BIT-nifi-2023-34468"},{"ecosystem":"Maven","fixed":["1.22.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-dbcp-base","purl":null,"source":"GHSA-xm2m-2q6h-22jw"},{"ecosystem":"Maven","fixed":["1.22.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-dbcp-base","purl":"pkg:maven/org.apache.nifi/nifi-dbcp-base","source":"GHSA-xm2m-2q6h-22jw"},{"ecosystem":"Maven","fixed":["1.22.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-dbcp-service-nar","purl":null,"source":"GHSA-xm2m-2q6h-22jw"},{"ecosystem":"Maven","fixed":["1.22.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-dbcp-service-nar","purl":"pkg:maven/org.apache.nifi/nifi-dbcp-service-nar","source":"GHSA-xm2m-2q6h-22jw"},{"ecosystem":"Maven","fixed":["1.22.0"],"introduced":["0.0.2"],"last_affected":[],"package":"org.apache.nifi:nifi-hikari-dbcp-service","purl":null,"source":"GHSA-xm2m-2q6h-22jw"},{"ecosystem":"Maven","fixed":["1.22.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-xm2m-2q6h-22jw"}],"prev":{"headline":"XWiki Platform may retrieve email addresses of all users","id":"CVE-2023-34467"},"products":["Apache NiFi"],"published":"2023-06-12","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 Properties Referencing Remote Resources","id":"CVE-2023-36542","kev_date_added":null,"published":"2023-07-29"},{"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":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"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":"Authenticated users can execute arbitrary code by configuring malicious H2 database URLs in Apache NiFi connection pools.","url":"https://insights.sbomify.com/CVE-2023-34468/"}