A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2026-39946

CVE-2026-39946: Openbao PostgreSQL SQLI Vulnerability

CVE-2026-39946 is a SQL injection flaw in Openbao's PostgreSQL database secrets engine caused by improper quoting of schema names during privilege revocation. This article covers technical details, affected versions, and fixes.

Updated: May 14, 2026

CVE-2026-39946 Overview

CVE-2026-39946 affects OpenBao, an open source identity-based secrets management system forked from HashiCorp Vault. The vulnerability resides in the PostgreSQL database secrets engine, where OpenBao fails to apply proper database quoting on schema names returned by PostgreSQL during role privilege revocation. The flaw can cause role revocation failures and, in less common scenarios, enable SQL injection executed under the management user context. The issue is classified as improper neutralization of special elements used in an SQL command [CWE-89]. OpenBao addressed the vulnerability in version 2.5.3. The same root cause was inherited from upstream HashiCorp Vault code.

Critical Impact

An attacker who controls schema creation in the backing PostgreSQL database can trigger SQL injection executed with the privileges of the OpenBao management user during role revocation.

Affected Products

  • OpenBao versions prior to 2.5.3
  • OpenBao deployments using the PostgreSQL database secrets engine
  • Environments where database users can create schemas and grant privileges on them

Discovery Timeline

  • 2026-04-21 - CVE-2026-39946 published to NVD
  • 2026-04-24 - Last updated in NVD database

Technical Details for CVE-2026-39946

Vulnerability Analysis

The vulnerability stems from improper SQL identifier quoting in the OpenBao PostgreSQL database secrets engine. When OpenBao revokes role privileges, it enumerates schemas reported by the PostgreSQL server and constructs SQL statements that reference those schema names. The schema names are interpolated into the query without proper identifier quoting. A schema name that contains SQL metacharacters or crafted syntax breaks out of the intended identifier context. The result is either a failed revocation operation or, in rarer conditions, execution of attacker-influenced SQL as the management user. Because the management user typically holds elevated privileges within the database, successful injection grants broad control over database state, including the ability to read or alter other roles managed by OpenBao.

Root Cause

The root cause is missing identifier quoting on schema names returned by PostgreSQL system catalogs. Identifier quoting in PostgreSQL requires wrapping names in double quotes and escaping embedded double quotes. OpenBao concatenated raw schema strings into revocation SQL instead of applying this transformation. The defect was inherited from HashiCorp Vault, where the same code path existed prior to the OpenBao fork.

Attack Vector

Exploitation requires a database user with permission to create schemas and assign privileges on them within the PostgreSQL instance that OpenBao manages. The attacker creates a schema whose name embeds SQL syntax. When OpenBao later revokes a role that has privileges on that schema, the engine constructs an unsafe SQL statement and executes the attacker-influenced fragment under the management user context. The vulnerability requires high privileges in the database environment but no user interaction, and it is reachable over the network through the secrets engine workflow. Refer to the OpenBao GitHub Security Advisory for full technical context.

Detection Methods for CVE-2026-39946

Indicators of Compromise

  • PostgreSQL schemas whose names contain quote characters, semicolons, or SQL keywords inconsistent with operational naming conventions
  • OpenBao audit log entries showing failed role revocation operations against the PostgreSQL database secrets engine
  • PostgreSQL server logs showing syntax errors or unexpected statements originating from the OpenBao management user during revocation cycles

Detection Strategies

  • Inventory all PostgreSQL schemas referenced by OpenBao database secrets engine roles and validate schema names against an allowlist of expected identifiers
  • Correlate OpenBao audit events for database/revoke operations with PostgreSQL pg_stat_statements entries to identify malformed revocation SQL
  • Review PostgreSQL role grants to confirm that only trusted accounts hold CREATE privilege on databases managed by OpenBao

Monitoring Recommendations

  • Forward OpenBao audit logs and PostgreSQL server logs into a centralized analytics platform and alert on revocation failures or SQL syntax errors tied to the management user
  • Monitor for new schema creation events in databases bound to OpenBao secrets engines and require change-control review
  • Track the deployed OpenBao version across the environment and alert when instances run below 2.5.3

How to Mitigate CVE-2026-39946

Immediate Actions Required

  • Upgrade OpenBao to version 2.5.3 or later on all nodes running the PostgreSQL database secrets engine
  • Audit existing PostgreSQL schemas managed by OpenBao and rename or remove any schema whose name contains SQL metacharacters
  • Revoke CREATE privileges from database users that do not require schema creation capability

Patch Information

OpenBao addressed CVE-2026-39946 in version 2.5.3. The fix applies proper identifier quoting to schema names used in revocation statements within the PostgreSQL database secrets engine. Patch details and the official advisory are available at the OpenBao GitHub Security Advisory GHSA-6vgr-cp5c-ffx3.

Workarounds

  • Audit table schemas in PostgreSQL databases managed by OpenBao and verify all schema names conform to safe identifier patterns
  • Restrict database users so they cannot create new schemas or grant privileges on them, eliminating the attacker-controlled input path
  • Limit the scope of the OpenBao management database account to the minimum privileges required for secrets engine operations
bash
# Configuration example
# Revoke schema creation from non-administrative database users
REVOKE CREATE ON DATABASE app_db FROM app_user;

# Verify which roles retain CREATE privileges
SELECT r.rolname, d.datname, has_database_privilege(r.rolname, d.datname, 'CREATE') AS can_create
FROM pg_roles r, pg_database d
WHERE d.datname = 'app_db' AND r.rolcanlogin = true;

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechOpenbao

  • SeverityMEDIUM

  • CVSS Score4.6

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-89
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-39396: OpenBao OCI Plugin DOS Vulnerability

  • CVE-2026-40264: OpenBao Privilege Escalation Vulnerability

  • CVE-2026-39388: OpenBao Auth Bypass Vulnerability

  • CVE-2026-33757: OpenBao JWT/OIDC Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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