Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-34468

CVE-2023-34468: Apache NiFi RCE Vulnerability

CVE-2023-34468 is a remote code execution flaw in Apache NiFi affecting versions 0.0.2 through 1.21.0. Attackers can exploit database connection pools to execute custom code. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 4, 2026

CVE-2023-34468 Overview

CVE-2023-34468 is a Remote Code Execution (RCE) vulnerability affecting Apache NiFi's DBCPConnectionPool and HikariCPConnectionPool Controller Services. An authenticated and authorized user can configure a Database URL with the H2 driver that enables custom code execution on the underlying server. This vulnerability allows attackers with valid credentials to leverage the H2 database JDBC connection string to execute arbitrary code, potentially leading to complete system compromise.

Critical Impact

Authenticated attackers can achieve remote code execution by exploiting H2 database connection string injection in Apache NiFi's connection pool services, potentially leading to full system compromise.

Affected Products

  • Apache NiFi versions 0.0.2 through 1.21.0
  • DBCPConnectionPool Controller Service
  • HikariCPConnectionPool Controller Service

Discovery Timeline

  • 2023-06-12 - CVE-2023-34468 published to NVD
  • 2025-02-13 - Last updated in NVD database

Technical Details for CVE-2023-34468

Vulnerability Analysis

This vulnerability exists in Apache NiFi's database connection pool services, specifically the DBCPConnectionPool and HikariCPConnectionPool Controller Services. The root issue stems from inadequate validation of Database URL configurations when using the H2 JDBC driver. H2 is an embedded Java SQL database that supports various connection string features, including the ability to execute Java code through INIT scripts or other mechanisms.

When an authenticated user configures a database connection, they can craft a malicious H2 JDBC URL that triggers code execution. The H2 database driver supports several dangerous connection string parameters that can be exploited, such as INIT for executing SQL scripts at connection time, which can include RUNSCRIPT FROM directives that load and execute external scripts.

The vulnerability requires authentication, meaning an attacker must have valid credentials to access the NiFi web interface and permissions to configure Controller Services. However, once authenticated, the attack can be executed remotely over the network without user interaction. The impact is severe as successful exploitation grants the attacker the ability to execute arbitrary code with the privileges of the NiFi process, potentially leading to complete confidentiality, integrity, and availability compromise.

Root Cause

The root cause is improper input validation (CWE-94: Code Injection) in the database connection URL handling. Apache NiFi's connection pool services did not properly validate or sanitize Database URL configurations, allowing specially crafted H2 JDBC connection strings to execute arbitrary code. The H2 driver provides features that, while legitimate for development purposes, can be weaponized when exposed to user-controlled input.

Attack Vector

The attack vector is network-based, requiring an authenticated attacker to access the NiFi web interface. The attacker exploits the vulnerability by creating or modifying a DBCPConnectionPool or HikariCPConnectionPool Controller Service with a malicious H2 JDBC URL. The malicious URL leverages H2-specific features such as INIT=RUNSCRIPT FROM to execute arbitrary SQL or Java code when the connection pool initializes or tests the connection.

The attack flow typically involves:

  1. Authenticating to the Apache NiFi web interface
  2. Navigating to Controller Services configuration
  3. Creating or modifying a connection pool service
  4. Setting the Database URL to a malicious H2 JDBC connection string containing code execution payloads
  5. Triggering the connection (e.g., by testing or enabling the service)

Technical details and exploitation methodology can be found in the Packet Storm RCE Exploit and the Cyfirma Vulnerability Analysis.

Detection Methods for CVE-2023-34468

Indicators of Compromise

  • Controller Service configurations containing H2 JDBC URLs with suspicious parameters like INIT, RUNSCRIPT, or TRACE_LEVEL
  • Unexpected processes spawned by the NiFi Java process
  • Unusual network connections originating from the NiFi server
  • Modifications to Controller Service configurations by unexpected users

Detection Strategies

  • Monitor NiFi audit logs for Controller Service creation or modification events involving database connection pools
  • Implement alerts for Database URL configurations containing h2: JDBC prefixes
  • Deploy endpoint detection to identify suspicious child processes spawned by the NiFi service
  • Review Controller Service configurations for H2 database connections that should not exist in production environments

Monitoring Recommendations

  • Enable comprehensive audit logging in Apache NiFi for all configuration changes
  • Implement SIEM rules to detect H2 JDBC URL patterns in NiFi configuration events
  • Monitor for unusual code execution or system calls from the NiFi process
  • Establish baseline behavior for NiFi process activity and alert on anomalies

How to Mitigate CVE-2023-34468

Immediate Actions Required

  • Upgrade Apache NiFi to version 1.22.0 or later immediately
  • Audit existing Controller Service configurations for H2 database connections
  • Review access controls to ensure only trusted users can configure Controller Services
  • Implement network segmentation to limit exposure of NiFi management interfaces

Patch Information

Apache has released version 1.22.0 which addresses this vulnerability by validating Database URLs and rejecting H2 JDBC locations. The fix prevents the configuration of H2 database connections through the affected Controller Services. Organizations should upgrade to version 1.22.0 or later as recommended in the Apache NiFi CVE-2023-34468 Advisory and the Apache Mailing List Thread.

Workarounds

  • Restrict access to Controller Service configuration to only highly trusted administrators
  • Implement network-level access controls to limit who can access the NiFi web interface
  • Remove or disable any existing H2 database connections in Controller Services
  • Consider deploying a web application firewall (WAF) to filter malicious JDBC URL patterns
bash
# Verify current Apache NiFi version
./bin/nifi.sh status

# Check for H2 database connections in flow configuration
grep -i "h2:" conf/flow.xml.gz

# Upgrade to patched version
./bin/nifi.sh stop
# Download and install NiFi 1.22.0 or later
# Migrate configuration and restart
./bin/nifi.sh start

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechApache Nifi

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability77.20%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • Packet Storm RCE Exploit

  • Openwall OSS Security Discussion

  • Cyfirma Vulnerability Analysis
  • Vendor Resources
  • Apache Mailing List Thread

  • Apache NiFi CVE-2023-34468 Advisory
  • Related CVEs
  • CVE-2026-25903: Apache NiFi Privilege Escalation Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English