The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-2025-12967

CVE-2025-12967: AWS Aurora PostgreSQL Privilege Escalation

CVE-2025-12967 is a privilege escalation vulnerability in AWS Wrappers for Amazon Aurora PostgreSQL that allows low-privilege users to escalate to rds_superuser role. This article covers technical details, affected versions, and mitigation.

Published: April 15, 2026

CVE-2025-12967 Overview

CVE-2025-12967 is a privilege escalation vulnerability affecting AWS Wrappers for Amazon Aurora PostgreSQL. The flaw allows a low-privilege authenticated user to craft a malicious function that could be executed with the permissions of other Amazon Relational Database Service (RDS) users, potentially escalating privileges to the rds_superuser role.

This vulnerability is classified as CWE-470 (Use of Externally-Controlled Input to Select Classes or Code), indicating that the affected components improperly handle user-controlled input when selecting code paths or classes for execution. An attacker with basic database access could leverage this flaw to execute arbitrary operations with elevated permissions within the RDS environment.

Critical Impact

Successful exploitation enables privilege escalation to rds_superuser role, allowing attackers to execute database operations with elevated permissions, potentially compromising data integrity, confidentiality, and availability across the entire RDS instance.

Affected Products

  • AWS JDBC Wrapper (versions prior to v2.6.5)
  • AWS Go Wrapper (versions prior to 2025-10-17)
  • AWS NodeJS Wrapper (versions prior to v2.0.1)
  • AWS Python Wrapper (versions prior to v1.4.0)
  • AWS PGSQL ODBC Driver (versions prior to v1.0.1)

Discovery Timeline

  • 2025-11-10 - CVE-2025-12967 published to NVD
  • 2025-11-12 - Last updated in NVD database

Technical Details for CVE-2025-12967

Vulnerability Analysis

The vulnerability resides in the AWS wrapper libraries used to connect applications to Amazon Aurora PostgreSQL databases. These wrappers facilitate connections across multiple programming languages including Java, Go, Node.js, Python, and through ODBC drivers.

The root issue stems from improper validation when handling user-supplied input that influences function execution contexts. A low-privilege authenticated user can exploit this by creating a specially crafted function that, when executed, runs with the permissions of other RDS users rather than the originating user's limited privileges.

The attack is network-accessible and requires only low-level authentication to the database, making it particularly concerning for multi-tenant RDS deployments or environments where database access is granted to application service accounts with limited intended permissions.

Root Cause

The vulnerability is attributed to CWE-470: Use of Externally-Controlled Input to Select Classes or Code. The AWS wrapper libraries failed to properly isolate function execution contexts, allowing user-controlled input to influence which user's permissions are applied during function execution. This architectural flaw enables privilege boundary bypass within the PostgreSQL security model.

Attack Vector

The attack exploits the network-accessible database interface and requires only low-privilege authentication. An attacker with basic database access can craft a malicious function definition that manipulates the execution context to inherit permissions from higher-privileged users, including those with rds_superuser role membership.

The exploitation flow involves:

  1. Authenticating to the Aurora PostgreSQL instance with a low-privilege account
  2. Creating a function with specially crafted parameters or definitions
  3. Triggering execution of the function in a context where it inherits elevated permissions
  4. Leveraging the escalated privileges to perform unauthorized database operations

For detailed technical information about the exploitation mechanism, refer to the AWS Security Bulletin AWS-2025-028 and the associated GitHub Security Advisories.

Detection Methods for CVE-2025-12967

Indicators of Compromise

  • Unusual function creation activity by low-privilege database users
  • Unexpected privilege changes or role membership modifications in PostgreSQL audit logs
  • Database queries or operations executed with rds_superuser permissions from accounts that should not have such access
  • Anomalous patterns in pg_stat_activity showing privilege mismatches

Detection Strategies

  • Enable and monitor PostgreSQL audit logging (pgaudit extension) for function creation and execution events
  • Implement alerting for any privilege escalation attempts or unexpected role assignments
  • Review database connection logs for wrapper library version strings to identify unpatched clients
  • Monitor for creation of functions with SECURITY DEFINER attributes by non-administrative users

Monitoring Recommendations

  • Configure CloudWatch alarms for unusual database activity patterns in RDS Performance Insights
  • Establish baseline metrics for function creation and modification events
  • Implement real-time monitoring of rds_superuser role usage and track all operations performed under this context
  • Deploy database activity monitoring solutions to detect privilege escalation attempts

How to Mitigate CVE-2025-12967

Immediate Actions Required

  • Upgrade all AWS wrapper libraries to the patched versions immediately
  • Audit all database users and their current role memberships for unauthorized changes
  • Review recently created functions for potentially malicious code
  • Temporarily restrict function creation privileges for non-administrative users if patching cannot be immediately performed

Patch Information

AWS has released patched versions of all affected wrapper libraries. Organizations should upgrade to the following versions:

ComponentFixed VersionRelease Link
AWS JDBC Wrapperv2.6.5GitHub Release v2.6.5
AWS Go Wrapper2025-10-17GitHub Release v2025-10-17
AWS NodeJS Wrapperv2.0.1GitHub Release v2.0.1
AWS Python Wrapperv1.4.0GitHub Release v1.4.0
AWS PGSQL ODBC Driverv1.0.1GitHub Release v1.0.1

Additional security advisories are available for each component: JDBC Advisory, Go Advisory, NodeJS Advisory, Python Advisory, ODBC Advisory.

Workarounds

  • Revoke CREATE FUNCTION privileges from untrusted or low-privilege database users until patching is complete
  • Implement strict network segmentation to limit database access to authorized application servers only
  • Use IAM database authentication with fine-grained permissions to reduce the attack surface
  • Enable PostgreSQL row-level security (RLS) policies to limit data access regardless of privilege escalation
bash
# Revoke function creation from public schema for untrusted users
psql -h your-aurora-endpoint -U admin -d your_database -c "REVOKE CREATE ON SCHEMA public FROM PUBLIC;"

# Audit existing functions created by non-admin users
psql -h your-aurora-endpoint -U admin -d your_database -c "SELECT proname, proowner::regrole, prosecdef FROM pg_proc WHERE proowner NOT IN (SELECT oid FROM pg_roles WHERE rolsuper OR rolname = 'rds_superuser');"

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechAmazon Rds

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.15%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/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
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-470
  • Technical References
  • AWS Security Bulletin AWS-2025-028

  • GitHub Release v2025-10-17

  • GitHub Security Advisory GHSA-7wq2-32h4-9hc9

  • GitHub Release v2.6.5

  • GitHub Security Advisory GHSA-7xw4-g7mm-r4hh

  • GitHub Release v2.0.1

  • GitHub Security Advisory GHSA-8wj8-cfxr-9374

  • GitHub Release v1.4.0

  • GitHub Security Advisory GHSA-4jvf-wx3f-2x8q

  • GitHub Release v1.0.1

  • GitHub Security Advisory GHSA-q327-fgm8-7mxf
  • Latest CVEs
  • CVE-2025-52479: HTTP.jl & URIs.jl CRLF Injection Flaw

  • CVE-2026-31740: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31743: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31744: Linux Kernel NULL Pointer Vulnerability
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