{"id":"CVE-2023-34468","aliases":["BIT-nifi-2023-34468","EUVD-2023-1917","GHSA-xm2m-2q6h-22jw"],"status":"published","title":"Apache NiFi: Potential Code Injection with Database Services using H2","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.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.61869,"percentile":0.99187,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-94"],"published":"2023-06-12T15:09:20Z","modified":"2026-10-28T02:30:45Z","exploits":[{"source":"metasploit","id":"exploit/linux/http/apache_nifi_h2_rce","title":"Apache NiFi H2 Connection String Remote Code Execution","type":"exploit","platform":"Unix","date":"2023-06-12","verified":true,"url":"https://www.rapid7.com/db/modules/exploit/linux/http/apache_nifi_h2_rce"},{"source":"pocgithub","id":"mbadanoiu/CVE-2023-34468","title":"mbadanoiu/CVE-2023-34468","date":"2023-11-25","url":"https://github.com/mbadanoiu/CVE-2023-34468"},{"source":"pocgithub","id":"shoucheng3/asf__nifi_CVE-2023-34468_1-21-00","title":"shoucheng3/asf__nifi_CVE-2023-34468_1-21-00","date":"2025-08-18","url":"https://github.com/shoucheng3/asf__nifi_CVE-2023-34468_1-21-00"},{"source":"pocgithub","id":"Jeanpt/CVE-2023-34468","title":"Jeanpt/CVE-2023-34468","date":"2026-05-10","url":"https://github.com/Jeanpt/CVE-2023-34468"},{"source":"pocgithub","id":"sbouabid-sec/CVE-2023-34468-POC","title":"sbouabid-sec/CVE-2023-34468-POC","date":"2026-05-10","url":"https://github.com/sbouabid-sec/CVE-2023-34468-POC"},{"source":"pocgithub","id":"spikeyjr/CVE-2023-34468-PoC","title":"spikeyjr/CVE-2023-34468-PoC","date":"2026-06-16","url":"https://github.com/spikeyjr/CVE-2023-34468-PoC"},{"source":"pocgithub","id":"ozcanpng/CVE-2023-34468","title":"ozcanpng/CVE-2023-34468","date":"2026-07-12","url":"https://github.com/ozcanpng/CVE-2023-34468"},{"source":"pocgithub","id":"luiskrnr/HTB_Helix_CVE-2023-34468","title":"luiskrnr/HTB_Helix_CVE-2023-34468","date":"2026-09-09","url":"https://github.com/luiskrnr/HTB_Helix_CVE-2023-34468"},{"source":"pocgithub","id":"mohammed-moshii/CVE-2023-34468-Apache-NiFi-RCE","title":"mohammed-moshii/CVE-2023-34468-Apache-NiFi-RCE","date":"2026-11-07","url":"https://github.com/mohammed-moshii/CVE-2023-34468-Apache-NiFi-RCE"}],"fixes":[{"ecosystem":"Maven","package":"org.apache.nifi:nifi-dbcp-base","fixed_in":["1.22.0"],"sources":["ghsa","osv"]},{"ecosystem":"Maven","package":"org.apache.nifi:nifi-hikari-dbcp-service","fixed_in":["1.22.0"],"sources":["ghsa","osv"]},{"ecosystem":"Maven","package":"org.apache.nifi:nifi-dbcp-service-nar","fixed_in":["1.22.0"],"sources":["ghsa","osv"]},{"ecosystem":"Bitnami","package":"nifi","fixed_in":["1.22.0"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.apache.nifi:nifi-dbcp-base","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.2"},{"fixed":"1.22.0"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.apache.nifi:nifi-hikari-dbcp-service","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.2"},{"fixed":"1.22.0"}]}]},{"source":"ghsa","ecosystem":"Maven","package":"org.apache.nifi:nifi-dbcp-service-nar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.2"},{"fixed":"1.22.0"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"nifi","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.2"},{"fixed":"1.22.0"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.apache.nifi:nifi-dbcp-base","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.2"},{"fixed":"1.22.0"}]}],"versions":["1.19.0","1.19.1","1.20.0","1.21.0"]},{"source":"osv","ecosystem":"Maven","package":"org.apache.nifi:nifi-hikari-dbcp-service","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.2"},{"fixed":"1.22.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"]},{"source":"osv","ecosystem":"Maven","package":"org.apache.nifi:nifi-dbcp-service-nar","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.2"},{"fixed":"1.22.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.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"]}],"products":[{"vendor":"apache","product":"nifi"},{"vendor":"apache software foundation","product":"apache nifi"}],"references":[{"url":"https://nifi.apache.org/security.html#CVE-2023-34468","tags":["release-notes","x_transferred","Release Notes","Vendor Advisory","advisory","web"]},{"url":"https://lists.apache.org/thread/7b82l4f5blmpkfcynf3y6z4x1vqo59h8","tags":["vendor-advisory","x_transferred","Mailing List","Vendor Advisory","advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2023/06/12/3","tags":["x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"http://packetstormsecurity.com/files/174398/Apache-NiFi-H2-Connection-String-Remote-Code-Execution.html","tags":["x_transferred","Third Party Advisory","VDB Entry","advisory","web"]},{"url":"https://www.cyfirma.com/outofband/apache-nifi-cve-2023-34468-rce-vulnerability-analysis-and-exploitation/","tags":["x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-34468","tags":["web","advisory"]},{"url":"https://github.com/apache/nifi/pull/7349","tags":["web"]},{"url":"https://github.com/apache/nifi/commit/4faf3ea59895e7e153db3f8f61147ff70a254361","tags":["web"]},{"url":"https://issues.apache.org/jira/browse/NIFI-11653","tags":["web"]},{"url":"https://exceptionfactory.com/posts/2023/10/07/firsthand-analysis-of-apache-nifi-vulnerability-cve-2023-34468","tags":["web"]},{"url":"https://www.cyfirma.com/outofband/apache-nifi-cve-2023-34468-rce-vulnerability-analysis-and-exploitation","tags":["web"]},{"url":"https://github.com/advisories/GHSA-xm2m-2q6h-22jw"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/34xxx/CVE-2023-34468.json","tags":["advisory"]},{"url":"https://github.com/apache/nifi","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2023-34468","title":"Apache NiFi: Potential Code Injection with Database Services using H2","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.","status":"published","published":"2023-06-12T15:09:20.711Z","modified":"2025-02-13T16:55:36.706Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"adp"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:35:35.912488Z"}],"euvd":[{"id":"EUVD-2023-1917","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.","status":"published","published":"2023-06-12T15:09:20Z","modified":"2025-02-13T16:55:36Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T00:03:50.021705Z"}],"ghsa":[{"id":"GHSA-xm2m-2q6h-22jw","title":"Apache NiFi vulnerable to Code Injection","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.","status":"published","published":"2023-06-12T18:30:18Z","modified":"2025-02-13T18:58:08Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:38:30.754382Z"}],"nvd":[{"id":"CVE-2023-34468","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.","status":"published","published":"2023-06-12T16:15:10.13Z","modified":"2026-06-17T06:03:42.91Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:08:05.329837Z"}],"osv":[{"id":"CVE-2023-34468","title":"Apache NiFi: Potential Code Injection with Database Services using H2","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.","status":"published","published":"2023-06-12T15:09:20.711Z","modified":"2026-10-28T02:30:45.956807202Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:44:32.116263Z"},{"id":"GHSA-xm2m-2q6h-22jw","title":"Apache NiFi vulnerable to Code Injection","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.","status":"published","published":"2023-06-12T18:30:18Z","modified":"2025-09-15T07:42:17.449987Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:47:00.198893Z"},{"id":"BIT-nifi-2023-34468","title":"Apache NiFi: Potential Code Injection with Database Services using H2","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.","status":"published","published":"2025-09-12T11:46:58.598Z","modified":"2026-09-08T08:48:16.922819272Z","updated_at":"2026-11-02T15:28:34.007508Z"}]}}
